cdesktopenv/src/cmd
Martijn Dekker 01c25cb14b whence -a: fix spurious 'undefined function' message
$ ksh -c 'whence -a printf'
	printf is a shell builtin
	printf is /usr/bin/printf
	printf is an undefined function

The third line should not appear.

src/cmd/ksh93/bltins/whence.c:
- Remove faulty extra check for undefined (= autoload) functions.
  This was already handled earlier, on lines 192-193.

src/cmd/ksh93/tests/builtins.sh:
- Add regression test.
- For previous 'whence -a' test, don't bother with shell function.

Fixes https://github.com/ksh93/ksh/issues/26
2020-07-20 17:03:04 +01:00
..
INIT src/cmd/INIT/cc.darwin*: remove optimisation hacks (re: 37a9c345) 2020-07-17 22:26:51 +01:00
builtin Fix some errors in the documentation and other minor issues (#42) 2020-06-25 19:31:51 +02:00
ksh93 whence -a: fix spurious 'undefined function' message 2020-07-20 17:03:04 +01:00
Makefile Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
Mamfile Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00