On 5/6/06, David Korn <dgk at research.att.com> wrote:
> Subject: Re: [ast-users] Is it legal to use % builtin -f $0 getconf # to 
> restore  a deleted builtin ?
> --------
>
> > Hi!
> >
> > ----
> >
> > Just curious: Is it legal (and/or recommended) to "restore" a previouly
> > deleted builtin like this:
> > -- snip --
> > # delete builtin
> > % builtin -d getconf
> > # do something
> > % getconf
> > # restore builtin using $0 as library
> > % builtin -f $0 getconf
> just use
>         builtin getconf
> The library that contains getconf is already loaded.  $0 is not the
> name of a library.

I hit a similar problem recently, however the proposed solution does not work:
ms:> ksh
ms> builtin -d vmap
ms> builtin vmap
builtin: vmap: not found

Maybe commands built into the ksh binary itself cannot be restored that way.
--
     //   Martin Schaffstall
    //    EMail: martin.schaffstall at googlemail.com
\\ //
 \X/

Reply via email to