From 42768befc05da1def2bdab6cd251cf1e404a530a Mon Sep 17 00:00:00 2001 From: Chet Ramey Date: Tue, 28 Jun 2022 16:15:24 -0400 Subject: fix error message when completing backquote command substitution; fix test builtin with double negation --- tests/RUN-ONE-TEST | 2 +- tests/test.right | 4 +++- tests/test.tests | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'tests') 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" -- cgit v1.2.1