From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24461 invoked from network); 27 Nov 2001 19:05:44 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 27 Nov 2001 19:05:44 -0000 Received: (qmail 25155 invoked by alias); 27 Nov 2001 19:05:20 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4510 Received: (qmail 25142 invoked from network); 27 Nov 2001 19:05:19 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15363.58319.278466.686768@paullew-ultra.cisco.com> Date: Tue, 27 Nov 2001 11:04:47 -0800 To: zsh-users@sunsite.auc.dk Subject: field splitting behavior From: Paul Lew - remove nospam when reply X-Mailer: VM 6.99 under Emacs 21.1.1 Take a look at the following: > var='foo:bar' > echo ${(@)${(s/:/)var}[1]} foo > var='foobar' > echo ${(@)${(s/:/)var}[1]} f So why it did field splitting on each character when there is no separator ':' found? I would expect 'foobar' on the output. Thanks in advance..