Subject: Re: sh: unbalanced ' in ` not detected
To: None <tech-userlevel@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: tech-userlevel
Date: 10/30/2007 16:20:15
In article <alpine.DEB.0.999.0710271655220.14750@m2s05.vlinux.de>,
Hubert Feyrer  <hubert@feyrer.de> wrote:
>
>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? :)

file a PR. sh is even funnier if you try echo $(echo 'foo)

christos