Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Interesting zsh behaviour regarding awk and backslash
- X-seq: zsh-users 16441
- From: Jérémie Roquet <arkanosis@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Interesting zsh behaviour regarding awk and backslash
- Date: Tue, 27 Sep 2011 13:54:25 +0200
- Cc: İsmail Dönmez <ismail@xxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=X+h+hMQv/bSfuCdvZgKympmAq4JJwJuE0JfcTgOiAaQ=; b=giipMjdsRafJ/z0GDCwAwWTHFNocoawKPNSomqS/vAkz0PfEukHi9TOCCFhU4e0xKW LNA83sxb2emAtykskdPV7hp0cQ88KF2TfMf9v1YYyL37XpTyFYAC+TTy9C+rfBojqX/6 dNaQDzziTELAbCePCdaFAEQyFvWSK59VZ4PTs=
- In-reply-to: <CAJR5sYhgXzUiGn_BGHiULrqH_VZtxhNFFBVEc=F-tq5D+OZ74g@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>
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