Linda Walsh wrote: > >> It's not a bug. > --- > It's a feature... ;-) > > >> test/[ uses -a and -o for `and' and `or'; the >> conditional command uses && and || for that purpose. This is >> they way it's documented. > --- > Would it be inappropriate if "[[" were to treat "-a" && "-o" identically > to "&&" -a "||" so "[[" could be more of a drop-in replacement for > "/bin/[" ?
I don't think this would be a good idea. [[ doesn't parse && and || the same way [ parses -a and -o -- the two are not the same. Frankly, I'd like to see test expressions rewritten to use the shell || and && operators rather than changing [[. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/