zsh-users
 help / color / mirror / code / Atom feed
* No newline, no print.
@ 2003-12-12 20:44 N. Thomas
  2003-12-12 20:52 ` Jean Chalard
  0 siblings, 1 reply; 4+ messages in thread
From: N. Thomas @ 2003-12-12 20:44 UTC (permalink / raw)
  To: zsh-users

When I print something to stdout that doesn't have a newline at the end,
Z-Shell refuses to print it. Note the following Perl program:

    print "My name is Bob.\n";

I run like so:

    prompt$ perl nl.pl
    My name is Bob.
    prompt$

Now, using my advanced knowledge of Perl, I change the program to this:

    print "My name is Mud.";

(note the missing newline) and I run again:

    prompt$ perl nonl.pl
    prompt$

Nothing!

To be honest, I do see it -- but it is overwritten by $PS1 a
split-second later.

Not that I spend my time writing Perl programs without newlines in them
(I use Python), but oftentimes badly written programs or processes that
crash will occasionally output something without this newline and I
usually don't catch it quickly enough.

That other shell does this:

    trash-2.01$ perl nonl.pl
    My name is Mud.trash-2.01$

Note how it doesn't overwrite the output -- this is what I'd like
Z-Shell to do. How can I?

thanks,
Thomas

-- 
N. Thomas
nthomas@cise.ufl.edu
http://www.cise.ufl.edu/~nthomas/
Etiamsi occiderit me, in ipso sperabo


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

end of thread, other threads:[~2003-12-19 11:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-12 20:44 No newline, no print N. Thomas
2003-12-12 20:52 ` Jean Chalard
2003-12-15 18:23   ` jayjwa
2003-12-19 11:49   ` zzapper

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