Skip to content
Browse files

env: ignore unset var

This will substitute the ZSH_VERSION in case it was unset or null. No
more error message will be printed when unset variables are treat as an

Signed-off-by: Christopher Métrailler <>
  • Loading branch information...
metc authored and nashif committed May 17, 2019
1 parent 01a71ea commit 46da745ed89e7ab589e7f28f0b9cb5bca0e4d907
Showing with 1 addition and 1 deletion.
  1. +1 −1
@@ -12,7 +12,7 @@
# Note: The version of zsh need to be 5.0.6 or above. Any versions below
# 5.0.6 maybe encoutner errors when sourcing this script.
if [ -n "$ZSH_VERSION" ]; then
if [ -n "${ZSH_VERSION:-}" ]; then
if [ $options[posixargzero] != "on" ]; then
setopt posixargzero

0 comments on commit 46da745

Please sign in to comment.
You can’t perform that action at this time.