From 540fbe5b3215ffd3ea0bcb03240ad67d8a2f0336 Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Sat, 5 Jun 2010 05:06:45 +0700 Subject: [PATCH] Add missing quote for literal ? in a shell case statement. * libltdl/config/getopt.m4sh (m4go_shortnoargs): Quote initial ? correctly for use in a shell case statement. --- ChangeLog | 4 ++++ libltdl/config/getopt.m4sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 09e69817..c511b594 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2010-06-05 Gary V. Vaughan + Add missing quote for literal ? in a shell case statement. + * libltdl/config/getopt.m4sh (m4go_shortnoargs): Quote initial ? + correctly for use in a shell case statement. + 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/libltdl/config/getopt.m4sh b/libltdl/config/getopt.m4sh index 74491d0c..a81a9053 100644 --- a/libltdl/config/getopt.m4sh +++ b/libltdl/config/getopt.m4sh @@ -135,7 +135,7 @@ m4_define([m4go_branches], []) # case branches to process options # OPTION, [|])' to insert the separator pipe symbols - which requires # that `m4go_shortargs' be undefined if the first option appended is not # prefixed by a leading `|'. -m4_define([m4go_shortnoargs], [-?*|-h*|-v*]) +m4_define([m4go_shortnoargs], [-\?*|-h*|-v*]) # M4SH_GETOPTS(SHORT-SPEC1, LONG-MATCH1, DEF1, INIT1,