From: Paul Eggert Date: Fri, 21 Jan 2005 19:31:51 +0000 (+0000) Subject: (Limitations of Builtins): Clarify that X-Git-Tag: AUTOCONF-2.59c~494 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2741f70c79cd74dee38a6bf359d5478f5e2425d;p=thirdparty%2Fautoconf.git (Limitations of Builtins): Clarify that "if test -d foo; ..." is portable. Suggested by Stepan Kasal. --- diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 921d4a8e4..8aa2bfc29 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -11082,8 +11082,9 @@ operators; consequently, Posix does not specify them, so using them is nonportable. If you combine @samp{&&} and @samp{||} in the same statement, keep in mind that they have equal precedence. -You may use @samp{!} with @command{test}, but not with @command{if}: -@samp{test ! -r foo || exit 1}. +It is safe to use @samp{!} as a @command{test} operator. For example, +@samp{if test ! -d foo; @dots{}} is portable even though @samp{if ! test +-d foo; @dots{}} is not. @item @command{test} (files)