zsh-users
 help / color / mirror / code / Atom feed
* ${(z)} parsing of multiple array assignments
@ 2019-12-23 17:31 Daniel Shahaf
  2019-12-24 20:34 ` Phil Pennock
  2019-12-29 20:55 ` Peter Stephenson
  0 siblings, 2 replies; 11+ messages in thread
From: Daniel Shahaf @ 2019-12-23 17:31 UTC (permalink / raw)
  To: zsh-users

In the following two cases, why are the assignments to $b
parsed differently to the assignments to $a?

    % pz() { print -rl -- ${(qqqq)${(z)1}} }

    % pz 'a=() b=()' 
    $'a=('
    $')'
    $'b='
    $'()'

    % pz 'a=(foo) b=(bar)' 
    $'a=('
    $'foo'
    $')'
    $'b=(bar)'

Thanks,

Daniel

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

end of thread, other threads:[~2019-12-31 18:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-23 17:31 ${(z)} parsing of multiple array assignments Daniel Shahaf
2019-12-24 20:34 ` Phil Pennock
2019-12-24 23:16   ` Sebastian Gniazdowski
2019-12-29 20:55 ` Peter Stephenson
2019-12-29 23:45   ` Peter Stephenson
2019-12-30 18:13     ` Daniel Shahaf
2019-12-30 18:21       ` Daniel Shahaf
2019-12-30 22:37         ` Peter Stephenson
2019-12-30 23:46           ` Daniel Shahaf
2019-12-31 11:58             ` Daniel Shahaf
2019-12-31 18:35             ` Peter Stephenson

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