mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
whence -a/type -a: report both function and built-in by same name
'whence -a' is documented to list all possible interpretations of a command, but failed to list a built-in command if a shell function by the same name exists or is marked undefined using 'autoload'. src/cmd/ksh93/bltins/whence.c: whence(): - Refactor and separate the code for reporting functions and built-in commands so that both can be reported for one name. src/cmd/ksh93/data/builtins.c: sh_optwhence[]: - Correct 'whence --man' to document that: * 'type' is equivalent to 'whence -v' * '-a' output is like '-v' src/cmd/ksh93/tests/builtins.sh: - Test 'whence -a' with these combinations: * a function, built-in and external command * an undefined/autoload function, built-in and external command Fixes https://github.com/ksh93/ksh/issues/83
This commit is contained in:
parent
01c25cb14b
commit
bc8b36faba
5 changed files with 45 additions and 20 deletions
5
NEWS
5
NEWS
|
@ -3,6 +3,11 @@ For full details, see the git log at: https://github.com/ksh93/ksh
|
|||
|
||||
Any uppercase BUG_* names are modernish shell bug IDs.
|
||||
|
||||
2020-07-20:
|
||||
|
||||
- If a shell function and a built-in command by the same name exist,
|
||||
'whence -a' and 'type -a' now report both.
|
||||
|
||||
2020-07-19:
|
||||
|
||||
- Fixed a crash that occured in the '.' command when using kshdb.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue