Debian Bug report logs - #593237
dash built-in echo expands \nnn sequences

version graph

Package: dash; Maintainer for dash is Andrej Shadura <[email protected]>; Source for dash is src:dash (PTS, buildd, popcon).

Reported by: "Alexander E. Patrakov" <[email protected]>

Date: Mon, 16 Aug 2010 14:42:01 UTC

Severity: wishlist

Tags: upstream, wontfix

Merged with 538100, 550399, 599834, 652509, 698593

Found in versions 0.5.5.1-7.4ubuntu1, dash/0.5.4-12, dash/0.5.5.1-2, dash/0.5.5.1-6, dash/0.5.5.1-7.4

Full log


Message #5 received at [email protected] (full text, mbox, reply):

Received: (at submit) by bugs.debian.org; 16 Aug 2010 14:39:02 +0000
From [email protected] Mon Aug 16 14:39:02 2010
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on busoni.debian.org
X-Spam-Level: 
X-Spam-Bayes: score:0.0000 Tokens: new, 7; hammy, 151; neutral, 53; spammy, 0.
	spammytokens: hammytokens:0.000-+--26325amd64, 0.000-+--2.6.32-5-amd64,
	0.000-+--Severity, 0.000-+--x86_64, 0.000-+--UD:UTF-8
X-Spam-Status: No, score=-9.9 required=4.0 tests=BAYES_00,FOURLA,HAS_PACKAGE,
	SPF_PASS autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Return-path: <[email protected]>
Received: from mail-ew0-f52.google.com ([209.85.215.52])
	by busoni.debian.org with esmtp (Exim 4.69)
	(envelope-from <[email protected]>)
	id 1Ol0q6-00050d-Cd
	for [email protected]; Mon, 16 Aug 2010 14:39:02 +0000
Received: by ewy20 with SMTP id 20so3022966ewy.11
        for <[email protected]>; Mon, 16 Aug 2010 07:39:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:subject:from:to:content-type
         :date:message-id:mime-version:x-mailer:content-transfer-encoding;
        bh=HGLyZCMyAZUZc654qJFoiPgAwbqza1pnJtjWtUxnW/4=;
        b=FJ4EK4PDB+Wn25QJrxPrdBzG847De4ekYl2nv3h9aycNkSlZdEomEogOiZpsEXRXAO
         PdSaRtoJBSnjWG33R78E3J2uYjovYXSUkFFPgdFfjHAeEuqRM3/hdAf1wkyjCIJsbpWc
         StHSlyp6UlNBchLpvqQ8x+BMnhbsJaqtMO7mo=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=subject:from:to:content-type:date:message-id:mime-version:x-mailer
         :content-transfer-encoding;
        b=dInqTB9w9H+pp3IHCRyFFaTl+Wx5o5ACoVkWsJpcIgT27KFqFhu5ao94+pXqIrzQDm
         A6MNUisWLZ1PtZLpArHr5r/95jOFtNWR0Yne7bxgRO6d2Csw4F8NxAag9LVhRKyZT9/c
         vvJjQLkrfvYzQaStSepSQ+4M8tAF7ONT4cEig=
Received: by 10.213.27.143 with SMTP id i15mr4921617ebc.62.1281969540701;
        Mon, 16 Aug 2010 07:39:00 -0700 (PDT)
Received: from [10.80.1.55] (smtp.ideco-software.ru [94.230.134.146])
        by mx.google.com with ESMTPS id v8sm10104606eeh.20.2010.08.16.07.38.58
        (version=SSLv3 cipher=RC4-MD5);
        Mon, 16 Aug 2010 07:38:59 -0700 (PDT)
Subject: dash: Can't echo \b
From: "Alexander E. Patrakov" <[email protected]>
To: [email protected]
Content-Type: text/plain; charset="UTF-8"
Date: Mon, 16 Aug 2010 20:38:57 +0600
Message-ID: <1281969537.2108.1.camel@patrakov-desktop>
Mime-Version: 1.0
X-Mailer: Evolution 2.28.3 
Content-Transfer-Encoding: 7bit
Delivered-To: [email protected]
Package: dash
Version: 0.5.5.1-6
Severity: normal

There seems to be no way to produce the sequence "\b" (that's
backslash, then the letter b) using dash's builtin echo. Bash
and /bin/echo work fine. I have tried the following commands in my
shell script:

echo "\b"
echo '\b'

...but they only produce a backspace character (0x08) even though
I have not passed the -e switch.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dash depends on:
ii  debianutils                   3.2.3      Miscellaneous utilities
specific t
ii  dpkg                          1.15.7.2   Debian package management
system
ii  libc6                         2.11.2-2   Embedded GNU C Library:
Shared lib

dash recommends no packages.

dash suggests no packages.

-- debconf information:
* dash/sh: true

-- 
Alexander E. Patrakov





Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 14:18:36 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.