Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: a.out output not displayed



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 <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Messages sorted by: Reverse Date, Date, Thread, Author