2010-10-17 21:50:55 +02:00
|
|
|
|
|
|
|
int cmd_alias(char arg[])
|
|
|
|
{
|
|
|
|
|
|
|
|
int result;
|
|
|
|
|
2017-01-01 23:28:50 +01:00
|
|
|
if (NULL == arg || '\0' == arg[0])
|
2010-10-17 21:50:55 +02:00
|
|
|
{
|
|
|
|
alias_list();
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
result = alias_check(arg);
|
|
|
|
|
|
|
|
if ( ( 0 != result ) && ( -1 != result ) )
|
|
|
|
alias_add(arg);
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
2013-02-24 11:33:37 +01:00
|
|
|
|