[comp.bugs.sys5] unset -f broken 11/16/88 ksh

carroll@sunb0.cs.uiuc.edu (03/04/90)

Has anyone else noticed this bug with ksh (11/16/88 version):
(System: Sun 3/60, Sun OS4.0.3 and also on '386 with 386/ix 2.0.2)

Given the command (for instance) 'telnet', which on this system is in
usr/ucb/telnet, you get

$ whence telnet
/usr/ucb/telnet

which is correct. But then

$ unset -f telnet
$ whence telnet
telnet

which is wrong. I just told ksh that telnet _wasn't_ a function, and now it
thinks it is. However, I still get

$ type telnet
telnet is /usr/ucb/telnet

What is going on? Is there a fix? Thanks!

Alan M. Carroll                "Like the north wind whistling down the sky,
carroll@cs.uiuc.edu             I've got a song, I've got a song.
Conversation Builder:           I carry it with me and I sing it loud
+ Tomorrow's Tools Today +      If it gets me nowhere, I'll go there proud"
Epoch Development Team          
CS Grad / U of Ill @ Urbana    ...{ucbvax,pur-ee,convex}!cs.uiuc.edu!carroll