From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25384 invoked by alias); 19 Dec 2014 06:00:19 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19596 Received: (qmail 22053 invoked from network); 19 Dec 2014 06:00:17 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 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= X-Sasl-enc: y6hirygwNUI1z+Rjsjh6i1f4RSZgRwi2ePdmcRQG4yn0 1418968815 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Subject: Re: surprise with echo From: =?utf-8?Q?Lawrence_Vel=C3=A1zquez?= In-Reply-To: Date: Fri, 19 Dec 2014 01:00:15 -0500 Cc: zsh-users@zsh.org Content-Transfer-Encoding: quoted-printable Message-Id: <437CBA73-9C5C-4918-B973-C35E9F4B6FB7@macports.org> References: <54937E5B.2020008@eastlink.ca> <141218190653.ZM16331@torch.brasslantern.com> <1BF8BB5F-7A65-4837-843F-48D76E1BC7EB@macports.org> To: Kurtis Rader X-Mailer: Apple Mail (2.1993) On Dec 19, 2014, at 12:19 AM, Kurtis Rader 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=3D() heredoc> echo 1: aaa^$foo^bbb heredoc>=20 heredoc> foo=3D('') heredoc> echo 2: aaa^$foo^bbb heredoc>=20 heredoc> foo=3D(1 2) heredoc> echo 3: aaa^$foo^bbb heredoc> EOF % rc /private/tmp/x 1: aaabbb 2: aaabbb 3: aaa1bbb aaa2bbb % vq=