From: "N. Thomas" <nthomas@cise.ufl.edu>
To: zsh-users@sunsite.dk
Subject: No newline, no print.
Date: Fri, 12 Dec 2003 15:44:35 -0500 [thread overview]
Message-ID: <20031212204435.GM3748@cise.ufl.edu> (raw)
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
next reply other threads:[~2003-12-12 20:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-12 20:44 N. Thomas [this message]
2003-12-12 20:52 ` Jean Chalard
2003-12-15 18:23 ` jayjwa
2003-12-19 11:49 ` zzapper
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=20031212204435.GM3748@cise.ufl.edu \
--to=nthomas@cise.ufl.edu \
--cc=zsh-users@sunsite.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).