about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2020-11-23 04:05:56 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2021-11-26 08:30:08 +0000
commit709f1057b744bfa307db319d1112fe6d83743b62 (patch)
treef82a2e446d30b54bfae6533c97cccbe48cf9f63e /Test
parent16d5d6a9dae526355caf16f2de9d57d84b5d9993 (diff)
downloadzsh-709f1057b744bfa307db319d1112fe6d83743b62.tar.gz
zsh-709f1057b744bfa307db319d1112fe6d83743b62.tar.xz
zsh-709f1057b744bfa307db319d1112fe6d83743b62.zip
47599 (tweaked): New test for '{foo,bar}' in command position
It's currently treated as a list but should perhaps be a brace expansion.
Diffstat (limited to 'Test')
-rw-r--r--Test/A01grammar.ztst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst
index ac39a4eea..4e39a8f3c 100644
--- a/Test/A01grammar.ztst
+++ b/Test/A01grammar.ztst
@@ -953,3 +953,11 @@ F:Note that the behaviour of 'exit' inside try-list inside a function is unspeci
 0:Comments should be handled in command subst in interactively sourced files
 >foo
 >bar
+
+ function 'ls,/' () {echo success}
+ {ls,/}
+0:workers/47599: current-shell blocks masquerading as brace expansion
+>success
+F:This test was written to ensure the behaviour doesn't change silently.
+F:If this test fails during development, it *might* be appropriate to change
+F:its expectations.