On 3/28/11 1:53 PM, Linda Walsh wrote: > > > > Is it possible to have an 'Option' to make '[[' compatible > with '[', w/rt pathname expansion?
Anything's possible. Likely? No. > It seems counter-intuitive to have: > > d="/etc/rc.d/rc5.d" > if [[ ! -e $d/S??sshd ]]; then echo "sshd not enabled"; fi > > give different output than: > > if [ ! -e $d/S??sshd ]; then echo "sshd not enabled"; fi I don't consider it counterintuitive. You have to understand the differences between [[ and [ and take them into account when you use it. One of the basic features of [[, one of the fundamental reasons it was created, was to not have the words undergo pathname expansion. I don't think implementing an option to disable that is a good use of time. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/