From 4c2601a95f06efd352ad407add71a7ea6bab8152 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 20 Sep 2018 11:55:40 +0900 Subject: gpg-error-config: Fix a variable name for zsh. * src/gpg-error-config-new.in (module_list): Rename from modules. -- For ZSH, "modules" is built-in variable name. Avoid such a use. Signed-off-by: NIIBE Yutaka --- src/gpg-error-config-new.in | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/gpg-error-config-new.in b/src/gpg-error-config-new.in index ee5c2dc..1a03cf9 100644 --- a/src/gpg-error-config-new.in +++ b/src/gpg-error-config-new.in @@ -432,7 +432,7 @@ else shift fi -modules="" +module_list="" want_var="" want_attr="" want_cflags="" @@ -488,7 +488,7 @@ while test $# -gt 0; do ;; *) # Modules - modules="$modules${modules:+ }$1" + module_list="$module_list${module_list:+ }$1" ;; esac @@ -496,13 +496,13 @@ while test $# -gt 0; do done -if [ -z "$modules" ]; then - modules=${myname%-config} -elif expr match "$modules" "=\|!=\|<\|>\|<=\|>=" >/dev/null; then - modules="${myname%-config} $modules" +if [ -z "$module_list" ]; then + module_list=${myname%-config} +elif expr match "$module_list" "=\|!=\|<\|>\|<=\|>=" >/dev/null; then + module_list="${myname%-config} $module_list" fi -all_required_config_files $modules +all_required_config_files $module_list for p in $PKG_LIST; do read_config_file $p $PKG_CONFIG_PATH -- cgit v1.2.3