Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Interesting zsh behaviour regarding awk and backslash



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