Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

(s,:,) made right ("" is also an element)



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



Messages sorted by: Reverse Date, Date, Thread, Author