parse.zsh uses INTERACTIVE_COMMENTS, to-parse.zsh doesn't contain $()

This commit is contained in:
Sebastian Gniazdowski 2016-10-30 07:45:14 +01:00
parent 136d10e0bb
commit 62c5fe444e
2 changed files with 3 additions and 1 deletions

View file

@ -30,6 +30,8 @@ fi
zmodload zsh/zprof zmodload zsh/zprof
autoload is-at-least autoload is-at-least
setopt interactive_comments
# Own input? # Own input?
if [[ "$1" = "-o" || "$1" = "-oo" ]]; then if [[ "$1" = "-o" || "$1" = "-oo" ]]; then
typeset -a input typeset -a input

View file

@ -96,7 +96,7 @@ typeset -gA HSMW_HIGHLIGHT_STYLES
# zsh 5.2 and older have a bug whereby running 'type -w ./sudo' implicitly # zsh 5.2 and older have a bug whereby running 'type -w ./sudo' implicitly
# runs 'hash ./sudo=/usr/local/bin/./sudo' (assuming /usr/local/bin/sudo # runs 'hash ./sudo=/usr/local/bin/./sudo' (assuming /usr/local/bin/sudo
# exists and is in $PATH). Avoid triggering the bug, at the expense of # exists and is in $PATH). Avoid triggering the bug, at the expense of
# falling through to the $() below, incurring a fork. (Issue #354.) # falling through to the $(x) below, incurring a fork. (Issue #354.)
# #
# The second disjunct mimics the isrelative() C call from the zsh bug. # The second disjunct mimics the isrelative() C call from the zsh bug.
elif { [[ $1 != */* ]] || is-at-least 5.3 } && elif { [[ $1 != */* ]] || is-at-least 5.3 } &&