Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!bloom-beacon!snorkelwacker!tut.cis.ohio-state.edu!usenet.ins.cwru.edu!usenet.INS.CWRU.Edu!bammi From: bammi@curie.ces.CWRU.Edu (Jwahar R. Bammi) Newsgroups: comp.sys.atari.st Subject: Re: TOS io redirection bugs Message-ID: Date: 6 Feb 90 23:38:11 GMT References: <9001301152.AA03348@freya.dmswwu-ether> Sender: news@usenet.ins.cwru.edu Organization: Case Western Reserve University Lines: 19 In-reply-to: ONM07@DMSWWU1A.BITNET's message of 6 Feb 90 08:02:50 GMT In article <9001301152.AA03348@freya.dmswwu-ether> ONM07@DMSWWU1A.BITNET (Julian Reschke) writes: dale: > inconvenience in TOS regarding stderr. Handle 2 is connected to the AUX > port by default, but I support it's use as a redirectable stderr. To > force this to work properly, C start-up code should check to see if handle > 2 is a tty. If is IS, then Fforce() it to -1 to attach it to the console. Julian: But this will fail if you try to redirect handle 2 to PRN:! Correct me if I'm wrong... thats correct, but dales suggestion is still fine. its isatty() that needs to be fixed up, so that it does'nt think that PRN: isatty(). (just out of curiosity, why would someone send stderr to PRN:? why not to a file, and then if its really needed, print the file (saves a few trees in the process)). -- bang: {any internet host}!dsrgsun.ces.CWRU.edu!bammi jwahar r. bammi domain: bammi@dsrgsun.ces.CWRU.edu GEnie: J.Bammi