diff options
author | dzwdz | 2022-07-27 20:15:17 +0200 |
---|---|---|
committer | dzwdz | 2022-07-27 20:15:17 +0200 |
commit | ba7aecffc3b52b39c27558b693ed4026298b58c9 (patch) | |
tree | ae1c13cfb38763d04d31dd30dfb8d4dada31e786 /src | |
parent | 67718cbcda566127b8c5b38ecda83cbd469dbc3f (diff) |
user/shell: fix echo
Diffstat (limited to 'src')
-rw-r--r-- | src/user/app/shell/shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user/app/shell/shell.c b/src/user/app/shell/shell.c index f99f27e..e1514d9 100644 --- a/src/user/app/shell/shell.c +++ b/src/user/app/shell/shell.c @@ -76,7 +76,7 @@ static void run(char *cmd) { if (!strcmp(argv[0], "echo")) { printf("%s", argv[1]); for (int i = 2; argv[i]; i++) - printf(" %s", argv[1]); + printf(" %s", argv[i]); printf("\n"); } else if (!strcmp(argv[0], "fork")) { main(); |