diff options
author | Chet Ramey <chet.ramey@case.edu> | 2022-06-28 16:15:24 -0400 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2022-06-28 16:15:24 -0400 |
commit | 42768befc05da1def2bdab6cd251cf1e404a530a (patch) | |
tree | c39b317fa87fb9d3a438d2520d8149e3aafd57d2 /tests | |
parent | eb2d46d77c1aea8cd1983f99c2db5f244ffee30a (diff) | |
download | bash-42768befc05da1def2bdab6cd251cf1e404a530a.tar.gz |
fix error message when completing backquote command substitution; fix test builtin with double negation
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/RUN-ONE-TEST | 2 | ||||
-rw-r--r-- | tests/test.right | 4 | ||||
-rw-r--r-- | tests/test.tests | 3 |
3 files changed, 7 insertions, 2 deletions
diff --git a/tests/RUN-ONE-TEST b/tests/RUN-ONE-TEST index 0b063810..c8bef8dd 100755 --- a/tests/RUN-ONE-TEST +++ b/tests/RUN-ONE-TEST @@ -1,4 +1,4 @@ -BUILD_DIR=/usr/local/build/chet/bash/bash-current +BUILD_DIR=/usr/local/build/bash/bash-current THIS_SH=$BUILD_DIR/bash PATH=$PATH:$BUILD_DIR diff --git a/tests/test.right b/tests/test.right index 391edbbd..4be22f4b 100644 --- a/tests/test.right +++ b/tests/test.right @@ -220,6 +220,8 @@ t ! -z "$z" 0 t ! -n "$z" 1 +t ! ! "$z" +0 t "$zero" 1 t ! "$zero" @@ -272,7 +274,7 @@ b ( 1 = 2 2 ./test.tests: line 26: test: too many arguments 2 -./test.tests: line 431: [: missing `]' +./test.tests: line 434: [: missing `]' 2 ./test.tests: line 26: test: (: unary operator expected 2 diff --git a/tests/test.tests b/tests/test.tests index 03e2754a..df4b8509 100644 --- a/tests/test.tests +++ b/tests/test.tests @@ -358,6 +358,9 @@ t ! -z "$z" echo 't ! -n "$z"' t ! -n "$z" +echo 't ! ! "$z"' +t ! ! "$z" + zero= echo 't "$zero"' t "$zero" |