Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: weird problems with zsh
- X-seq: zsh-users 4040
- From: Peter Stephenson <pws@xxxxxxx>
- To: oleg dashevskii <od@xxxxxxxxxxxx>, zsh-users@xxxxxxxxxx (Zsh users list)
- Subject: Re: weird problems with zsh
- Date: Thu, 19 Jul 2001 17:22:19 +0100
- In-reply-to: "oleg dashevskii"'s message of "Thu, 19 Jul 2001 21:29:12 +0700." <20010719212912.1f23066a.od@xxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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