summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common.sh.in4
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