]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Improve documentation of ! issues.
authorEric Blake <ebb9@byu.net>
Wed, 14 May 2008 19:41:18 +0000 (13:41 -0600)
committerEric Blake <ebb9@byu.net>
Wed, 14 May 2008 19:41:18 +0000 (13:41 -0600)
* doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
Reported by Noah Misch.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
doc/autoconf.texi

index 3782a5b55c096f356ded1233c03f75fd80066171..15adde0e7c6a69863ed33ca54098f3a46fe0f392 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-05-14  Eric Blake  <ebb9@byu.net>
 
+       Improve documentation of ! issues.
+       * doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
+       Reported by Noah Misch.
+
        Document some FreeBSD shell bugs.
        * doc/autoconf.texi (Limitations of Builtins) <!>: Mention ! issue
        in compound pipe commands.
index fd60b7bd59e9a90bb3b7a3dfdaeb460885b58a8b..ee1ede5c88e4abdec771ec1576116cc014a82de7 100644 (file)
@@ -13776,13 +13776,19 @@ The Unix version 7 shell did not support
 negating the exit status of commands with @command{!}, and this feature
 is still absent from some shells (e.g., Solaris @command{/bin/sh}).
 Other shells, such as FreeBSD @command{/bin/sh} or @command{ash}, have
-bugs when using @command{!} in compound commands:
+bugs when using @command{!}:
 
 @example
-$ @kbd{sh -c 'true && ! true | true; echo $?'}
+$ @kbd{sh -c '! : | :'; echo $?}
 1
-$ @kbd{ash -c 'true && ! true | true; echo $?'}
+$ @kbd{ash -c '! : | :'; echo $?}
 0
+$ @kbd{sh -c '! @{ :; @}'; echo $?}
+1
+$ @kbd{ash -c '! @{ :; @}'; echo $?}
+@{: not found
+Syntax error: "@}" unexpected
+2
 @end example
 
 Shell code like this: