delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/01/10:51:20

Date: Wed, 1 Nov 2000 14:30:24 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
cc: Richard DOT Curnow AT st DOT com
Subject: Re: DJGPP Bug Activity
In-Reply-To: <200011011100.GAA28488@delorie.com>
Message-ID: <Pine.SUN.3.91.1001101142216.9403B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

This was submitted as a bug report to the DJGPP bug-tracking facility 
(http://www.delorie.com/djgpp/bugs/).

Please note that controversial reports such as this one, where it's not
clear whether the bug is in DJGPP or in the target platform, should be
posted to the DJGPP forum (comp.os.msdos.djgpp) instead of being filed
with the above site, because most of the time these are not DJGPP bugs. 

> running on Windows NT 4.0 SP6
> 
> This is my test prog (check.c)
> 
> #include <stdio.h>
> #define LT "\n\r"
> int main () {
>         printf("Line 5" LT);
>         printf("Line 4" LT);
>         printf("Line 3" LT);
>         printf("Line 2" LT);
>         printf("Line 1" LT);
>         fflush(stdout);
>         return 0;
> }
> 
> In a DOS box I enter
>   gcc check.c -o check
> 
> (With d:\djgpp\bin at the head of the path)
> 
> I get two files 'check' and 'check.exe' produced.  If I now type 'check', I
> get a blank line but no other output.  The same thing happens if LT is
> changed to either "\n" or "\r\n" as well.

I cannot reproduce this on NT 4 SP4 and SP5: the program runs as expected,
producing the 5 lines above.  I don't have access to SP6, though.  Can
someone who has access to SP6 test this and report the results? 

My guess would be that this is due to some setup specific to your system 
(is it possible that 'check' is a name of some command on that machine?).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019