Bug#316213: bash confused by missing newline at end of script
Dear Jonathan, I use now bash 4.1-3. The bug does not exist any more! Regards, Martin -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#316213: bash confused by missing newline at end of script
tags 316213 + moreinfo tags 316213 - unreprocible quit Hi Martin, Martin Ziegler wrote: The script if /bin/false ; then echo hi fi prints hi, if there is NO NEWLINE at the end. Could you give a simple script to reproduce this? For example: cat -\EOF testme.sh if /bin/false ; then echo hi fi EOF head -c $(( $(wc -c testme.sh) - 1 )) testme.sh nonl.sh chmod +x nonl.sh bash ./nonl.sh does not print hi here. Thanks for reporting, Jonathan -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#316213: bash confused by missing newline at end of script
tags 316213 + unreproducible thanks Martin Ziegler writes: Package: bash Version: 3.0-15 Severity: normal The script if /bin/false ; then echo hi fi prints hi, if there is NO NEWLINE at the end. Similarly if ! /bin/false ; then echo hi fi prints nothing. I'm unable to reproduce these with the current version in unstable. Please could you be more specific, how you execute the scripts? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#316213: bash confused by missing newline at end of script
Package: bash Version: 3.0-15 Severity: normal The script if /bin/false ; then echo hi fi prints hi, if there is NO NEWLINE at the end. Similarly if ! /bin/false ; then echo hi fi prints nothing. -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing'), (50, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.3-1-686 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages bash depends on: ii base-files 3.1.4Debian base system miscellaneous f ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii libncurses5 5.4-4Shared libraries for terminal hand ii passwd 1:4.0.3-31sarge5 change and administer password and -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]