You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the commands builtin foo, command foo, and sudo foo, the inner command word foo should be looked up only as a builtin or external command, respectively.
After builtin aliases, function names, hashed command names, and absolute paths should be red even if they're otherwise valid; similar restrictions apply after command and external commands that are precommands (e.g., sudo/doas, env, ssh, xargs, chroot/jexec, strace, setsid, stdbuf, etc). We needn't enumerate them; any known precommand [see $precommand_options] that's itself an external command — that is, isn't shadowed by a function or alias — can only be followed by external commands.
This should be fairly easy to fix by making the setting and testing of the :start: state more fine-grained.
Add test cases of the form builtin foo.
Add test cases of the (somewhat misleading) form builtin command foo.
Add test cases with precommands that are external commands.
The text was updated successfully, but these errors were encountered:
In the commands
builtin foo
,command foo
, andsudo foo
, the inner command wordfoo
should be looked up only as a builtin or external command, respectively.After
builtin
aliases, function names, hashed command names, and absolute paths should be red even if they're otherwise valid; similar restrictions apply aftercommand
and external commands that are precommands (e.g.,sudo
/doas
,env
,ssh
,xargs
,chroot
/jexec
,strace
,setsid
,stdbuf
, etc). We needn't enumerate them; any known precommand [see$precommand_options
] that's itself an external command — that is, isn't shadowed by a function or alias — can only be followed by external commands.This should be fairly easy to fix by making the setting and testing of the
:start:
state more fine-grained.builtin foo
.builtin command foo
.The text was updated successfully, but these errors were encountered: