summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-06-28 18:49:26 -0400
committerIan Moffett <ian@osmora.org>2025-06-28 18:49:26 -0400
commitefc4464d0227a51069fef5e80ef2ec05396e0754 (patch)
tree59c3a394d6c4e219888148cedf63ce7ef38dc1b3
parentd8a8fa32fb988e91cce17b18e2b79d35793526b6 (diff)
usr.bin: osh: Ignore tab as input
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--usr.bin/osh/osh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/osh/osh.c b/usr.bin/osh/osh.c
index aa8ef27..0e017e4 100644
--- a/usr.bin/osh/osh.c
+++ b/usr.bin/osh/osh.c
@@ -224,6 +224,9 @@ getstr(void)
}
c = (char)input;
+ if (c == '\t') {
+ continue;
+ }
/* return on newline */
if (c == '\n') {