[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to correctly patch without cdbs?



On 2006-06-22, Florent Rougon <f.rougon@free.fr> 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



Reply to: