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 3:51 PM, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:

> On 27 September 2011 13:42, İsmail Dönmez <ismail@xxxxxxxxxxx> wrote:
> > Hi;
> >
> > gawk 3.1.8
> >
> > bash:
> >
> > [~]> echo '\\' | gawk '{gsub("\\\\","\\\\",$0); print($0);}'
> > \\\\
> >
> > zsh 4.3.12-dev-1
> >
> > [~]> echo '\\' | gawk '{gsub("\\\\","\\\\",$0); print($0);}'
> > \\
> >
> > Ideas?
>
> setopt bsdecho (it changes whether -e or -E is the default mode).
>

Thanks that works,  any reason this is not on by default for sh
compatibility though?

Regards.


Messages sorted by: Reverse Date, Date, Thread, Author