summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/user/app/shell/shell.c2
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();