zsh-users/zsh-syntax-highlighting

Jobs in command position

Open

#874 ouverte le 27 mai 2022

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)Shell (1 371 forks)batch import
Buggood first issuesyntax:command-word

Métriques du dépôt

Stars
 (22 617 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur