From: Ralf Wildenhues Date: Tue, 25 Jan 2005 20:28:04 +0000 (+0000) Subject: * config/ltmain.m4sh: Fix endless loop in cmdline parsing. X-Git-Tag: release-2-1b~774 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d31d296136fbb4a00768aed6d25430ad6bfd7671;p=thirdparty%2Flibtool.git * config/ltmain.m4sh: Fix endless loop in cmdline parsing. --- diff --git a/ChangeLog b/ChangeLog index c8e195b5c..c4570f1bf 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 02793daa5..888dc6408 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