kolibrios/programs/system/shell/cmd/cmd_alias.c
siemargl 0a3c951b56 better up/dwn arrows, docu
git-svn-id: svn://kolibrios.org@6822 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-01-01 22:28:50 +00:00

21 lines
239 B
C

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