summaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2025-08-14 16:19:58 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2025-08-14 16:19:58 +0200
commit6cc338010515ec4caef802a70f9f374cf98b8294 (patch)
tree658af62d1b336265028e1edde837eed0ec328c4f /shell/hush_test
parentcad5a79bd4e8ceef4a68f1551fd2b25122bcb1c8 (diff)
hush: undo incorrect change which allows a'b'=c to be assignment
While at it, remove now-unused WORD_IS_KEYWORD Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test')
-rw-r--r--shell/hush_test/hush-misc/assignment2.right2
-rwxr-xr-xshell/hush_test/hush-misc/assignment2.tests2
2 files changed, 4 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/assignment2.right b/shell/hush_test/hush-misc/assignment2.right
index 9d1860be7..5e54b408b 100644
--- a/shell/hush_test/hush-misc/assignment2.right
+++ b/shell/hush_test/hush-misc/assignment2.right
@@ -1,2 +1,4 @@
hush: can't execute 'a=b': No such file or directory
127
+hush: can't execute 'ab=c': No such file or directory
+127
diff --git a/shell/hush_test/hush-misc/assignment2.tests b/shell/hush_test/hush-misc/assignment2.tests
index f6938434c..a93a48d09 100755
--- a/shell/hush_test/hush-misc/assignment2.tests
+++ b/shell/hush_test/hush-misc/assignment2.tests
@@ -1,3 +1,5 @@
# This must not be interpreted as an assignment
a''=b true
echo $?
+a'b'=c true
+echo $?