Article View: net.micro.atari16
Article #1628Re: Re: Micro C-Shell: Megamax and IO redirection - query
From: D'arc Angel
Date: Tue, 26 Aug 1986 18:34
Date: Tue, 26 Aug 1986 18:34
33 lines
1977 bytes
1977 bytes
> Summary: Still unresolved
>
> []
>
> Of greater annoyance to me is the fact that Megamax-compiled programs
> crash if IO is redirected from inside Micro C-Shell. The SAME
> program works fine if named PROG.TTP and invoked from the desktop,
> entering ">OUTFILE" into the dialog box. This is an old problem,
> but I havn't heard from either company yet. (I don't know if it's
> Megamax or Beckemeyer's "fault"). Contrary to recent claims, it does
> not matter (from C-Shell) if I use ">outfile" or "> outfile".
> It never works - I get two balls with lighted fuses.
>
its a megamax C problem, uCsh is using the Force call to 'steal' i/o
handle 1 (stdout) and force it to a file, this works fine as long as
the 'redirected' program only uses Fwrite to do the output. sadly
the printf routine in megamax C does not, hence the the 2 bombs.
the worst news is that there is no fix for it (except from Megamax
hint...hint...) i had to leave redirection out of uEmacs 3.7 because
of it. i spoke to some people at atari about this and they were not
sure that DRI C's printf would fare any better.
--
----
It aint life that gets me down, it's gravity
Name: James M. Turner
Mail: Imagen Corp. 2650 San Tomas Expressway, P.O. Box 58101
Santa Clara, CA 95052-8101
AT&T: (408) 986-9400
UUCP: ...{decvax,ucbvax}!decwrl!imagen!turner
CompuServe: 76327,1575
GEnie : D-ARCANGEL
Technical Details
Message-ID:
<483@imagen.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!lll-lcc!vecpyr!amd!amdcad!decwrl!sun!saber!imagen!turnerReferences:
<942@batcomputer.TN.CORNELL.EDU>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!lll-lcc!vecpyr!amd!amdcad!decwrl!sun!saber!imagen!turner From: turner@imagen.UUCP (D'arc Angel) Newsgroups: net.micro.atari16 Subject: Re: Re: Micro C-Shell: Megamax and IO redirection - query Message-ID: <483@imagen.UUCP> Date: Tue, 26-Aug-86 14:34:07 EDT Article-I.D.: imagen.483 Posted: Tue Aug 26 14:34:07 1986 Date-Received: Wed, 27-Aug-86 21:36:56 EDT References: <942@batcomputer.TN.CORNELL.EDU> Organization: The Houses of the Holy Lines: 33