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

Re: weird problems with zsh



oleg dashevskii wrote:
> hello!
> 
> for some case or another when I type into the command line 
> 
> % perl -e "print 'aaa'"
> 
> it outputs nothing, as opposed to bash which lets perl output 'aaa'

It's the same as the following from the FAQ (though you might not
immediately realise that it was the prompt deleting back to the first
column, which it is).


3.23: How do I prevent the prompt overwriting output when there is no newline?

  The problem is, for example,

    % echo -n foo
    % 

  and the foo has been overwritten by the prompt %.  The answer is
  simple:  put unsetopt promptcr in your .zshrc.  The option PROMPT_CR,
  to print a carriage return before a new prompt, is set by default because
  a prompt at the right hand side (`$RPROMPT', `$RPS1') will not appear
  in the right place, and multi-line editing will be confused about the line
  position, unless the line starts in the left hand column.  Apart from
  PROMPT_CR, you can force this to happen by putting a newline in the
  prompt (see question 3.13 for that).

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited.  
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************



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