Re: compat31

2011-02-15 Thread Dennis Williamson
On Tue, Feb 15, 2011 at 8:45 AM, Roman Rakus wrote: > On 02/14/2011 04:03 PM, Dennis Williamson wrote: >> >> I'm having a discussion with someone who claims that for them on Bash >> 4.0.33, with compat31*off*, they are getting 3.1 behavior with quoted >> patt

Re: compat31

2011-02-15 Thread Roman Rakus
On 02/14/2011 04:03 PM, Dennis Williamson wrote: I'm having a discussion with someone who claims that for them on Bash 4.0.33, with compat31*off*, they are getting 3.1 behavior with quoted patterns in a =~ match. Is it on Fedora? If so, it was a bug and is fixed since Fedora's ba

Re: compat31

2011-02-15 Thread Marc Herbert
Le 14/02/2011 15:03, Dennis Williamson a écrit : > I'm having a discussion with someone who claims that for them on Bash > 4.0.33, with compat31 *off*, they are getting 3.1 behavior with quoted > patterns in a =~ match. > > They're saying that this: > > [[ a =~

Re: compat31

2011-02-15 Thread Greg Wooledge
On Mon, Feb 14, 2011 at 07:26:16PM -0600, Dennis Williamson wrote: > The user is performing this from a shell prompt. I had him try > > [[ $BASH_VERSION =~ "4\.0" ]] && echo yes || echo no > > which should output "yes" only if he's using Bash 4.0

Re: compat31

2011-02-14 Thread Dennis Williamson
On Mon, Feb 14, 2011 at 9:14 AM, Greg Wooledge wrote: > On Mon, Feb 14, 2011 at 09:03:34AM -0600, Dennis Williamson wrote: >> I'm having a discussion with someone who claims that for them on Bash >> 4.0.33, with compat31 *off*, they are getting 3.1 behavior with quoted >&

compat31

2011-02-14 Thread Dennis Williamson
I'm having a discussion with someone who claims that for them on Bash 4.0.33, with compat31 *off*, they are getting 3.1 behavior with quoted patterns in a =~ match. They're saying that this: [[ a =~ "." ]] && echo match || echo no results in "match".