Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: Dario Alcocer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15097.54951.265286.836069@coyote.priv.helixdigital.com> Date: Wed, 9 May 2001 16:45:43 -0700 To: "Quoss, Clemens" Cc: "'cygwin AT cygwin DOT com'" Subject: Re: No output on stdout In-Reply-To: <9FD1B9BA394ED31181EC0008C7A4FFD202904D46@ffz00zaj.wwz1me.mail.dresdner.net> References: <9FD1B9BA394ED31181EC0008C7A4FFD202904D46 AT ffz00zaj DOT wwz1me DOT mail DOT dresdner DOT net> X-Mailer: VM 6.76 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid >>>>> "Clemens" == Quoss, Clemens writes: Clemens> Hello, when I compile a very simple C program like the Clemens> one below with gcc under Cygwin and then run it in bash, Clemens> I don't get an output on the console window. Clemens> When I run the same executable under a DOS Shell in Clemens> Windows NT or 98, I get the 'Hello, Cygwin!' line. Clemens> Is there anything I overlooked on setup (I did set CYGWIN Clemens> to 'tty notitle glob' like mentioned in the User's Clemens> guide)? Anything else that prevents the stdout to be Clemens> shown on console? Hmm, you didn't by any chance call the program 'test'? If so, you may be running the bash shell built-in command 'test': $ type test test is a shell builtin If that's the case, it would make sense that only the DOS command window would run it, since COMMAND.COM doesn't have any built-in command called 'test', and so it would next look for files named test.com, test.exe, etc. in order to execute the command. Try the following in a bash shell to see if your test program works: $ gcc -o mytest mytest.c $ ./mytest Hello, Cyqwin! $ -- Dario Alcocer -- Sr. Software Developer, Helix Digital Inc. alcocer AT helixdigital DOT com -- http://www.helixdigital.com -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple