kolibrios/programs/system/shell/cmd/cmd_history.c
Rustem Gimadutdinov (rgimad) 68cf3e4293 SHELL 0.8.2
- big refactoring, now uses libc.obj
- added kfetch command

git-svn-id: svn://kolibrios.org@8827 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-06-12 21:34:41 +00:00

10 lines
153 B
C

int cmd_history(char arg[]) {
int i;
for (i = CMD_HISTORY_NUM_REAL - 1; i >= 0; i--) {
printf("%s\n", CMD_HISTORY[i]);
}
return TRUE;
}