On 7/17/07, Paul de Weerd <[EMAIL PROTECTED]> wrote:
On Tue, Jul 17, 2007 at 11:42:14AM -0400, Eric Furman wrote:
| > The description of [[ ]] is missing from sh(1) though, hence my
| > statement "which, I believe, is only a difference in documentation".
|
This difference is only in the documentation. The following two
constructs behave the same in /bin/sh and /bin/ksh :
[[ foobar = f*r ]] && echo YES || echo NO
[ foobar = f*r ] && echo YES || echo NO
At least, they do when I just tried :
That's because in OpenBSD they are the same binary......
-Nick