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

Re: a.out output not displayed



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.

You need a \n at the end of your printf.  Or set the zsh option:

   setopt no_prompt_cr

By default, zsh returns to lefthand side of the terminal to display the
prompt.

-- 
Chris Johnson
cjohnson@xxxxxxxxxx
http://www.cs.utk.edu/~cjohnson



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