From efecac8688ffd15e292a9cca722e16bdb97795e6 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 16 Jul 2017 16:53:47 -0400 Subject: common.sh.in: emacs_getopt_1 doesn't exist, remove refs to it --- common.sh.in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common.sh.in b/common.sh.in index 8af0e05..37710e8 100644 --- a/common.sh.in +++ b/common.sh.in @@ -66,7 +66,6 @@ version() { # Sets the global variables: # - emacs_getopt_o # - emacs_getopt_l -# - emacs_getopt_1 # - emacs_getopt_2 emacs_getopt_init() { declare -a a_flags @@ -78,10 +77,9 @@ emacs_getopt_init() { grep -vEx 'e|eval' ) - declare -a a_flags_o a_flags_l a_flags_1 a_flags_2 + declare -a a_flags_o a_flags_l a_flags_2 readarray -t a_flags_o < <(printf '%s\n' "${a_flags[@]}"|grep -v '^.[^:]') readarray -t a_flags_l < <(printf '%s\n' "${a_flags[@]}"|grep '^.[^:]') - readarray -t a_flags_1 < <(printf '%s\n' "${a_flags[@]}"|sed -rn -e 's/^(.)$/-\1/p' -e 's/^([^-].*[^:])$/--\1/p') readarray -t a_flags_2 < <(printf '%s\n' "${a_flags[@]}"|sed -rn -e 's/^(.):$/-\1/p' -e 's/^([^-].*):$/--\1/p') local IFS -- cgit v1.2.3-2-g168b