Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: surprise with echo
- X-seq: zsh-users 19610
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: surprise with echo
- Date: Fri, 19 Dec 2014 12:21:26 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1418988087; bh=npbcF4jFXSjJp5CCpEiyS5ePmDLrWxgcfmvz2u65Gw0=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=XEf/JLiJkBcUQa1x58nrFlpqM1X+PMbx7CeCeTiG/mBOCXynKqo1Vnmvk8vBal3FyYCUp1fNFmwUrfH0fzGSR/BLrKPj24Tt5N+EtqzaRvbFmINhmP3ObY7t5z6g0aPWkYq+0Kvu4yG0o4dVgDz5e/q3kQaudgh/oBq7raaYvagzgFN9OhEQOdjMGvqRsKTitZl8T4Qk2cHYccOJTgBV1x6WH7aDRFB2V9TbN8GBaaLa7pjScJ/v8Lf+dnqL8g/RNkvKrejBcSKp2ynujCrn4ZBLB2qkJHjwzEqoh/hw2FZq4W5ggOnkEi80USsryuCb895eA6oOCZEQ5ZlJzocfvA==
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.co.uk; b=Nx0c9LlCq83E4YgkPYj/u2SPW51jwV//7RS7GToPHE/srKZ9Y+8iiJ6iLJ3EEAqEy/lE6XfORykZEsoUuOTq0giVwMznx0+11e4qR9n8y4AQnLfi0yjbqkSd0HuQgXv7twAZLqngLDoHCxKZ2Rx0cXcJ0CTxE6qHZbTSSJuHJSbzhO0TNFenXiKETM3qidkBSACGys2g0fGnLo+DOOitUaPCEb4LkLtOI0T79bP/FV3vNKa4xt1Tw1EejGAE1vLZvOWhGAqMRV4kalYE+PdPBtSYRR20yhQboTytrwySeOi1dSeXFQUI1CRLSAMDzJbvnKY1se2vsruFVAae08P6bg==;
- In-reply-to: <CABx2=D8EU+uFXizT99ETXMZKScrFAeyEezeV9NgsLe8=Sdv4Bg@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <54937E5B.2020008@eastlink.ca> <141218190653.ZM16331@torch.brasslantern.com> <CABx2=D8EU+uFXizT99ETXMZKScrFAeyEezeV9NgsLe8=Sdv4Bg@mail.gmail.com>
Kurtis Rader wrote:
> It is possible, even likely, I'm missing the point of the RC_EXPAND_PARAM
> emulation option since I've never used the Plan 9 rc shell before today. If
I've never regarded the rc_expand_param and rc_quotes options as being
there to emulate rc. They are merely inspired by rc.
Both are useful features and are worth enabling in an interactive
configuration but don't expect your rc scripts to even come close to
working in zsh. Note in particular that in rc, ^ is a special operator
for joining strings. rc_expand_param doesn't enable support for that.
Incidentally, I have actually used rc for a while because it was the
default shell on the CS department systems at the university I went to.
In terms of syntax and design, it is much better than sh but also about
as functional as sh from an interactive perspective.
> On Thu, Dec 18, 2014 at 7:06 PM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
> wrote:
> >
> > Only by turning off the option, or by doing e.g. ${@:-''} so that the
> > expansion is the empty string rather than the empty array.
$^^@ will also do the job of disabling the option.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author