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

Reply via email to