]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4 (_AC_SHELL_DIRNAME): Return `.', not `' when there
authorAkim Demaille <akim@epita.fr>
Fri, 7 Jul 2000 17:33:16 +0000 (17:33 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 7 Jul 2000 17:33:16 +0000 (17:33 +0000)
is no directory part.

ChangeLog
acgeneral.m4
lib/autoconf/general.m4

index b0fe9c962ae2fd9da2bc6909295094624a72b9c6..ce1fd3f20d7329bc1f989545181e9e90170ebc3a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-07-07  Akim Demaille  <akim@epita.fr>
+
+       * acgeneral.m4 (_AC_SHELL_DIRNAME): Return `.', not `' when there
+       is no directory part.
+
 2000-07-07  François Pinard  <pinard@iro.umontreal.ca>
 
        * tests/atgeneral.m4 (AT_CHECK): Fix a redirection problem.
index df3c17dbc8c66dc62af46d81624292a88c530d56..10e744e749256654f76974c2be0346188c5d9852 100644 (file)
@@ -780,7 +780,7 @@ done; }
 # Simulate running `dirname(1)' on PATHNAME, not all systems have it.
 # This macro must be usable from inside ` `.
 define([_AC_SHELL_DIRNAME],
-[echo $1 | sed '/^\/*$/!s,//*$,,;s,[[^/]]*$,,;s,//*$,/,;/^\/$/!s,/$,,'])
+[echo $1 | sed '/^\/*$/!s,//*$,,;s,[[^/]]*$,,;s,//*$,/,;/^\/$/!s,/$,,;s,^$,.,'])
 
 
 
index df3c17dbc8c66dc62af46d81624292a88c530d56..10e744e749256654f76974c2be0346188c5d9852 100644 (file)
@@ -780,7 +780,7 @@ done; }
 # Simulate running `dirname(1)' on PATHNAME, not all systems have it.
 # This macro must be usable from inside ` `.
 define([_AC_SHELL_DIRNAME],
-[echo $1 | sed '/^\/*$/!s,//*$,,;s,[[^/]]*$,,;s,//*$,/,;/^\/$/!s,/$,,'])
+[echo $1 | sed '/^\/*$/!s,//*$,,;s,[[^/]]*$,,;s,//*$,/,;/^\/$/!s,/$,,;s,^$,.,'])