zephyr-env.sh: reduce posixargzero side effects.

For example, when using zsh p9k theme will cause
some problems that affect the experience.

Fixes #20284.

Signed-off-by: Hosun Zhu <hosun@linux.com>
This commit is contained in:
Hosun Zhu 2019-11-04 22:18:48 +08:00 committed by Carles Cufí
parent 0443c6d7ac
commit b479e914f8
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ if [ -n "${ZSH_VERSION:-}" ]; then
if [ $options[posixargzero] != "on" ]; then
setopt posixargzero
NAME=$(basename -- "$0")
setopt posixargzero
unsetopt posixargzero
else
NAME=$(basename -- "$0")
fi