Re: ksh style [[ conditional does not match patterns

2005-12-08 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Michael Wardle on 12/8/2005 7:22 PM: > Yet when I attempt a simple match, it doesn't work: > > bash-3.00$ [[ "foo" == "foo" ]] > bash-3.00$ echo $? > 0 > bash-3.00$ [[ "foo" == "fo?" ]] > bash-3.00$ echo $? > 1 Gl

Re: ksh style [[ conditional does not match patterns

2005-12-08 Thread Chet Ramey
Michael Wardle wrote: > In the SHELL GRAMMAR section of the bash man page, the [[ expression ]] > syntax is described: > > When the == and != operators are used, the string to the right of > the operator is > considered a pattern and matched according to the rules described below > und

ksh style [[ conditional does not match patterns

2005-12-08 Thread Michael Wardle
In the SHELL GRAMMAR section of the bash man page, the [[ expression ]] syntax is described: When the == and != operators are used, the string to the right of the operator is considered a pattern and matched according to the rules described below under Pattern Matching. The P