Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: surprise with echo
- X-seq: zsh-users 19596
- From: Lawrence Velázquez <larryv@xxxxxxxxxxxx>
- To: Kurtis Rader <krader@xxxxxxxxxxxxx>
- Subject: Re: surprise with echo
- Date: Fri, 19 Dec 2014 01:00:15 -0500
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:content-type:mime-version :subject:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to; s=smtpout; bh=LeIkOkrmBAxTQC9lDTaOYhr WQCM=; b=d0coP/3ro/uUn4wpfXYnve5pluPi3ZftohXqiURkBvRX4R5GZzLb3Xn rjKHTdrk/dgrxlZ/pt2R7ABH0nquT3sEDBovE2S0wcamn/j6B4b2v4Ui15HRF+0m 0YYxcKJrqGxCuHm1rdrVLXPNOrYUdQvbW1bi6yJzNfUctSQ3p49M=
- In-reply-to: <CABx2=D_abyadcNT8Lgv+=Z5DqncQfjAaw=qWZ21-MoT-4=eGGA@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> <1BF8BB5F-7A65-4837-843F-48D76E1BC7EB@macports.org> <CABx2=D_abyadcNT8Lgv+=Z5DqncQfjAaw=qWZ21-MoT-4=eGGA@mail.gmail.com>
On Dec 19, 2014, at 12:19 AM, Kurtis Rader <krader@xxxxxxxxxxxxx> wrote:
> You apparently missed my point that script was meant to be run by a Plan 9 rc shell. See the "#!/usr/bin/rc" at the top. It was meant to exhibit the behavior of the shell the zsh RC_EXPAND_PARAM option is meant to emulate.
I did not miss your point, but I did misunderstand some of the rc-specific syntax you used, and I think your test examples conflated many of the issues being discussed.
However, simpler test cases do support your position.
% cat >/private/tmp/x <<'EOF'
heredoc> foo=()
heredoc> echo 1: aaa^$foo^bbb
heredoc>
heredoc> foo=('')
heredoc> echo 2: aaa^$foo^bbb
heredoc>
heredoc> foo=(1 2)
heredoc> echo 3: aaa^$foo^bbb
heredoc> EOF
% rc /private/tmp/x
1: aaabbb
2: aaabbb
3: aaa1bbb aaa2bbb
%
vq
Messages sorted by:
Reverse Date,
Date,
Thread,
Author