diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-07-16 16:53:47 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-07-16 17:16:08 -0400 |
commit | efecac8688ffd15e292a9cca722e16bdb97795e6 (patch) | |
tree | 255a169ad9007008f2c6ef7c578067e82708531f | |
parent | 74c001468982ac268ed710cc262b5f95d0b474cd (diff) |
-rw-r--r-- | common.sh.in | 4 |
1 files changed, 1 insertions, 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 |