zsh-users
 help / color / mirror / code / Atom feed
From: Paul Lew - remove nospam when reply <paullew@nospam.cisco.com>
To: zsh-users@sunsite.auc.dk
Subject: field splitting behavior
Date: Tue, 27 Nov 2001 11:04:47 -0800	[thread overview]
Message-ID: <15363.58319.278466.686768@paullew-ultra.cisco.com> (raw)

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


             reply	other threads:[~2001-11-27 19:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-27 19:04 Paul Lew - remove nospam when reply [this message]
2001-11-27 19:21 ` Zefram
2001-11-28 10:30   ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15363.58319.278466.686768@paullew-ultra.cisco.com \
    --to=paullew@nospam.cisco.com \
    --cc=zsh-users@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).