zsh-users/zsh-syntax-highlighting

Jobs in command position

開放

#874 建立於 2022年5月27日

 (2 則留言) (0 個反應) (0 位負責人)Shell (1,371 個分叉)batch import
Buggood first issuesyntax:command-word

倉庫指標

星標
 (22,617 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南