From: Akim Demaille Date: Tue, 23 May 2000 16:59:38 +0000 (+0000) Subject: * doc/autoconf.texi (Limitations of Builtins): More details on X-Git-Tag: autoconf-2.50~878 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9272d4ee9b693afc73389a3bd33cf018c31d987a;p=thirdparty%2Fautoconf.git * doc/autoconf.texi (Limitations of Builtins): More details on `test -n ='. --- diff --git a/ChangeLog b/ChangeLog index 8434e52e6..4c42f42bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-05-23 Akim Demaille + + * doc/autoconf.texi (Limitations of Builtins): More details on + `test -n ='. + 2000-05-23 Akim Demaille Simplify the interface: users shouldn't need to explicitly check diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 821f6faf5..750b62430 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -4768,14 +4768,14 @@ start with a dash, since @code{test} might interpret its argument as an option (e.g., @samp{@var{string} = "-n"}). Contrary to a common belief, @samp{test -n @var{string}} and @samp{test --z @var{string}} @strong{are} portable, nevertheless many shells (e.g., -FIXME: AIX IIRC) have bizarre precedence and may be confused if -@var{string} looks like an operator: +-z @var{string}} @strong{are} portable, nevertheless many shells (such +as Solaris 2.5, AIX 3.2, UNICOS 10.0.0.6, Digital Unix 4 etc.) have +bizarre precedence and may be confused if @var{string} looks like an +operator: @example -@c FIXME: Hm, IIRC: -$ test -n "=" -error: missing argument +$ test -n = +test: argument expected @end example If there are risks, use @samp{test "x@var{string}" = x} or @samp{test