From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10914 invoked from network); 23 Feb 2006 00:44:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Feb 2006 00:44:15 -0000 Received: (qmail 26089 invoked from network); 23 Feb 2006 00:44:09 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Feb 2006 00:44:09 -0000 Received: (qmail 25394 invoked by alias); 23 Feb 2006 00:44:01 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9958 Received: (qmail 25384 invoked from network); 23 Feb 2006 00:44:01 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 23 Feb 2006 00:44:01 -0000 Received: (qmail 24931 invoked from network); 23 Feb 2006 00:44:01 -0000 Received: from vinc17.net8.nerim.net (HELO prunille.vinc17.org) (62.212.121.106) by a.mx.sunsite.dk with SMTP; 23 Feb 2006 00:44:00 -0000 Received: by prunille.vinc17.org (Postfix, from userid 501) id 50F116BA996; Thu, 23 Feb 2006 01:43:57 +0100 (CET) Date: Thu, 23 Feb 2006 01:43:57 +0100 From: Vincent Lefevre To: zsh-users@sunsite.dk Subject: Re: a.out output not displayed Message-ID: <20060223004357.GB793@prunille.vinc17.org> Mail-Followup-To: zsh-users@sunsite.dk References: <43FCE62C.2010804@ece.gatech.edu> <20060222223737.GA23971@namib.cs.utk.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20060222223737.GA23971@namib.cs.utk.edu> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.11-vl-20060221 On 2006-02-22 17:37:37 -0500, Chris Johnson wrote: > Raja Loganathan sent me the following 0.3K: > > > My gcc compiled programs are not showing the output. > > > > I compiled a simple printf("\nHelloworld"); > > > > ./a.out .. I'm not getting any output on the screen. However Shell > > commands, echo etc works properly. > > I checked my program in other shells. It works properly. It doesn't (the prompt position is incorrect with other shells). > You need a \n at the end of your printf. Or set the zsh option: > > setopt no_prompt_cr Which is bad. The best solution is to use a recent zsh version (4.3.0-dev-5 or wait for 4.3.1). -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / SPACES project at LORIA