Subject: Re: eval function not working anymore !?
From: [email-masked] (Eric Blake)
To: [email-masked], [email-masked]
Cc: Yann Dubost <[email-masked]>
Date: Thu, 15 Sep 2005 15:49:27 +0000

> Option 1: Fix your shell script to use POSIX compliant expressions
> (basically, $" is non-portable in the first level of evaluation, so
> quote the $ so that the second level of evaluation will see the
> desired $DOM1_MODULES).  Any of the following properly quotes
> the leading $ (and there are other ways, too):
> eval MODULES=\$"${domain}_MODULES"
> eval MODULES="\$${domain}_MODULES"
> eval MODULES='$'"${domain}"_MODULES
> 
> Option 2: Disable the bash extension in your script:
> shopt -u extquote

Correction - 'man bash' states that extquote only affects
$"" inside of ${}, not eval.  So you will have to use option 1.

--
Eric Blake

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/