diff options
| author | dana <dana@dana.is> | 2026-05-02 14:24:11 -0500 |
|---|---|---|
| committer | dana <dana@dana.is> | 2026-05-02 14:38:54 -0500 |
| commit | 9d9b6ba3229b6f7e625b7de23810fdff7dc7ee88 (patch) | |
| tree | 5cd0d8f9dab82d76d274435992b54e1cedcb7753 /Test | |
| parent | 54424: ZSH_EXEPATH: improve documentation, add test (diff) | |
| download | zsh-9d9b6ba3229b6f7e625b7de23810fdff7dc7ee88.tar zsh-9d9b6ba3229b6f7e625b7de23810fdff7dc7ee88.tar.gz zsh-9d9b6ba3229b6f7e625b7de23810fdff7dc7ee88.tar.bz2 zsh-9d9b6ba3229b6f7e625b7de23810fdff7dc7ee88.tar.lz zsh-9d9b6ba3229b6f7e625b7de23810fdff7dc7ee88.tar.xz zsh-9d9b6ba3229b6f7e625b7de23810fdff7dc7ee88.tar.zst zsh-9d9b6ba3229b6f7e625b7de23810fdff7dc7ee88.zip | |
54437 (tweaked): lex: fix <-> in parameter flags
tweaked white space
Diffstat (limited to 'Test')
| -rw-r--r-- | Test/D04parameter.ztst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index 0399faa8e..e192d480d 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -788,6 +788,23 @@ 0:${(r...)...} >why?! in?!! goodn name? am?!! I?!!! doing this? + print -r - ${(l<3><->):-} + print -r - ${(l<3><1->):-} + # these cases weren't affected by the fix for this, but just in case + str=abc123xyz + print -r - ${str//<->/.} + print -r - ${str//<1->/.} + arr=( abc 123 xyz ) + print -r - ${arr[(r)<->]} + print -r - ${arr[(r)<1->]} +0:regression test for <-> in flags +>--- +>-1- +>abc.xyz +>abc.xyz +>123 +>123 + array=(I\'m simply putting a brave face on) print ${(j:--:)array} 0:${(j)...} |
