From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13397 invoked from network); 12 Dec 2003 20:45:23 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 12 Dec 2003 20:45:23 -0000 Received: (qmail 8650 invoked by alias); 12 Dec 2003 20:45:07 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6874 Received: (qmail 8596 invoked from network); 12 Dec 2003 20:45:07 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 12 Dec 2003 20:45:07 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [128.227.205.249] by sunsite.dk (MessageWall 1.0.8) with SMTP; 12 Dec 2003 20:45:6 -0000 Received: from rain.cise.ufl.edu (rain.cise.ufl.edu [128.227.205.19]) by mail.cise.ufl.edu (Postfix) with ESMTP id 2799C9D2 for ; Fri, 12 Dec 2003 15:45:06 -0500 (EST) Received: (from nthomas@localhost) by rain.cise.ufl.edu (8.9.1a/8.9.1) id PAA05261 for zsh-users@sunsite.dk; Fri, 12 Dec 2003 15:45:06 -0500 (EST) Date: Fri, 12 Dec 2003 15:44:35 -0500 From: "N. Thomas" To: zsh-users@sunsite.dk Subject: No newline, no print. Message-ID: <20031212204435.GM3748@cise.ufl.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i 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