fix -e without breaking zsh

This commit is contained in:
rupa committed 2016-07-21 13:09:14 -04:00
1 parent 62e9cdc11d
commit 335717ef08
1 file changed
+3 -1
+3 -1
View File
@@ -202,7 +202,9 @@ _z() {
}
')"
[ $? -eq 0 ] && [ "$cd" ] && $echo builtin cd "$cd"
[ $? -eq 0 ] && [ "$cd" ] && {
if [ "$echo" ]; then echo "$cd"; else builtin cd "$cd"; fi
}
fi
}