* BUG? Zsh does not print the last line of stdout of a child process if that line does not have newline char at end. BUG?
@ 2005-04-28 21:51 Batalov, Denis
2005-04-29 1:18 ` Wayne Davison
2005-04-29 1:45 ` Alexey Tourbin
0 siblings, 2 replies; 3+ messages in thread
From: Batalov, Denis @ 2005-04-28 21:51 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 637 bytes --]
I have encountered unexpected zsh behaviour which looks like a bug. At the same time it is so basic that others must have seen it before, so maybe it's not. I would appreciate some clarification.
Basically, if the last line in the output of a command executed from the zsh command-line does not have the terminating newline character, then the line is not shown by zsh. Here is a simple test one can try:
$ echo -n gogi
$
On other shells, e.g. bash, the behaviour is as expected:
$ echo -n gogi
gogi$
Any comments? Please CC directly to my e-mail address, as I am not a regular reader.
Thanks,
--
Denis V. Batalov
[-- Attachment #2: Type: text/html, Size: 1509 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: BUG? Zsh does not print the last line of stdout of a child process if that line does not have newline char at end. BUG?
2005-04-28 21:51 BUG? Zsh does not print the last line of stdout of a child process if that line does not have newline char at end. BUG? Batalov, Denis
@ 2005-04-29 1:18 ` Wayne Davison
2005-04-29 1:45 ` Alexey Tourbin
1 sibling, 0 replies; 3+ messages in thread
From: Wayne Davison @ 2005-04-29 1:18 UTC (permalink / raw)
To: Batalov, Denis; +Cc: zsh-workers
On Thu, Apr 28, 2005 at 02:51:13PM -0700, Batalov, Denis wrote:
> $ echo -n gogi
> $
I like the precmd solution mentioned in the FAQ:
http://zsh.sunsite.dk/FAQ/zshfaq03.html#l40
(Note to FAQ maintainer: the index appears to be off by one -- it
linked to l39, but the answer appears to be l40.)
..wayne..
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: BUG? Zsh does not print the last line of stdout of a child process if that line does not have newline char at end. BUG?
2005-04-28 21:51 BUG? Zsh does not print the last line of stdout of a child process if that line does not have newline char at end. BUG? Batalov, Denis
2005-04-29 1:18 ` Wayne Davison
@ 2005-04-29 1:45 ` Alexey Tourbin
1 sibling, 0 replies; 3+ messages in thread
From: Alexey Tourbin @ 2005-04-29 1:45 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 339 bytes --]
On Thu, Apr 28, 2005 at 02:51:13PM -0700, Batalov, Denis wrote:
> $ echo -n gogi
> $
>
> On other shells, e.g. bash, the behaviour is as expected:
>
> $ echo -n gogi
> gogi$
>
> Any comments? Please CC directly to my e-mail address, as I am not a regular reader.
setopt NO_PROMPTCR
> Thanks,
> --
> Denis V. Batalov
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-04-29 1:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-28 21:51 BUG? Zsh does not print the last line of stdout of a child process if that line does not have newline char at end. BUG? Batalov, Denis
2005-04-29 1:18 ` Wayne Davison
2005-04-29 1:45 ` Alexey Tourbin
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).