Subject: sh: unbalanced ' in ` not detected
To: None <tech-userlevel@NetBSD.org>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-userlevel
Date: 10/27/2007 16:59:01
Note the unbalanced ' within the ` here:
echo `echo 'foo`
This fails in bash and NetBSD's ksh, but not in NetBSD's sh
(and neither on Solaris' /bin/sh, /usr/xpg4/bin/sh and /bin/ksh).
Is this expected? No, I haven't checked SUSv3, but my gut feeling tells me
our /bin/sh is not right here.
FWIW, I've discovered this while trying to build pkgsrc/lang/tcl83 on
Linux. While I'll fix the package, I do think that our /bin/sh needs a
whack over the head. Anybody got a cluebat? :)
- Hubert