From: R. B. <ro...@pa...> - 2006-01-03 05:08:24
|
Eric Blake reports (on the use of backtic in array declarations): > This issue has been reported several times; official patch 1 is > supposed to fix it, but you need a one-line unofficial patch on top > of that for array assignments - see the thread at: > http://lists.gnu.org/archive/html/bug-bash/2005-12/msg00060.html Okay - thanks for the information! It is easier to just not use that construct than to require folks get the patches. (Although, no doubt cygwin folks will be fortunate to have the right patches applied for them. ;-) > > And instead of: > > if [[ $basename == '$cdir' ]] ; then > > > > what seems to work is: > > if [ $basename = '\$cdir' ] ; then > > Not quite the same. [[ ]] has different semantics than > [ ] (for example, [[ does not perform word splitting, while > [ does, so if $basename has spaces, you would need to > quote it in the latter). Okay -thanks again for the information. I've put back [[. It seems that the operable part is '$cdir' versus '\$cdir'. > However, I wonder where you are assigning $basename > before using it in [[ ]]. The place it comes up is in dbg-file.inc. Look around line 114. You can also look at recent commits to CVS to find this too. |