eval function not working anymore !?
Eric Blake
ericblake@comcast.net
Thu Sep 15 16:03:00 GMT 2005
> 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/
More information about the Cygwin
mailing list