From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3/2) with ESMTP id WAA07899 for ; Thu, 4 Jul 1996 22:19:13 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id IAA22224; Thu, 4 Jul 1996 08:05:30 -0400 (EDT) Resent-Date: Thu, 4 Jul 1996 08:05:30 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199607041204.OAA11459@bolyai.cs.elte.hu> Subject: Re: 3.0-pre1 odd behavior To: schaefer@nbn.com Date: Thu, 4 Jul 1996 14:04:55 +0200 (MET DST) Cc: olsenc@ichips.intel.com, zsh-workers@math.gatech.edu In-Reply-To: <960702215259.ZM7175@candle.brasslantern.com> from Bart Schaefer at "Jul 2, 96 09:52:55 pm" Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368 X-Mailer: ELM [version 2.4ME+ PL16 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"--g8Q.0.7R5.AExsn"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1524 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > On Jul 2, 4:50pm, Clint Olsen wrote: > > exec zsh -l > zagzig[21] setopt | grep monitor > monitor off Only the last command of a pipe runs in the current shell environment, and in a subshell monitor is turned off. But as it already turned out this behaviour was caused by the swap between -1 and -C. Every other Bourne-style shell uses -C for noclobber. It would be possible to use -C for noclobber only when zsh is invoked as sh/ksh but that may cause confusion so I decided to make -C noclobber even is zsh mode. In zsh scripts only option names shoud be used to turn options on/off. Option names will not change and this will make the script more readable. Zoltan