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

Re: Interesting zsh behaviour regarding awk and backslash



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 '\\'
\

:p

Best regards,

-- 
Jérémie



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