From: Gary V. Vaughan Date: Fri, 4 Jun 2010 21:22:01 +0000 (+0700) Subject: Quote command line arguments after --rcfile properly. X-Git-Tag: v2.2.10~15 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=7a1821bead2aa2fefaf3a31a26e2cbf6e4ecfc0f;p=thirdparty%2Flibtool.git Quote command line arguments after --rcfile properly. * libltdl/config/announce-gen.m4sh (--rcfile): Quote remaining arguments shell variable expression correctly for eval. --- diff --git a/ChangeLog b/ChangeLog index 756752721..09e698174 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2010-06-05 Gary V. Vaughan + Quote command line arguments after --rcfile properly. + * libltdl/config/announce-gen.m4sh (--rcfile): Quote remaining + arguments shell variable expression correctly for eval. + Shift correctly in numbered option argument collection. * libltdl/config/getopt.m4sh (_m4go_option): Argument list also needs to be `shift'ed in the shell option loop after processing a diff --git a/libltdl/config/announce-gen.m4sh b/libltdl/config/announce-gen.m4sh index 6295039c8..2eb021c0f 100644 --- a/libltdl/config/announce-gen.m4sh +++ b/libltdl/config/announce-gen.m4sh @@ -122,7 +122,7 @@ M4SH_GETOPTS( [p], [--post], [], [], [r@?],[--rcfile], [$top_srcdir/.announcerc], [ # The funny quoting allows keeping one option per line in $opt_rcfile: - eval set dummy `echo \`cat $opt_rcfile\` \${1+"\[$]@"}` + eval set dummy `echo \`cat $opt_rcfile\` '${1+"[$]@"}'` shift], [v], [--verbose], [], [ mailnotify_flags="${mailnotify_flags+$mailnotify_flags }$opt"],