zsh-users
 help / color / mirror / code / Atom feed
From: "İsmail Dönmez" <ismail@namtrac.org>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Interesting zsh behaviour regarding awk and backslash
Date: Tue, 27 Sep 2011 15:54:52 +0200	[thread overview]
Message-ID: <CAJR5sYiP00oUMEBmKgV_76oiUD6BFNzxgGKpTgNvHwBjQQWy6g@mail.gmail.com> (raw)
In-Reply-To: <CAHYJk3RMadRdRKGLzhMEk1b1LhJzEuAjUdNnor2gpfNVGgf52A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 589 bytes --]

Hi;

On Tue, Sep 27, 2011 at 3:51 PM, Mikael Magnusson <mikachu@gmail.com> wrote:

> On 27 September 2011 13:42, İsmail Dönmez <ismail@namtrac.org> 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.

  reply	other threads:[~2011-09-27 13:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-27 11:42 İsmail Dönmez
2011-09-27 11:54 ` Jérémie Roquet
2011-09-27 11:55   ` İsmail Dönmez
2011-09-27 13:48   ` Bart Schaefer
2011-09-27 18:11     ` Stephane Chazelas
2011-09-27 13:51 ` Mikael Magnusson
2011-09-27 13:54   ` İsmail Dönmez [this message]
2011-09-27 14:18     ` Frank Terbeck
2011-09-27 14:20     ` Bart Schaefer
2011-09-27 14:25       ` İsmail Dönmez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJR5sYiP00oUMEBmKgV_76oiUD6BFNzxgGKpTgNvHwBjQQWy6g@mail.gmail.com \
    --to=ismail@namtrac.org \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).