From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19306 invoked by alias); 19 Dec 2014 04:39:38 -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: 19586 Received: (qmail 22337 invoked from network); 19 Dec 2014 04:39:37 -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=05ejK4ay3M/Qcw+ptr/HpfH jyTU=; b=AhYqoiZtmxnNTYn2fk3cAU8JuafN2NeFY/NZb/NFe5lRxZ9oFCTf8QF kCC4Iu1uFG7fws80/R7rNH2EwxSmpTKHJ2d6yrD2S/tWjEnXDhQ1c2A0FRq/NiNZ 4N2AS4sZPjpIqUmTPa5UqC5x6wIDQIYHW7+x1pFKmykgVdllfoU8= X-Sasl-enc: 1xQ6/0GOnO9jM9JTGj0Ov4eK0FkIZojVolqfuxjXJpRm 1418963975 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: Thu, 18 Dec 2014 23:39:35 -0500 Cc: zsh-users@zsh.org Content-Transfer-Encoding: quoted-printable Message-Id: <1BF8BB5F-7A65-4837-843F-48D76E1BC7EB@macports.org> References: <54937E5B.2020008@eastlink.ca> <141218190653.ZM16331@torch.brasslantern.com> To: Kurtis Rader X-Mailer: Apple Mail (2.1993) On Dec 18, 2014, at 11:14 PM, Kurtis Rader wrote: > I created a shell script containing >=20 > #!/usr/bin/rc >=20 > echo echoing1: $@ > echo echoing2: $* > echo echoing3: $* $@ killed > echo echoing4: $@ $* dead >=20 > echo aaa^$*^bbb > echo ccc^$@^ddd This doesn't reproduce the environment Ray had because your positional = parameters get substituted into their own words. % cat /private/tmp/x.zsh echo echoing1: $@ echo echoing2: $* echo echoing3: $* $@ killed echo echoing4: $@ $* dead echo aaa^$*^bbb echo ccc^$@^ddd echo echo "echoing5: $@" echo "echoing6: $*" echo "echoing7: $* $@ killed" echo "echoing8: $@ $* dead" % zsh !$ zsh /private/tmp/x.zsh echoing1: echoing2: echoing3: killed echoing4: dead aaa^^bbb ccc^^ddd echoing5:=20 echoing6:=20 echoing7: killed echoing8: dead % zsh -P !$ zsh -P /private/tmp/x.zsh echoing1: echoing2: echoing3: killed echoing4: dead echoing6:=20 % vq=