Your message dated Sat, 10 Sep 2005 10:22:13 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Bug#296269: bash: Wrong evaluation of escape-chars in string 
substitution
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; 21 Feb 2005 13:11:34 +0000
>From [EMAIL PROTECTED] Mon Feb 21 05:11:34 2005
Return-path: <[EMAIL PROTECTED]>
Received: from meaculpa.demon.nl (debruin.org) [82.161.5.152] 
        by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
        id 1D3DLZ-0003It-00; Mon, 21 Feb 2005 05:11:33 -0800
Received: (qmail 31888 invoked by uid 1000); 21 Feb 2005 13:11:41 -0000
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: "Marc L. de Bruin" <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: bash: Wrong evaluation of escape-chars in string substitution
X-Mailer: reportbug 3.2
Date: Mon, 21 Feb 2005 14:11:41 +0100
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-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: bash
Version: 2.05b-24
Severity: normal


Hi,

I ran into a problem with bash 2.05b, which seems to be solved in 3.0.
Consider this line:

DEBVERSION="1%3a3.3.5-8"
DEBVERSION2=`echo -e "${DEBVERSION/\%/\\x}"`
echo $DEBVERSION2

In bash 3.0, this produces the correct "1:3.3.5-8".

However, in bash 2.05, this doesn't work, and thus produces
"1%3a3.3.5-8". To get it working in 2.05, it seems to be

DEBVERSION2=`echo -e "${DEBVERSION/\\\%/\\x}"`

Although this works, it doesn't seem correct. Furthermore, this doesn't
work in bash 3.0 as well.

Marc.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-686-smp
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages bash depends on:
ii  base-files                  3.1.2        Debian base system miscellaneous f
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libncurses5                 5.4-4        Shared libraries for terminal hand
ii  passwd                      1:4.0.3-30.7 Change and administer password and

-- no debconf information

---------------------------------------
Received: (at 296269-done) by bugs.debian.org; 10 Sep 2005 08:22:18 +0000
>From [EMAIL PROTECTED] Sat Sep 10 01:22:18 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 1EE0cr-0006wU-00; Sat, 10 Sep 2005 01:22:17 -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 KAA16000;
        Sat, 10 Sep 2005 10:22:15 +0200 (MEST)
Received: from localhost (localhost [127.0.0.1])
        by mailhost.cs.tu-berlin.de (Postfix) with ESMTP id 5AAE2FD4B;
        Sat, 10 Sep 2005 10:22:15 +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 29228-33; Sat, 10 Sep 2005 10:22:14 +0200 (MEST) 11328
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;
        Sat, 10 Sep 2005 10:22:14 +0200 (MEST)
Received: (from [EMAIL PROTECTED])
        by bolero.cs.tu-berlin.de (8.12.10+Sun/8.12.8/Submit) id j8A8MDjp003615;
        Sat, 10 Sep 2005 10:22:13 +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: Sat, 10 Sep 2005 10:22:13 +0200
To: "Marc L. de Bruin" <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Subject: Re: Bug#296269: bash: Wrong evaluation of escape-chars in string 
substitution
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
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=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

bash-3.0 is now in testing/unstable, on sarge, please use bash3 from
the bash3 package.

Marc L. de Bruin writes:
> Package: bash
> Version: 2.05b-24
> Severity: normal
> 
> 
> Hi,
> 
> I ran into a problem with bash 2.05b, which seems to be solved in 3.0.
> Consider this line:
> 
> DEBVERSION="1%3a3.3.5-8"
> DEBVERSION2=`echo -e "${DEBVERSION/\%/\\x}"`
> echo $DEBVERSION2
> 
> In bash 3.0, this produces the correct "1:3.3.5-8".
> 
> However, in bash 2.05, this doesn't work, and thus produces
> "1%3a3.3.5-8". To get it working in 2.05, it seems to be
> 
> DEBVERSION2=`echo -e "${DEBVERSION/\\\%/\\x}"`
> 
> Although this works, it doesn't seem correct. Furthermore, this doesn't
> work in bash 3.0 as well.
> 
> Marc.
> 
> -- System Information:
> Debian Release: 3.1
>   APT prefers testing
>   APT policy: (500, 'testing')
> Architecture: i386 (i686)
> Kernel: Linux 2.6.8-1-686-smp
> Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
> 
> Versions of packages bash depends on:
> ii  base-files                  3.1.2        Debian base system miscellaneous 
> f
> ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries 
> an
> ii  libncurses5                 5.4-4        Shared libraries for terminal 
> hand
> ii  passwd                      1:4.0.3-30.7 Change and administer password 
> and
> 
> -- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to