Your message dated Mon, 10 Oct 2005 15:09:30 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#328887: dash/ash question
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 17 Sep 2005 22:00:49 +0000
>From [EMAIL PROTECTED] Sat Sep 17 15:00:49 2005
Return-path: <[EMAIL PROTECTED]>
Received: from mail.cs.tu-berlin.de [130.149.17.13] (root)
by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
id 1EGkjp-0002N0-00; Sat, 17 Sep 2005 15:00:49 -0700
Received: from mailhost.cs.tu-berlin.de ([EMAIL PROTECTED] [130.149.17.13])
by mail.cs.tu-berlin.de (8.9.3p2/8.9.3) with ESMTP id AAA19863
for <[EMAIL PROTECTED]>; Sun, 18 Sep 2005 00:00:47 +0200 (MEST)
Received: from localhost (localhost [127.0.0.1])
by mailhost.cs.tu-berlin.de (Postfix) with ESMTP id D48F1F20F
for <[EMAIL PROTECTED]>; Sun, 18 Sep 2005 00:00:46 +0200 (MEST)
Received: from mailhost.cs.tu-berlin.de ([127.0.0.1])
by localhost (bueno [127.0.0.1]) (amavisd-new, port 10224) with ESMTP
id 26488-12 for <[EMAIL PROTECTED]>;
Sun, 18 Sep 2005 00:00:46 +0200 (MEST) 13989
Received: from bolero.cs.tu-berlin.de (bolero.cs.tu-berlin.de [130.149.19.1])
by mailhost.cs.tu-berlin.de (Postfix) with ESMTP
for <[EMAIL PROTECTED]>; Sun, 18 Sep 2005 00:00:46 +0200 (MEST)
Received: (from [EMAIL PROTECTED])
by bolero.cs.tu-berlin.de (8.12.10+Sun/8.12.8/Submit) id j8HM0kXE004273;
Sun, 18 Sep 2005 00:00:46 +0200 (MEST)
From: Matthias Klose <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <[EMAIL PROTECTED]>
Date: Sun, 18 Sep 2005 00:00:46 +0200
To: [EMAIL PROTECTED]
X-Debbugs-CC: Herbert Xu <[EMAIL PROTECTED]>
Subject: dash/ash question
X-Mailer: VM 7.17 under 21.4 (patch 17) "Jumbo Shrimp" XEmacs Lucid
X-Virus-Scanned: by amavisd-new at cs.tu-berlin.de
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-11.0 required=4.0 tests=BAYES_00,HAS_PACKAGE,
X_DEBBUGS_CC autolearn=ham version=2.60-bugs.debian.org_2005_01_02
Package: dash
Version: 0.5.2-7
Severity: important
echo '\1\2\3' > foo
when executed from dash (current unstable), echo's three characters,
while bash/zsh/posh echo the six characters. Found in a makefile,
generating wrong sed commands with dash.
---------------------------------------
Received: (at 328887-done) by bugs.debian.org; 10 Oct 2005 15:04:10 +0000
>From [EMAIL PROTECTED] Mon Oct 10 08:04:10 2005
Return-path: <[EMAIL PROTECTED]>
Received: from a.mx.smarden.org [212.21.76.77]
by spohr.debian.org with smtp (Exim 3.36 1 (Debian))
id 1EOzCE-0002s8-00; Mon, 10 Oct 2005 08:04:10 -0700
Received: (qmail 10549 invoked by uid 1000); 10 Oct 2005 15:04:28 -0000
Message-ID: <[EMAIL PROTECTED]>
Date: Mon, 10 Oct 2005 15:09:30 +0000
From: Gerrit Pape <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Bug#328887: dash/ash question
Reply-To: [EMAIL PROTECTED]
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2005_01_02
On Sun, Sep 18, 2005 at 05:52:43PM +1000, Herbert Xu wrote:
> On Sun, Sep 18, 2005 at 12:00:46AM +0200, Matthias Klose wrote:
> > echo '\1\2\3' > foo
> >
> > when executed from dash (current unstable), echo's three characters,
> > while bash/zsh/posh echo the six characters. Found in a makefile,
> > generating wrong sed commands with dash.
What I read from the spec is that the output of the command is
unspecified, see
http://www.opengroup.org/onlinepubs/009695399/utilities/echo.html
> This is correct as POSIX requires echo to interpret escape sequences.
>
> A more portable way to write the above is
>
> printf '%s\n' '\1\2\3' > foo
echo '\\1\\2\\3' also should output \1\2\3 in a posix shell, but bash
doesn't do so.
Regards, Gerrit.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]