From: Gary V. Vaughan Date: Thu, 25 Mar 1999 09:00:04 +0000 (+0000) Subject: * ltmain.in ($PATH): Expand any tildes in the users path to the X-Git-Tag: release-1-3~101 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=42c3dee9edcad5f8fcaf0f83bd3d990967e43ee9;p=thirdparty%2Flibtool.git * ltmain.in ($PATH): Expand any tildes in the users path to the contents of $HOME to avoid problems with *_cmds splitting and evaluation. --- diff --git a/ChangeLog b/ChangeLog index 8f67e9b9c..0ef976674 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1999-03-25 Gary V. Vaughan + + * ltmain.in ($PATH): Expand any tildes in the users path to the + contents of $HOME to avoid problems with *_cmds splitting and + evaluation. + 1999-03-24 Thomas Tanner * doc/PLATFORMS: Erez Zadok reported that libtool works on bsdi 4.0.1 diff --git a/ltmain.in b/ltmain.in index fed22505f..fe9655c67 100644 --- a/ltmain.in +++ b/ltmain.in @@ -90,6 +90,13 @@ if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then exit 1 fi +# A little paranoid perhaps... +[ "${HOME+set}" ] || HOME=`cd && pwd` + +# Apparently some people optimistically hardcode `~' in their path, and +# hope that their tools will interpret it correctly. We mustn't disappoint! +eval PATH=`echo "$PATH" | sed 's,^~/,$HOME/,;s,:~/,:$HOME/,g'` + # Global variables. mode=$default_mode nonopt=