Path: utzoo!utgpu!water!watmath!clyde!att!chinet!mcdchg!nud!fishpond!fnf
From: fnf@fishpond.UUCP (Fred Fish)
Newsgroups: comp.unix.aux
Subject: Bug in console emulator
Keywords: bugs
Message-ID: <121@fishpond.UUCP>
Date: 19 Aug 88 19:53:46 GMT
Organization: tbd
Lines: 38

The following demonstrates what looks like a problem with the
"A/UX Initial Console Emulator".  Can anyone suggest any workarounds?
Thanks.
-Fred

----------------------------------------------------------------------
Script started on Fri Aug 19 12:50:04 1988
fishpond:222> cat bug.c
#include 

main ()
{
        extern char *ttyname ();
        extern int isatty ();

        printf ("isatty (stdin) = %d\n", isatty (stdin));
        printf ("isatty (stdout) = %d\n", isatty (stdout));
        printf ("isatty (stderr) = %d\n", isatty (stderr));
        printf ("ttyname (stdin) = %s\n", ttyname (stdin));
        printf ("ttyname (stdout) = %s\n", ttyname (stdout));
        printf ("ttyname (stderr) = %s\n", ttyname (stderr));
}

fishpond:223> cc bug.c
fishpond:224> a.out
isatty (stdin) = 0
isatty (stdout) = 0
isatty (stderr) = 0
ttyname (stdin) = P
ttyname (stdout) = P
ttyname (stderr) = P
fishpond:225> exit

script done on Fri Aug 19 12:50:27 1988
----------------------------------------------------------------------
-- 
# Fred Fish, 1346 West 10th Place, Tempe, AZ 85281,  USA
# noao!nud!fishpond!fnf                   (602) 921-1113