kolibrios-fun/programs/system/shell/cmd_alias.c
Kirill Lipatov (Leency) 939f824d96 Shell 0.4 from Albom
git-svn-id: svn://kolibrios.org@959 a494cfbc-eb01-0410-851d-a64ba20cac60
2008-12-14 11:55:46 +00:00

18 lines
199 B
C

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