zsh-users
 help / color / mirror / code / Atom feed
* field splitting behavior
@ 2001-11-27 19:04 Paul Lew - remove nospam when reply
  2001-11-27 19:21 ` Zefram
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Lew - remove nospam when reply @ 2001-11-27 19:04 UTC (permalink / raw)
  To: zsh-users

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


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

end of thread, other threads:[~2001-11-28 10:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-27 19:04 field splitting behavior Paul Lew - remove nospam when reply
2001-11-27 19:21 ` Zefram
2001-11-28 10:30   ` Peter Stephenson

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