diff options
author | Ian Moffett <ian@osmora.org> | 2025-06-29 20:55:51 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-06-29 20:56:24 -0400 |
commit | 08dc44c415c63abd71524468afe26b42f2e23b69 (patch) | |
tree | dc8e4db8a31c17df558d1db25f660993aa1899c7 /usr.bin/osh | |
parent | 0e3b384a2e97c41e14a7692472ac7c4454b3b227 (diff) |
usr: Add 'echo' program to replace osh builtin
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin/osh')
-rw-r--r-- | usr.bin/osh/osh.c | 11 |
1 files changed, 0 insertions, 11 deletions
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}, @@ -117,16 +116,6 @@ cmd_shutdown(int argc, char *argv[]) } 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[]) { fputs("\033[H", stdout); |