Closed jfsantos closed 6 years ago
I tried adding quotes
The error is in the 2nd line. Try: local pair="$(_autoenv_hash_pair $env_file)"
Which Zsh version are you using?
What is the output of setopt
?
(looks similar to #38)
I'm running Zsh 5.0.8, and I don't have the shwordsplit
option enabled, but adding quotes to the second line worked.
I am using zsh-autoenv on OS X and it breaks if the path where the
.autoenv.zsh
file is saved contains spaces. The error message is the following:I tried adding quotes around
$1
in the_autoenv_autorized_env_file
definition inautoenv.zsh
, but it does not make any difference. I also tried using${(q)env_file}
instead of$env_file
when calling_autoenv_hash_pair
, but then it complains about a missing file argument for the function.