Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: ericblake AT comcast DOT net (Eric Blake) To: yann DOT dubost AT capgemini DOT com, cygwin AT cygwin DOT com Cc: Yann Dubost Subject: Re: eval function not working anymore !? Date: Thu, 15 Sep 2005 15:49:27 +0000 Message-Id: <091520051549.19650.43299806000EE1F500004CC222007601800A050E040D0C079D0A@comcast.net> > 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/