diff options
author | Ian Moffett <ian@osmora.org> | 2025-06-28 18:49:26 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-06-28 18:49:26 -0400 |
commit | efc4464d0227a51069fef5e80ef2ec05396e0754 (patch) | |
tree | 59c3a394d6c4e219888148cedf63ce7ef38dc1b3 | |
parent | d8a8fa32fb988e91cce17b18e2b79d35793526b6 (diff) |
usr.bin: osh: Ignore tab as input
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | usr.bin/osh/osh.c | 3 |
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') { |