From 7a1821bead2aa2fefaf3a31a26e2cbf6e4ecfc0f Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Sat, 5 Jun 2010 04:22:01 +0700 Subject: [PATCH] Quote command line arguments after --rcfile properly. * libltdl/config/announce-gen.m4sh (--rcfile): Quote remaining arguments shell variable expression correctly for eval. --- ChangeLog | 4 ++++ libltdl/config/announce-gen.m4sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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"], -- 2.47.2