From 08dc44c415c63abd71524468afe26b42f2e23b69 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 29 Jun 2025 20:55:51 -0400 Subject: usr: Add 'echo' program to replace osh builtin Signed-off-by: Ian Moffett --- usr.bin/osh/osh.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'usr.bin/osh/osh.c') diff --git a/usr.bin/osh/osh.c b/usr.bin/osh/osh.c index 4f90d47..0cac664 100644 --- a/usr.bin/osh/osh.c +++ b/usr.bin/osh/osh.c @@ -83,7 +83,6 @@ struct builtin_cmd { static struct builtin_cmd cmds[] = { {"help",cmd_help}, - {"echo",cmd_echo}, {"exit",cmd_exit}, {"reboot",cmd_reboot}, {"shutdown", cmd_shutdown}, @@ -116,16 +115,6 @@ cmd_shutdown(int argc, char *argv[]) cpu_reboot(REBOOT_POWEROFF | REBOOT_HALT); } -static void -cmd_echo(int argc, char *argv[]) -{ - for (i = 1; i < argc; i++) { - fputs(argv[i], stdout); - putchar(' '); - } - putchar('\n'); -} - static void cmd_clear(int argc, char *argv[]) { -- cgit v1.2.3