diff options
author | NIIBE Yutaka <[email protected]> | 2018-09-20 02:55:40 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2018-09-20 02:55:40 +0000 |
commit | 4c2601a95f06efd352ad407add71a7ea6bab8152 (patch) | |
tree | 1c5e2c583581832e72de2833ee11ffce545eda10 | |
parent | gpg-error-config: Don't use local variables. (diff) | |
download | libgpg-error-4c2601a95f06efd352ad407add71a7ea6bab8152.tar.gz libgpg-error-4c2601a95f06efd352ad407add71a7ea6bab8152.zip |
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 <[email protected]>
-rw-r--r-- | src/gpg-error-config-new.in | 14 |
1 files 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 |