From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26680 invoked from network); 7 May 2001 14:22:07 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 May 2001 14:22:07 -0000 Received: (qmail 19237 invoked by alias); 7 May 2001 14:21:59 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14244 Received: (qmail 19215 invoked from network); 7 May 2001 14:21:57 -0000 From: "Bart Schaefer" Message-Id: <1010507142023.ZM27612@candle.brasslantern.com> Date: Mon, 7 May 2001 14:20:23 +0000 In-Reply-To: <20010507160252.A1540@schweikhardt.net> Comments: In reply to Jens Schweikhardt "minor parsing bug in zsh 3.0.8" (May 7, 4:02pm) References: <20010507160252.A1540@schweikhardt.net> X-Mailer: Z-Mail (5.0.0 30July97) To: Jens Schweikhardt , zsh-workers@sunsite.auc.dk Subject: Re: minor parsing bug in zsh 3.0.8 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 7, 4:02pm, Jens Schweikhardt wrote: } } zsh won't parse function definitions with a space between the parentheses: } } # foo ( ) { echo foo } } zsh: parse error near `}' It will if you `setopt SH_GLOB'. The POSIX rules conflict with zsh's own globbing rules. There are a number of options one has to set before the shell will closely emulate POSIX; the easiest way to get them all is to use the `emulate sh' command. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net