zsh-users
 help / color / mirror / code / Atom feed
* priority problem of ":|" and ":*"
@ 2012-12-24 10:52 Han Pingtian
  2012-12-25 23:11 ` Han Pingtian
  0 siblings, 1 reply; 7+ messages in thread
From: Han Pingtian @ 2012-12-24 10:52 UTC (permalink / raw)
  To: zsh-user

hi,

I believe the new ":|" and ":*" should be in Rule 7 Modifiers of
paramter expansion, so this looks like a problem in priority:

    % a1=(a b c);a2=('a b c');print "${a1:|a2}"
    
    % a1=(a b c);a2=('a b c');print "${#a1:|a2}"
    3

in this, the priority should be "5 Double-quoted joining" first, then "7
modifiers", then "9 length". So 'print "${#a1:|a2}"' should output 0 I
think. And the ":*" has the same problem. 



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

end of thread, other threads:[~2012-12-27  9:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-24 10:52 priority problem of ":|" and ":*" Han Pingtian
2012-12-25 23:11 ` Han Pingtian
2012-12-26  9:10   ` Bart Schaefer
2012-12-26 10:09     ` Han Pingtian
2012-12-27  6:24       ` Bart Schaefer
2012-12-27  9:06         ` Han Pingtian
2012-12-26 16:44     ` Ray Andrews

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