Quote command line arguments after --rcfile properly.

* libltdl/config/announce-gen.m4sh (--rcfile): Quote remaining
arguments shell variable expression correctly for eval.
This commit is contained in:
Gary V. Vaughan 2010-06-05 04:22:01 +07:00
parent fd9aeebfe9
commit 7a1821bead
2 changed files with 5 additions and 1 deletions

View File

@ -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

View 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"],