Package: bash Version: 4.2+dfsg-1 Severity: normal Dear Maintainer,
Thank you very much for maintaining Debian's bash package. It's important. People using the nicknames "geirha" and "ormaaj" in the #bash channel at freenode's IRC network and I happened to notice bash doing something we didn't expect. We found two circumstances where it appeared to lose a little data. I duplicated the little loss with versions 4.2.45(1)-release and 4.3.0(1)-rc1. The later was running as a bot in freenode's #evalbot channel. OK, here's the first code that elicits the odd behavior: $ echo 'set -x; echo "a" >> /dev/stderr ; echo "b" >> /dev/stderr' > ./c ; chmod 755 ./c ; ./c > ./d 2>&1 ; cat ./d ; rm ./c ./d I expected the first echo statement to produce an output line containing just an "a". However, all I got was echo 'set -x; echo "a" >> /dev/stderr ; echo "b" >> /dev/stderr' > ./c ; chmod 755 ./c ; ./c > ./d 2>&1 ; cat ./d ; rm ./c ./d ++ echo a ++ echo b b The second sample code is: $ set -v; echo 'f() { echo a >>/dev/stderr ; }; f; echo b >&2' >./c; chmod 755 ./c; ./c >./d 2>&1; cat ./d ; rm ./c ./d Likewise, I expected its first echo statement to produce an output line containing just an "a". However, I got only set -v; echo 'f() { echo a >>/dev/stderr ; }; f; echo b >&2' >./c; chmod 755 ./c; ./c >./d 2>&1; cat ./d b The "a" line reappears if "set -x" is not used ... $ echo 'echo "a" >> /dev/stderr ; echo "b" >> /dev/stderr' > ./c ; chmod 755 ./c ; ./c > ./d 2>&1 ; cat ./d ; rm ./c ./d a b It also reappears if a file is not used ... $ { set -x; echo "a" >> /dev/stderr ; echo "b" >> /dev/stderr ; } 2>&1 + echo a a + echo b b I hope that helps, Kingsley -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (990, 'unstable') Architecture: i386 (i686) Kernel: Linux 3.0.0-1-686-pae (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/bash Versions of packages bash depends on: ii base-files 7.2 ii dash 0.5.7-3 ii debianutils 4.4 ii libc6 2.17-97 ii libtinfo5 5.9+20130608-1 Versions of packages bash recommends: ii bash-completion 1:2.0-1 Versions of packages bash suggests: ii bash-doc 4.2+dfsg-1 -- Configuration Files: /etc/bash.bashrc changed [not included] -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org