diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2025-08-12 17:55:48 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2025-08-12 17:56:58 +0200 |
| commit | 5ecbed0e2660f74f3690de52387a7c2f3ea3f2d2 (patch) | |
| tree | adc06cd42a26b8f76260ed1ea38c538218d1457e /shell/hush_test/hush-redir/redir_and_constructs1.tests | |
| parent | ab1de7df999c43f12be26d90e6a143ecfa966630 (diff) | |
hush: do not segfault on "for </dev/null v in..."
This is not accepted by bash, we may also disallow this,
but for now, at least do not crash
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-redir/redir_and_constructs1.tests')
| -rwxr-xr-x | shell/hush_test/hush-redir/redir_and_constructs1.tests | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/hush_test/hush-redir/redir_and_constructs1.tests b/shell/hush_test/hush-redir/redir_and_constructs1.tests new file mode 100755 index 000000000..a92731e04 --- /dev/null +++ b/shell/hush_test/hush-redir/redir_and_constructs1.tests @@ -0,0 +1,2 @@ +# Reserved words are not recognized after redirects +</dev/null ! true; echo 127:$? |
