From 8a80ba7f02e0af11522cd6b6c6f83f3b46b74604 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 6 Mar 2016 20:26:48 +0100 Subject: [PATCH] Quote assignments to pair/parent_file --- autoenv.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.44.0