In the ksh manual it says "The  -p  option  does  a  path search  for
name  even  if  name  is an alias, a function, or a reserved word." But see
following example:

$ ksh --version
  version         sh (AT&T Research) 93u 2011-02-08
$ cat whence.ksh
# make sure there's no any foo command
foo

function foo
{
    return
}

whence -v foo
whence -p foo
$ ksh whence.ksh
whence.ksh[2]: foo: not found [No such file or directory]
foo is a function
foo
$

Here `foo' is a function but `whence -p' still prints it out. Bug?

-Clark
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to