From: Gary V. Vaughan Date: Wed, 10 Oct 2012 17:32:10 +0000 (+0700) Subject: options-parser: keep non-option arguments separate! X-Git-Tag: v2.4.2.418~131 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=95e3f5ee751930c56be731d664b02aae5400dd0d;p=thirdparty%2Flibtool.git options-parser: keep non-option arguments separate! * build-aux/options-parser (func_parse_options): When there is more than one non-option argument, "$*" forces all of them into a single string. Use ${1+"$@"} to set arguments correctly. Signed-off-by: Gary V. Vaughan --- diff --git a/build-aux/options-parser b/build-aux/options-parser index 3c4f788ab..86d52db07 100644 --- a/build-aux/options-parser +++ b/build-aux/options-parser @@ -495,7 +495,7 @@ func_parse_options () --) set dummy "$_G_opt" "*"; shift; break ;; -*) func_fatal_help "unrecognised option: \`$_G_opt'" ;; - *) set dummy "$_G_opt" "$*"; shift; break ;; + *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; esac done