zsh-users
 help / color / mirror / code / Atom feed
* (s,:,) made right ("" is also an element)
@ 2015-03-13 10:12 Marc Chantreux
  2015-03-13 10:42 ` Michal Politowski
  0 siblings, 1 reply; 3+ messages in thread
From: Marc Chantreux @ 2015-03-13 10:12 UTC (permalink / raw)
  To: zsh-users

hello, 

say i have

    PATH="/usr/bin::/bin" 
    print -l ${(s,:,)PATH}
    foo=( ${(s,:,)PATH} )
    print $#foo

because i have an empty element (which is also an element)

i got

    /usr/bin
    /bin
    2


i expect

    /usr/bin

    /bin
    3 

does someone know how to fix zsh?

regards 

-- 
Marc Chantreux (eiro on github and freenode)
http://eiro.github.com/
http://eiro.github.com/atom.xml
"Don't believe everything you read on the Internet"
    -- Abraham Lincoln


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

end of thread, other threads:[~2015-03-13 14:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-13 10:12 (s,:,) made right ("" is also an element) Marc Chantreux
2015-03-13 10:42 ` Michal Politowski
2015-03-13 14:16   ` Marc Chantreux

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