diff options
| author | dana <dana@dana.is> | 2026-07-08 15:39:01 -0500 |
|---|---|---|
| committer | dana <dana@dana.is> | 2026-07-08 15:39:16 -0500 |
| commit | 996fdfb53d9369c378353d0bd752508c3a0be183 (patch) | |
| tree | 07f8f5f72c765944f628b64ed1c33114c5772f39 /Test | |
| parent | 54909: Untokenize before quoting unquoted literal values (diff) | |
| download | zsh-996fdfb53d9369c378353d0bd752508c3a0be183.tar zsh-996fdfb53d9369c378353d0bd752508c3a0be183.tar.gz zsh-996fdfb53d9369c378353d0bd752508c3a0be183.tar.bz2 zsh-996fdfb53d9369c378353d0bd752508c3a0be183.tar.lz zsh-996fdfb53d9369c378353d0bd752508c3a0be183.tar.xz zsh-996fdfb53d9369c378353d0bd752508c3a0be183.tar.zst zsh-996fdfb53d9369c378353d0bd752508c3a0be183.zip | |
unposted: tests: add regression test for w/54909
Diffstat (limited to 'Test')
| -rw-r--r-- | Test/D04parameter.ztst | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index 583f8d28a..71ff8c04f 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -2371,6 +2371,26 @@ 0:(q) and (b) quoting deal with the EQUALS option >\=foo =foo '=foo' + print -r - ${(q):-=} ${(qq):-=} ${(qqq):-=} ${(qqqq):-=} ${(q+):-=} ${(q-):-=} + print -r - \ + ${(q):-a = b}, ${(qq):-a = b}, ${(qqq):-a = b}, ${(qqqq):-a = b}, \ + ${(q+):-a = b}, ${(q-):-a = b} + print -r - \ + ${(qq):-a= {b,c}*}, ${(qqq):-a= {b,c}*}, ${(qqqq):-a= {b,c}*}, \ + ${(q+):-a= {b,c}*}, ${(q-):-a= {b,c}*} + ( print -r - ${(q):-=}a ) + ( print -r - ${(q+):-= } ) + ( print -r - ${(q+):-=a} ) + ( print -r - ${(q):-a= {b,c}*} ) +-:regression: workers/54909, (q) etc tokenised chars +>= '=' "=" $'=' '=' '=' +>a\ =\ b, 'a = b', "a = b", $'a = b', 'a = b', 'a = b' +>'a= b*' 'a= c*', "a= b*" "a= c*", $'a= b*' $'a= c*', 'a= b*' 'a= c*', 'a= b*' 'a= c*' +*?*no*found* +*?*no*found* +*?*no*found* +*?*no*found* + args() { print $#; } a=(foo) args "${a[3,-1]}" |
