]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Quote command line arguments after --rcfile properly.
authorGary V. Vaughan <gary@gnu.org>
Fri, 4 Jun 2010 21:22:01 +0000 (04:22 +0700)
committerGary V. Vaughan <gary@gnu.org>
Fri, 4 Jun 2010 21:22:01 +0000 (04:22 +0700)
* libltdl/config/announce-gen.m4sh (--rcfile): Quote remaining
arguments shell variable expression correctly for eval.

ChangeLog
libltdl/config/announce-gen.m4sh

index 756752721c724635c397c72ee11fa8036bf9de65..09e6981742fbc2bd1ca87a09efa9b523fa510c87 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2010-06-05  Gary V. Vaughan  <gary@gnu.org>
 
+       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
index 6295039c89bc46876ea59d336982ae9fb320efd0..2eb021c0f890018c2410ee748c63c334a2aaecf1 100644 (file)
@@ -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"],