zsh-users
 help / color / mirror / code / Atom feed
* need to explicitly create newline on command prompt
@ 2000-08-14  8:23 Eric Smith
  2000-08-14  8:30 ` Andrej Borsenkow
  2000-08-14  8:51 ` Thomas Köhler
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Smith @ 2000-08-14  8:23 UTC (permalink / raw)
  To: zsh-user mailing list

<cut and paste from terminal>
[eric@plum ~]$ perl -e 'print "abc "'
[eric@plum ~]$ echo abc 
abc 
[eric@plum ~]$ perl -e 'print "abc \n"'

"'abc
[eric@plum ~]$ zsh                  
[eric@plum ~]$ perl -e 'print "abc "'
[eric@plum ~]$ perl -e 'print "abc \n"'
abc 

[eric@plum ~]$ bash
bash-2.03$ perl -e 'print "abc "'
abc bash-2.03$ perl -e 'print "abc \n"'
abc 

</cut and paste from terminal>

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?

-- 
Eric Smith
Fruitcom.com
Landline: 00 27 21 426 5311
Mobile: 00 27 82 373 1224


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: need to explicitly create newline on command prompt
  2000-08-14  8:23 need to explicitly create newline on command prompt Eric Smith
@ 2000-08-14  8:30 ` Andrej Borsenkow
  2000-08-14  8:51 ` Thomas Köhler
  1 sibling, 0 replies; 3+ messages in thread
From: Andrej Borsenkow @ 2000-08-14  8:30 UTC (permalink / raw)
  To: Eric Smith, zsh-user mailing list


> 
> 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?
> 


setopt promptcr

-andrej


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: need to explicitly create newline on command prompt
  2000-08-14  8:23 need to explicitly create newline on command prompt Eric Smith
  2000-08-14  8:30 ` Andrej Borsenkow
@ 2000-08-14  8:51 ` Thomas Köhler
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Köhler @ 2000-08-14  8:51 UTC (permalink / raw)
  To: zsh-user mailing list

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-08-14  8:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-14  8:23 need to explicitly create newline on command prompt Eric Smith
2000-08-14  8:30 ` Andrej Borsenkow
2000-08-14  8:51 ` Thomas Köhler

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).