Hi Stepan,

* Stepan Kasal wrote on Wed, Sep 17, 2008 at 12:28:58PM CEST:
>   I have just adviced a project to use
> 
> var=`"$srcdir/cmd" "prm"`
> 
> instead of
> 
> var="`"$srcdir/cmd" "prm"`"
> 
> The manual states that some shells misinterpret the latter, in
> http://www.gnu.org/software/autoconf/manual/html_node/Shell-Substitutions.html
> 
> Does anyone here know which shells contain this bug?
> Are they extinct these days or is it Solaris?

Solaris 10 /bin/sh has at least some problems with it:

$ var="`echo "hi"`"
$ var="`echo " hi "`"
: cannot execute
hi: not found

Cheers,
Ralf


Reply via email to