Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

can print but not assign to variable





 $ print -l (#i)$W/rap
/aWorking/Zsh/Source/Wk/RAP
/aWorking/Zsh/Source/Wk/Rap
/aWorking/Zsh/Source/Wk/rap

$ var=(#i)$W/rap
zsh: bad pattern: #i

I'm not expecting trouble there.  I can make the assignment using " var=$( print ... ) ", but still it puzzles me that it's not straightforward.






Messages sorted by: Reverse Date, Date, Thread, Author