From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24418 invoked by alias); 13 Mar 2015 10:18:18 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19999 Received: (qmail 21358 invoked from network); 13 Mar 2015 10:18:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.2 Date: Fri, 13 Mar 2015 11:12:08 +0100 From: Marc Chantreux To: zsh-users@zsh.org Subject: (s,:,) made right ("" is also an element) Message-ID: <20150313101208.GA5325@ramirez.u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Virus-Scanned: ClamAV using ClamSMTP 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