-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Eric Blake on 1/29/2008 7:31 AM:
| Hmm.  Bash explicitly documents that it behaves differently depending on
| whether it is in POSIX mode - from bash-3.2/POSIX:
|
| ~ 28. The `.' and `source' builtins do not search the current directory
| ~     for the filename argument if it is not found by searching `PATH'.
|
| It looks like we've discovered a bash bug.

In my tests, ksh and zsh were okay, but the version of ash available on
cygwin also had the bug.  So I'm adding this to the manual:

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHnzwr84KuGfSFAYARAv6ZAJ4xjBIdwzEE0zJ1ORPRTY0hccS7WACgyVQf
rtNrqgoTce+dEN99iwckWRo=
=aWXt
-----END PGP SIGNATURE-----
>From 9935105de6e18dba029660d60f42b8b81d7ac3c4 Mon Sep 17 00:00:00 2001
From: Eric Blake <[EMAIL PROTECTED]>
Date: Tue, 29 Jan 2008 07:45:10 -0700
Subject: [PATCH] * doc/autoconf.texi (Limitations of Builtins) <.>: Mention 
bash bug.

Signed-off-by: Eric Blake <[EMAIL PROTECTED]>
---
 ChangeLog         |    5 +++++
 doc/autoconf.texi |   10 ++++++----
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 42da03c..8d592df 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-29  Eric Blake  <[EMAIL PROTECTED]>
+
+       * doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash
+       bug.
+
 2008-01-28  Eric Blake  <[EMAIL PROTECTED]>
 
        Fix regression in handling VAR=VALUE arguments to testsuite.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index f6421d7..9c5b192 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -13598,10 +13598,12 @@ the @samp{x} into account later in the pipe.
 @c --------------
 @prindex @command{.}
 Use @command{.} only with regular files (use @samp{test -f}).  Bash
-2.03, for instance, chokes on @samp{. /dev/null}.  Also, remember that
[EMAIL PROTECTED] uses @env{PATH} if its argument contains no slashes, so if
-you want to use @command{.} on a file @file{foo} in the current
-directory, you must use @samp{. ./foo}.
+2.03, for instance, chokes on @samp{. /dev/null}.  Remember that
[EMAIL PROTECTED] uses @env{PATH} if its argument contains no slashes.  Also,
+some shells, including bash 3.2, implicitly append the current directory
+to this @env{PATH} search, even though Posix forbids it.  So if you want
+to use @command{.} on a file @file{foo} in the current directory, you
+must use @samp{. ./foo}.
 
 @item @command{!}
 @c --------------
-- 
1.5.3.8

Reply via email to