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

Re: Output not being echo'd in shell scripts.



On 2006-07-23 at 10:38 +0000, zzapper wrote:
> setopt no_prompt_cr  #needed for perl scripts
> 
> This is an old zsh chestnut where zsh does not output if there is no 
> trailing CRHTH

zsh doesn't really control whether or not other commands produce output.

By default, without setting that option, zsh outputs a Carriage Return
at the start of a prompt; that's the CR of CRLF fame, which sends the
cursor position back to the start of the line.  End result is that
output gets overwritten so that you don't see it.
-- 
VISTA: Viruses, Infections, Spyware, Trojans & Adware



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