1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-22 16:20:23 +02:00

18565: bug when ${(u)...} reduced array to length 1

This commit is contained in:
Peter Stephenson 2003-05-21 16:20:54 +00:00
parent 6d9135befe
commit c7a2d2225e
3 changed files with 34 additions and 11 deletions

View file

@ -589,3 +589,13 @@
0:Parameters associated with (#m) flag
>MATCH 16 20 MATCH
>5
print -l JAMES${(u)${=:-$(echo yes yes)}}JOYCE
print -l JAMES${(u)${=:-$(echo yes yes she said yes i will yes)}}JOYCE
0:Bug with (u) flag reducing arrays to one element
>JAMESyesJOYCE
>JAMESyes
>she
>said
>i
>willJOYCE