kolibrios-fun/programs/system/shell/cmd/cmd_alias.c
Albom 2a7660964a Shell version 0.6.2
git-svn-id: svn://kolibrios.org@3268 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-02-24 10:33:37 +00:00

21 lines
221 B
C

int cmd_alias(char arg[])
{
int result;
if (NULL == arg)
{
alias_list();
return TRUE;
}
result = alias_check(arg);
if ( ( 0 != result ) && ( -1 != result ) )
alias_add(arg);
return TRUE;
}