From: Daniel Hahler Date: Sun, 6 Mar 2016 19:26:48 +0000 (+0100) Subject: Quote assignments to pair/parent_file X-Git-Url: http://www.git.stargrave.org/?p=zsh-autoenv.git;a=commitdiff_plain;h=8a80ba7f02e0af11522cd6b6c6f83f3b46b74604 Quote assignments to pair/parent_file --- diff --git a/autoenv.zsh b/autoenv.zsh index 7b6d8da..fd73a83 100644 --- a/autoenv.zsh +++ b/autoenv.zsh @@ -186,7 +186,7 @@ _autoenv_hash_pair() { _autoenv_authorized_env_file() { local env_file=$1 - local pair=$(_autoenv_hash_pair $env_file) + local pair="$(_autoenv_hash_pair $env_file)" test -f $AUTOENV_AUTH_FILE \ && \grep -qF $pair $AUTOENV_AUTH_FILE } @@ -286,7 +286,7 @@ _autoenv_get_file_upwards() { if [[ $parent_dir == $last ]]; then break fi - parent_file="${parent_dir}/${look_for}" + local parent_file="${parent_dir}/${look_for}" if [[ -f $parent_file ]]; then echo $parent_file