From: Ralf Wildenhues Date: Tue, 25 Jan 2005 20:28:57 +0000 (+0000) Subject: * config/ltmain.m4sh: Fix endless loop in cmdline parsing. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d66f5047dbbe097467ba66cbf6a77cbd42174f8;p=thirdparty%2Flibtool.git * config/ltmain.m4sh: Fix endless loop in cmdline parsing. --- diff --git a/ChangeLog b/ChangeLog index 8d9a4f9cd..f73323195 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-01-25 Ralf Wildenhues + + * config/ltmain.m4sh: Fix endless loop in cmdline parsing. + 2005-01-25 Albert Chin-A-Young * config/ltmain.m4sh (func_mode_link) [irix]: Preserve processor diff --git a/config/ltmain.m4sh b/config/ltmain.m4sh index 047e27765..ea99a8327 100644 --- a/config/ltmain.m4sh +++ b/config/ltmain.m4sh @@ -402,8 +402,8 @@ Otherwise, only FILE itself is deleted using RM." # sed scripts: my_sed_single_opt='1s/^\(..\).*$/\1/;q' my_sed_single_rest='1s/^..\(.*\)$/\1/;q' - my_sed_long_opt='1s/^\(--[[^=]]*\)=.*/\1/;q' - my_sed_long_arg='1s/^--[[^=]]*=//' + my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' + my_sed_long_arg='1s/^-[[^=]]*=//' # Shorthand for --mode=foo, only valid as the first argument case $1 in