Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Interesting zsh behaviour regarding awk and backslash
- X-seq: zsh-users 16442
- From: İsmail Dönmez <ismail@xxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Interesting zsh behaviour regarding awk and backslash
- Date: Tue, 27 Sep 2011 13:55:55 +0200
- 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=
- In-reply-to: <CAFOazANa=wPfZteUr4N3W3gQSr8gRMNSEUsXjrAAMitz3+Xm8g@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: <CAJR5sYhgXzUiGn_BGHiULrqH_VZtxhNFFBVEc=F-tq5D+OZ74g@mail.gmail.com> <CAFOazANa=wPfZteUr4N3W3gQSr8gRMNSEUsXjrAAMitz3+Xm8g@mail.gmail.com>
Hi;
On Tue, Sep 27, 2011 at 1:54 PM, Jérémie Roquet <arkanosis@xxxxxxxxx> wrote:
> Hi İsmail,
>
> 2011/9/27 İsmail Dönmez <ismail@xxxxxxxxxxx>:
> > 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author