From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24731 invoked by alias); 27 Sep 2011 11:56: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: 16442 Received: (qmail 21975 invoked from network); 27 Sep 2011 11:56:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.210.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=namtrac.org; s=www; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=CBj/9AXwkG645JxhUbSC0eWF6pLtjzWWwbMVKb27Nus=; b=TMlj0OKqjZOFNVkXx3eGwoSK2+cUm2JtHBLWIR8ACZj9UAly3zWvtfre4SuFTSVzEw uNz7fQ6MG8FiO4xe8wqNbRSpkN8ASkgPbdDzFo/ltiAP/bCRf0T9JHrx8DTKCpcMkZso qqsUQ8CJXEj45T7tPqlksIvJx5iaHMm3yxZKU= MIME-Version: 1.0 In-Reply-To: References: From: =?UTF-8?B?xLBzbWFpbCBEw7ZubWV6?= Date: Tue, 27 Sep 2011 13:55:55 +0200 Message-ID: Subject: Re: Interesting zsh behaviour regarding awk and backslash To: Zsh Users Content-Type: multipart/alternative; boundary=00151773eb426e7e4204adeaf6a5 --00151773eb426e7e4204adeaf6a5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi; On Tue, Sep 27, 2011 at 1:54 PM, J=C3=A9r=C3=A9mie Roquet wrote: > Hi =C4=B0smail, > > 2011/9/27 =C4=B0smail D=C3=B6nmez : > > gawk 3.1.8 > > > > bash: > > > > [~]> echo '\\' | gawk '{gsub("\\\\","\\\\",$0); print($0);}' > > \\\\ > > > > zsh 4.3.12-dev-1 > > > > [~]> echo '\\' | gawk '{gsub("\\\\","\\\\",$0); print($0);}' > > \\ > > > > Ideas? > > Why bother with gawk? > > bash$ echo '\\' > \\ > zsh$ echo '\\' > \ > Ah cool, I was working on a gawk bug when I noticed this :-) Regards, ismail --00151773eb426e7e4204adeaf6a5--