diff options
-rw-r--r-- | common.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -79,8 +79,8 @@ emacs_getopt_init() { IFS=$'\n' a_flags_1=($(printf '%s\n' "${a_flags[@]}"|sed -rn -e 's/^(.)$/-\1/p' -e 's/^([^-].*[^:])$/--\1/p')) IFS=$'\n' a_flags_2=($(printf '%s\n' "${a_flags[@]}"|sed -rn -e 's/^(.):$/-\1/p' -e 's/^([^-].*):$/--\1/p')) - printf -v emacs_getopt_o -- '%s' "${a_flags_o[@]}" - IFS=',' emacs_getopt_l=${a_flags_l[*]} + IFS='' emacs_getopt_o="${a_flags_o[*]}" + IFS=',' emacs_getopt_l="${a_flags_l[*]}" IFS='|' emacs_getopt_2="^(${a_flags_2[*]})\$" IFS=$ifs |