Scott Lurndal <sc...@lurndal.org> wrote:

> On Thu, Dec 01, 2016 at 04:26:29PM +0000, Austin Group Bug Tracker wrote:
> > 
> > ---------------------------------------------------------------------- 
> >  (0003508) joerg (reporter) - 2016-12-01 16:26
> >  http://austingroupbugs.net/view.php?id=1025#c3508 
> > ---------------------------------------------------------------------- 
> > Since August 7, the Bourne Shell implements "type -F" to list all defined
> > functions. 
>
>  ksh has had "typeset -f" for decades.   Why use "type" instead of "typeset",
> particularly since "type" is a alias for "whence" in ksh?
>
> $ type type
> type is an alias for 'whence -v'

This is not POSIX but ksh.

POSIX defines a builtin called "type" and POSIX intentionally does not define a 
builtin called "whence" or "typeset".

This is why the proposal has been made as an enhancement to an already POSIX 
defined interface.

ksh93 would need to implement "whence -v -F" and this is possible as whence 
currently does not have an option "-F".

Jörg

-- 
 EMail:jo...@schily.net                    (home) Jörg Schilling D-13353 Berlin
    joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'

Reply via email to