Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
can print but not assign to variable
- X-seq: zsh-users 28271
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: can print but not assign to variable
- Date: Wed, 26 Oct 2022 14:11:07 -0700
- Archived-at: <https://zsh.org/users/28271>
- List-id: <zsh-users.zsh.org>
$ 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