Hello autoconfers. While testing automake on Solaris 10, I've come across another "funny" misbehaviour of /bin/sh: it trips up on here-documents that contains a command substitution *and* are fed to a shell function:
# All as expected. $ cat <<END `pwd` END /home/stefano $ echo status = $? status = 0 # An apparently innocuous function ... $ kitty () { cat; } # ... but hilarity ensues! $ kitty <<END `pwd` END /tmp/sh137723: cannot open $ echo status = $? status = 1 Regards, Stefano