Package: dash
Version: 0.5.10.2-1
Severity: normal

-- Description of the problem --
Next commands are executed as expected:
bs@sid:~$ dash
$ man dash | grep "Output a backslash"
            \\      Output a backslash.
$ echo "\\"
\
$ echo "c"
c
$ exit
bs@sid:~$ 

Next command is executed, but not as expected and reason for this bugreport:
bs@sid:~$ dash
$ echo "\\c"
$ exit
bs@sid:~$ 

Next commands are workarounds, that behave as expected, but without dash echo
bs@sid:~$ dash
$ /bin/echo "\\c"
\c
$ bash -c 'echo "\\c"'
\c
$ exit
bs@sid:~$ 

-- My assumption --
It seems, dash interprets "\\c" like "\c" which means that Subsequent output is 
suppressed, as shown in the manpage.

If this bugreport is considered as valid by the developers, I believe the same 
bug may also be in other shells like 'busybox sh', 'mksh' and 'posh' and I will 
double check this suspicion and report additional bug reports.

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

Kernel: Linux 4.18.0-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dash depends on:
ii  debianutils  4.8.6
ii  dpkg         1.19.0.5+b1
ii  libc6        2.27-6

dash recommends no packages.

dash suggests no packages.

-- debconf information:
* dash/sh: true

Reply via email to