On 2012-08-17 21:49, Peter Rosin wrote: > On 2012-08-17 15:35, Yaakov (Cygwin/X) wrote: >> AFAICS wordexp(3) is completely broken, returning WRDE_SYNTAX no >> matter what I supply as the string. STC attached. > > I suspect you are using Cygwin, and if so I suspect that we have been > bitten by this change in bash-4.1-rc: > > c. The (undocumented) --wordexp option is no longer included by default. > > The documentation states that you have to enable the WORDEXP_OPTION > when building bash, but I'll leave the details of how to do that to Eric, > the Cygwin bash maintainer.
Maybe that was a bit too terse, the facts are that newlib forks "bash --wordexp" when wordexp(3) is called. Newer Cygwin bashes doesn't support the undocumented --wordexp option, presumably since bash no longer includes that option by default. I found this out by looking up the documentation for the undocumented option in bash (i.e. the source). I should perhaps also mention, for new Cygwin recipients, that the original message appeared on the newlib list, which is why I could only suspect that Yaakov was using Cygwin, but that guess seemed kind of safe... Cheers, Peter -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple