Re: Korn Shell [[ ... ]] operator

2006-09-25 Thread Derek Ragona
The [[ ]] operators are for compound tests, the [ ] operator is for simple tests. In ksh newer than 6/3/86 the [[ ]] makes the [ ] obsolete. Example of [[ ]]: [[ foo > bar && $PWD -ef . ]] && print foobar foobar That is from the kornshell book co-written by David Korn. By the way, I use ksh

Re: Korn Shell [[ ... ]] operator

2006-09-25 Thread Dan Nelson
In the last episode (Sep 25), Arindam said: > I know csh is the shell of choice on FreeBSD. But I have this question > on Korn Shell and it would be great if somebody could explain. > > Can someone tell me a little more about the Korn Shell [[ ... ]] > double-brackets construct used for comparing

Korn Shell [[ ... ]] operator

2006-09-25 Thread Arindam
I know csh is the shell of choice on FreeBSD. But I have this question on Korn Shell and it would be great if somebody could explain. Can someone tell me a little more about the Korn Shell [[ ... ]] double-brackets construct used for comparing string expressions. How does it differe from the stan