kolibrios/programs/system/shell/cmd/cmd_alias.c
Nasarus 3256dedea8 Shell 0.4.4 (All)
git-svn-id: svn://kolibrios.org@1665 a494cfbc-eb01-0410-851d-a64ba20cac60
2010-10-17 19:50:55 +00:00

20 lines
219 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;
}