Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site pluto.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!cmcl2!phri!pluto!warren From: warren@pluto.UUCP (Warren Burstein) Newsgroups: net.bugs Subject: "who am i" from a ptty Message-ID: <191@pluto.UUCP> Date: Wed, 20-Nov-85 22:58:06 EST Article-I.D.: pluto.191 Posted: Wed Nov 20 22:58:06 1985 Date-Received: Sun, 24-Nov-85 07:07:01 EST Organization: Industrial Automation Systems Inc., New York, N.Y. Lines: 6 I just discovered that "who am i" prints nothing if stdin is a ptty. It gets the name from ttyname, then searches /etc/utmp for a line matching the ptty. Since no one is logged in on a ptty it fails. This was observed under Pyramid OS-X which pretends to be both BSD and SysV.