Skip to content

Commit

Permalink
parse.zsh uses INTERACTIVE_COMMENTS, to-parse.zsh doesn't contain $()
Browse files Browse the repository at this point in the history
  • Loading branch information
psprint committed Oct 30, 2016
1 parent 136d10e commit 62c5fe4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/parse.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ fi
zmodload zsh/zprof
autoload is-at-least

setopt interactive_comments

# Own input?
if [[ "$1" = "-o" || "$1" = "-oo" ]]; then
typeset -a input
Expand Down
2 changes: 1 addition & 1 deletion test/to-parse.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ typeset -gA HSMW_HIGHLIGHT_STYLES
# 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
# 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.
elif { [[ $1 != */* ]] || is-at-least 5.3 } &&
Expand Down

0 comments on commit 62c5fe4

Please sign in to comment.