From: Derek R. Price Date: Fri, 1 Jul 2005 02:23:01 +0000 (+0000) Subject: * ltmain.in (link mode): Handle spaces in paths to executed X-Git-Tag: release-1-5-20~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=37daba20d928a3d084d31d7817a5d4a2621030e0;p=thirdparty%2Flibtool.git * ltmain.in (link mode): Handle spaces in paths to executed programs. Quote path in error message. --- diff --git a/ChangeLog b/ChangeLog index ca4e9cbf4..3ac3737db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-07-01 Derek R. Price + + * ltmain.in (link mode): Handle spaces in paths to executed + programs. Quote path in error message. + 2005-06-29 Ralf Wildenhues * THANKS: Updated. diff --git a/ltmain.in b/ltmain.in index 91225f17f..7d48b54dc 100644 --- a/ltmain.in +++ b/ltmain.in @@ -5025,13 +5025,13 @@ else # Backslashes separate directories on plain windows *-*-mingw | *-*-os2*) $echo >> $output "\ - exec \$progdir\\\\\$program \${1+\"\$@\"} + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $echo >> $output "\ - exec \$progdir/\$program \${1+\"\$@\"} + exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac @@ -5041,7 +5041,7 @@ else fi else # The program doesn't exist. - \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2 + \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$echo \"This script is just a wrapper for \$program.\" 1>&2 $echo \"See the $PACKAGE documentation for more information.\" 1>&2 exit $EXIT_FAILURE