Re: Inconsistent regex matching with =~ between bash 3.1 and 3.2

2007-07-11 Thread Scott Carpenter
Paul Jarc spake thusly on 07/11/2007 12:10 PM: Scott Carpenter <[EMAIL PROTECTED]> wrote: V="one/two" [[ ! $V =~ ^\.*/ ]] && echo not 3.1 will remove the backslash as part of basic string parsing, just as if this were not part of a [[ command, while 3.2 handles the arguments for [[ specially,

Re: Inconsistent regex matching with =~ between bash 3.1 and 3.2

2007-07-11 Thread Chet Ramey
Scott Carpenter wrote: > Hi, all. I hope this report is of some use -- I'm pretty inexperienced > at GNU/Linux and Bash so I'm afraid this is going to sound horribly > amateurish. But I think I've found something for you. (Or I'm simply > about to demonstrate my crude understanding of regular ex

Re: Inconsistent regex matching with =~ between bash 3.1 and 3.2

2007-07-11 Thread Paul Jarc
Scott Carpenter <[EMAIL PROTECTED]> wrote: > V="one/two" > [[ ! $V =~ ^\.*/ ]] && echo not 3.1 will remove the backslash as part of basic string parsing, just as if this were not part of a [[ command, while 3.2 handles the arguments for [[ specially, and will keep the backslash as part of the rege