zsh-users/zsh-syntax-highlighting

Jobs in command position

Open

#874 aberto em 27 de mai. de 2022

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)Shell (1.371 forks)batch import
Buggood first issuesyntax:command-word

Métricas do repositório

Stars
 (22.617 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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).

Guia do colaborador