Your message dated Sun, 16 Sep 2018 16:33:12 -0700 with message-id <[email protected]> and subject line Re: dash: echo "\\c" does not print a backslash followed by c has caused the Debian Bug report #908861, regarding dash: echo "\\c" does not print a backslash followed by c 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 this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 908861: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=908861 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---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
--- End Message ---
--- Begin Message ---Hi, [email protected] wrote: > Please close this bug as invalid. > Sorry for this invalid bug report. > I found out, this is no bug. > > The reason that confuse me was: > $ [ "\\\\" = '\\' ] && echo "is the same" > is the same > > Also /bin/echo and bash behaves the same way when called with option -e > $ /bin/echo -e "\\c" > $ /bin/echo -e "\\\\c" > \c > $ bash -c 'echo -e "\\c"' > $ bash -c 'echo -e "\\\\c"' > \c Thanks, closing.
--- End Message ---

