mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
'command -x': also bypass path-bound built-ins (re: 66e1d446
)
Since 'command -x' provides xargs-like functionality to repeatedly run external commands if the argument list is too long for one invocation, it makes little sense to use with built-ins. So I decided that 'command -x' should double as a way to guarantee running an external command. However, it was only bypassing plain built-ins and not path-bound builtins (the ones that show up with a virtual directory path name in the output of 'builtin'). src/cmd/ksh93/sh/path.c: - Before looking for a path-bound built-in, check that the SH_XARG state bit is not on. This needs to be done in path_absolute() as well as in path_spawn().
This commit is contained in:
parent
89d5b8cde1
commit
3e79027cd1
3 changed files with 14 additions and 2 deletions
3
NEWS
3
NEWS
|
@ -14,6 +14,9 @@ Any uppercase BUG_* names are modernish shell bug IDs.
|
|||
- Fixed a bug that caused the -b/--notify option to only notify on one job if
|
||||
more than one background job completed at the same time.
|
||||
|
||||
- Fixed a bug in the 'command -x' feature introduced on 2021-01-30; it is meant
|
||||
to always run an external command, but failed to bypass path-bound builtins.
|
||||
|
||||
2022-07-21:
|
||||
|
||||
- Fixed a bug where a reproducible $RANDOM sequence (after assigning a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue