zsh-users
 help / color / mirror / code / Atom feed
* can print but not assign to variable
@ 2022-10-26 21:11 Ray Andrews
  2022-10-26 21:38 ` Roman Perepelitsa
  0 siblings, 1 reply; 8+ messages in thread
From: Ray Andrews @ 2022-10-26 21:11 UTC (permalink / raw)
  To: Zsh Users



  $ 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.




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-10-27  0:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-26 21:11 can print but not assign to variable Ray Andrews
2022-10-26 21:38 ` Roman Perepelitsa
2022-10-26 21:49   ` Ray Andrews
2022-10-26 21:57     ` Lawrence Velázquez
2022-10-26 22:07       ` Ray Andrews
2022-10-26 22:19         ` Lawrence Velázquez
2022-10-27  0:00           ` Ray Andrews
2022-10-27  0:36             ` Lawrence Velázquez

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).