X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Wed, 5 May 2010 17:47:38 -0400 Message-Id: <201005052147.o45Llcf7018193@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: (do_not_have@havenone.cmm) Subject: Re: redirect stderr to stdout/file in djgpp 2.x References: <97e7dd63-3c51-4796-a5ba-c8a1cddaabbc AT w17g2000yqj DOT googlegroups DOT com> <57a05b96-b688-4c09-93b5-f2bd3d2501a1 AT r18g2000yqd DOT googlegroups DOT com> <83633tye60 DOT fsf AT gnu DOT org> Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk It's a requirement of ANSI C. When sent to a file, stdout is block buffered but stderr is always unbuffered. When sent to a device (i.e. the screen), stdout is line buffered instead, which makes it seem "right".