]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* m4/libtool.m4 (_LT_PROG_XSI_SHELLFNS): Work around pdksh
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 26 Jan 2005 11:30:51 +0000 (11:30 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 26 Jan 2005 11:30:51 +0000 (11:30 +0000)
positional parameter expansion bug.

ChangeLog
m4/libtool.m4

index c4570f1bfe73816e171d63b211c974a5c9d5d93d..84def180490f401279edd57899fe60da186a065d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * m4/libtool.m4 (_LT_PROG_XSI_SHELLFNS): Work around pdksh
+       positional parameter expansion bug.
+
 2005-01-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * config/ltmain.m4sh: Fix endless loop in cmdline parsing.
index 8fbef9e42634c7e90a214900107f2803557da782..9f356235602271612a92f93d6888da55e8b2b515 100644 (file)
@@ -6068,7 +6068,10 @@ func_basename ()
 # dot (in which case that matches only a dot).
 func_stripname ()
 {
-  func_stripname_result=${3#"${1}"}
+  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
+  # positional parameters, so assign one to ordinary parameter first.
+  func_stripname_result=${3}
+  func_stripname_result=${func_stripname_result#"${1}"}
   func_stripname_result=${func_stripname_result%"${2}"}
 }
 _LT_EOF