From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28581 invoked by alias); 27 Sep 2011 13:55:17 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16445 Received: (qmail 9645 invoked from network); 27 Sep 2011 13:55:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.210.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=namtrac.org; s=www; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=X2MAaE+sjITiqdHYohBrRfWmMePzID4Vj3WtZHrZczY=; b=dDr+/K/PYJRuk1iQGNA7/GxW8ocbVaBaYo2YzzLYJivS+4zGNpjJr9whpl3eKrxfBx KQO7c8cfSBBdmgWz8jbXHMpwtsO2aAkGLSVWM+xdKz3lQvnaK2rnRDjzw03h9TiaIbRd UIxoQlj4vxhqIIV3AjPdWlF5pjSaOJtJz6d/4= MIME-Version: 1.0 In-Reply-To: References: From: =?UTF-8?B?xLBzbWFpbCBEw7ZubWV6?= Date: Tue, 27 Sep 2011 15:54:52 +0200 Message-ID: Subject: Re: Interesting zsh behaviour regarding awk and backslash To: Zsh Users Content-Type: multipart/alternative; boundary=00151773e0dad33e7304adec9f2c --00151773e0dad33e7304adec9f2c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi; On Tue, Sep 27, 2011 at 3:51 PM, Mikael Magnusson wrote= : > On 27 September 2011 13:42, =C4=B0smail D=C3=B6nmez = 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. --00151773e0dad33e7304adec9f2c--