Package: dash
Version: 0.5.5.1-7.4
Severity: normal

*** Please type your report below this line ***
example:

$ dash
$ BAZ='\\\\'
$ echo $BAZ
\\

whereas:

$ /bin/echo $BAZ
\\\\
$ bash
$ BAZ='\\\\'
$ echo $BAZ
\\\\

this came up when i tried to replace bash printf "%q" (escape) with
an sh implementation:
escape() {
        echo $* | sed -e 's# #\\ #g;s#\\#\\\\#g'
}
out=$(escape $(escape $in))

and trying to create multiple layers of escapes (command taking an
argument of command line with an argument of command line ad nauseam).
workaround seems to be to use /bin/echo for now.

-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

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

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

dash recommends no packages.

dash suggests no packages.

-- debconf information:
* dash/sh: true



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to