Skip to content

Executable in cwd highlighted when cwd isn't in $PATH #894

Open
@danielshahaf

Description

@danielshahaf

After the following:

$ zsh -f
% . ./zsh-syntax-highlighting.zsh
% () { touch $1 && chmod +x $1 && print -zr -- $1} "$(pwgen -an 16 1 | tee /dev/tty)"
[run that, then type a space to refresh highlighting]

the command word is highlighted in green, even though running it fails with zsh: command not found.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions