Skip to content

Jobs in command position #874

Open
Open
@danielshahaf

Description

@danielshahaf

The various percent syntaxes for referring to a job (https://zsh.sourceforge.io/Doc/Release/Jobs-_0026-Signals.html#Jobs) can be used in command position to foreground that job:

% cat & 
[1] 9896
% 
[1]  + suspended (tty input)  cat
% %cat
[1]  + continued  cat

In the example, %cat should be green, even if there's no alias/function/builtin of that name.

Cf. https://zsh.org/users/27806 (user ran into this in zsh upstream).

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