From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6120 invoked from network); 23 Jul 2006 22:06:38 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Jul 2006 22:06:38 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 22330 invoked from network); 23 Jul 2006 22:06:28 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Jul 2006 22:06:28 -0000 Received: (qmail 9627 invoked by alias); 23 Jul 2006 22:06:19 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10540 Received: (qmail 9617 invoked from network); 23 Jul 2006 22:06:17 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 23 Jul 2006 22:06:17 -0000 Received: (qmail 21183 invoked from network); 23 Jul 2006 22:06:17 -0000 Received: from parhelion.firedrake.org (193.201.200.77) by a.mx.sunsite.dk with SMTP; 23 Jul 2006 22:06:17 -0000 Received: from phil by parhelion.firedrake.org with local (Exim 4.50 #1 (Debian)) id 1G4m5W-0007B6-Eh for ; Sun, 23 Jul 2006 23:06:14 +0100 Date: Mon, 24 Jul 2006 00:06:14 +0200 From: Phil Pennock To: zsh-users@sunsite.dk Subject: Re: Output not being echo'd in shell scripts. Message-ID: <20060723220613.GA27302@parhelion.globnix.org> Mail-Followup-To: zsh-users@sunsite.dk References: <96c45c490607162152k4d7d81b8x5d143c7b5c51d585@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Phil Pennock On 2006-07-23 at 10:38 +0000, zzapper wrote: > setopt no_prompt_cr #needed for perl scripts > > This is an old zsh chestnut where zsh does not output if there is no > trailing CRHTH zsh doesn't really control whether or not other commands produce output. By default, without setting that option, zsh outputs a Carriage Return at the start of a prompt; that's the CR of CRLF fame, which sends the cursor position back to the start of the line. End result is that output gets overwritten so that you don't see it. -- VISTA: Viruses, Infections, Spyware, Trojans & Adware