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

Re: Interesting zsh behaviour regarding awk and backslash



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).

-- 
Mikael Magnusson



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