cc: [email protected]
Subject: Re: [ast-users] [ksh93] `whence -p' should not prints out functions
--------

> 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?
Yes, this is a bug and it will be fixed in the next release.
> 
> -Clark
> 
> 



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

Reply via email to