This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: eval function not working anymore !?
- From: ericblake at comcast dot net (Eric Blake)
- To: yann dot dubost at capgemini dot com, cygwin at cygwin dot com
- Cc: Yann Dubost <yann dot dubost at capgemini dot com>
- Date: Thu, 15 Sep 2005 15:49:27 +0000
- Subject: Re: eval function not working anymore !?
> 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/