From: DervishD <raul@pleyades.net>
To: Peter Stephenson <pws@csr.com>
Cc: Zsh users list <zsh-users@sunsite.dk>
Subject: Re: Can this be done with an array parameter?
Date: Thu, 19 Feb 2004 18:41:41 +0100 [thread overview]
Message-ID: <20040219174141.GD2941@DervishD> (raw)
In-Reply-To: <545.1077211474@csr.com>
Hi Peter :)
* Peter Stephenson <pws@csr.com> dixit:
> DervishD wrote:
> > Anyway I'm still stunned by the first example I put, the
> > assignment to the array in the form array=($array $newitem) Why Zsh
> > quotes correctly? (I should define 'correctly' as 'the way I
> > wanted'...).
> I presume because you're sensible enough not to have sh_word_split set.
When I first used Zsh, I had the option set, since I was more
familiar with that behaviour, but I unsetted it soon ;)
> array=("${array[@}" "$newitem")
> which is what you'd have to do in bash.
And that was the notation I spected ;) I just didn't remember how
Zsh does word splitting ;)
> By the way, in 4.1 you can now do
> array+=($newitem)
Nice!
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/
next prev parent reply other threads:[~2004-02-19 17:45 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 [this message]
2004-02-19 17:16 ` Bart Schaefer
2004-02-19 17:27 ` DervishD
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=20040219174141.GD2941@DervishD \
--to=raul@pleyades.net \
--cc=pws@csr.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).