On 2006-06-22, Florent Rougon <[EMAIL PROTECTED]> wrote: > It doesn't say, though, whether legacy systems such as Solaris have a > 'test' builtin that supports negation. ;-P
Not in that section, but it does elsewhere in the section on test (and it is portable): It is safe to use `!' as a `test' operator. For example, `if test ! -d foo; ...' is portable even though `if ! test -d foo; ...' is not. The later chapters of recent versions of the autoconf manual are a handy reference for portability information about shell and other matters. Cheers, Olly -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]