From: "Thomas Köhler" <jean-luc@picard.franken.de>
To: zsh-user mailing list <zsh-users@sunsite.auc.dk>
Subject: Re: need to explicitly create newline on command prompt
Date: Mon, 14 Aug 2000 10:51:11 +0200 [thread overview]
Message-ID: <20000814105111.A23905@picard.franken.de> (raw)
In-Reply-To: <20000814102329.B911@fruitcom.com>; from eric@fruitcom.com on Mon, Aug 14, 2000 at 10:24:07AM +0200
[-- Attachment #1: Type: text/plain, Size: 1489 bytes --]
On Mon, Aug 14, 2000 at 10:24:07AM +0200,
Eric Smith <eric@fruitcom.com> wrote:
> <cut and paste from terminal>
> [eric@plum ~]$ perl -e 'print "abc "'
> [eric@plum ~]$ echo abc
> abc
> [eric@plum ~]$ perl -e 'print "abc \n"'
>
> "'abc
How do you get _this_?
Can't reproduce such behaviour.
> [eric@plum ~]$ zsh
> [eric@plum ~]$ perl -e 'print "abc "'
> [eric@plum ~]$ perl -e 'print "abc \n"'
> abc
Yes. This happens because zsh clears the whole line before drawing a
prompt. You can workaround the problem:
precmd() {
echo
}
> [eric@plum ~]$ bash
> bash-2.03$ perl -e 'print "abc "'
> abc bash-2.03$ perl -e 'print "abc \n"'
> abc
Bash doesn't clear the line before drawing a prompt, so this behaviour
happens...
> With zsh, I have never been able to get output of a perl command
> unless an explicit "\n" is entered. A straight echo or even:
> echo 324542| sed 's/3/9/g'
> does print out. (Also there is that weird `"'abc' output.
>
> With bash all is as it should be.
>
> Any ideas where I could look t fix this?
The perl command issues some output, but the output will be overwritten
by zsh's prompt.
CU,
Thomas
--
Thomas Köhler Email: jean-luc@picard.franken.de | LCARS - Linux
<>< WWW: http://jeanluc-picard.de | for Computers
IRC: jeanluc | on All Real
PGP public key available from Homepage! | Starships
[-- Attachment #2: Type: application/pgp-signature, Size: 240 bytes --]
prev parent reply other threads:[~2000-08-14 8:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-14 8:23 Eric Smith
2000-08-14 8:30 ` Andrej Borsenkow
2000-08-14 8:51 ` Thomas Köhler [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20000814105111.A23905@picard.franken.de \
--to=jean-luc@picard.franken.de \
--cc=zsh-users@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).