From ba7aecffc3b52b39c27558b693ed4026298b58c9 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 27 Jul 2022 20:15:17 +0200 Subject: user/shell: fix echo --- src/user/app/shell/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/user') 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(); -- cgit v1.2.3