/bin/sh compatibility issue

Johannes Hofmann Johannes.Hofmann at gmx.de
Wed May 10 08:39:53 PDT 2006


The following shell script outputs "false1" with all shells I tried
but with /bin/sh on DragonFly. Is this a known incompatibility?

#!/bin/sh
set -e
if true; then
      false && echo "huh?"
fi
echo "false1"
false
echo "false2"


 Johannes

PS: This issue has shown up with the hgmerge script from mercurial.





More information about the Users mailing list