From: DervishD <raul@pleyades.net>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh Users <zsh-users@sunsite.dk>
Subject: Re: Can this be done with an array parameter?
Date: Thu, 19 Feb 2004 18:27:47 +0100 [thread overview]
Message-ID: <20040219172747.GC2941@DervishD> (raw)
In-Reply-To: <1040219171644.ZM14255@candle.brasslantern.com>
Hi Bart :)
* Bart Schaefer <schaefer@brasslantern.com> dixit:
> } Zsh is reading my mind or so. Can anybody explain?
> I note that PWS didn't bother to explain. :-)
Well, he gave me the solution for the assignment without a loop ;)
> Unless the SH_WORD_SPLIT option is set, variable references like $info
> and $line aren't exactly quoted, but they aren't split up at spaces
> either. $info is an array, so it acts (almost) like "${info[@]}", but
> $line is a scalar, so it acts (almost) like "$line".
Oh, yes, I forgot about that. I simply assumed that, since array
values are space separated by default, the contents of the variables
were too. I didn't remember about word splitting O:)
Thanks a lot for the explanation, Bart ;)
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/
prev parent reply other threads:[~2004-02-19 17:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-19 16:46 DervishD
2004-02-19 17:00 ` Peter Stephenson
2004-02-19 17:14 ` DervishD
2004-02-19 17:24 ` Peter Stephenson
2004-02-19 17:41 ` DervishD
2004-02-19 17:16 ` Bart Schaefer
2004-02-19 17:27 ` DervishD [this message]
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=20040219172747.GC2941@DervishD \
--to=raul@pleyades.net \
--cc=schaefer@brasslantern.com \
--cc=zsh-users@sunsite.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).