Subject: Re: sh: unbalanced ' in ` not detected
To: None <firstname.lastname@example.org>
From: Christos Zoulas <email@example.com>
Date: 10/30/2007 16:20:15
In article <alpine.DEB.firstname.lastname@example.org>,
Hubert Feyrer <email@example.com> 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)