Package: bash
Version: 4.3-11+b1
Severity: normal
Dear Maintainer, :)
Create file /tmp/test that contains:
echo 'a\nb'
Now run this two commands:
sh /tmp/mytest
bash /tmp/mytest
One of these commands prints two lines while other prints one line:
root@orion:/tmp# cat mytest
echo 'a\nb'
root@orion:/tmp# sh ./mytest
a
b
root@orion:/tmp# bash ./mytest
a\nb
root@orion:/tmp#
-- System Information:
Debian Release: 8.6
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 3.16.0-4-686-pae (SMP w/4 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages bash depends on:
ii base-files 8+deb8u6
ii dash 0.5.7-4+b1
ii debianutils 4.4+b1
ii libc6 2.19-18+deb8u6
ii libncurses5 5.9+20140913-1+b1
ii libtinfo5 5.9+20140913-1+b1
Versions of packages bash recommends:
pn bash-completion <none>
Versions of packages bash suggests:
pn bash-doc <none>
-- no debconf information