Article View: comp.sys.atari.st
Article #40550Re: TOS io redirection bugs
From: Jwahar R. Bammi
Date: Tue, 06 Feb 1990 23:38
Date: Tue, 06 Feb 1990 23:38
19 lines
1554 bytes
1554 bytes
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
Technical Details
Message-ID:
<BAMMI.90Feb6182843@curie.ces.CWRU.Edu>Path:
arc1-ca.pugleaf.net!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!bammiReferences:
<9001301152.AA03348@freya.dmswwu-ether>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <BAMMI.90Feb6182843@curie.ces.CWRU.Edu> 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