summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.sh b/common.sh
index 1ec6afc..1348b96 100644
--- a/common.sh
+++ b/common.sh
@@ -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