From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23973 invoked from network); 4 Feb 2002 10:15:10 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 4 Feb 2002 10:15:10 -0000 Received: (qmail 22488 invoked by alias); 4 Feb 2002 10:15:03 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16551 Received: (qmail 22466 invoked from network); 4 Feb 2002 10:15:01 -0000 To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: Incompatibility when Zsh invoked as 'sh' In-reply-to: ""Bart Schaefer""'s message of "Mon, 04 Feb 2002 03:46:42 GMT." <1020204034643.ZM20043@candle.brasslantern.com> Date: Mon, 04 Feb 2002 10:14:32 +0000 Message-ID: <14810.1012817672@csr.com> From: Peter Stephenson "Bart Schaefer" wrote: > On Feb 4, 12:13am, DervishD wrote: > } > } Well, the error is the '[*' pattern, which zsh says is a 'bat > } pattern'. Bash treats it as the regex 'match an opening bracket and > } anything after it', but zsh doesn't. > > Nothing in section 9.3.5 allows for an unmatched left-bracket to match a > literal bracket. The description of the "case" construct doesn't make > any exception to this, either. I suppose it's those shells' way of getting round the problem of treating a single `[' as the start of a test without needing it quoted. Zsh makes an exception in that single case only; maybe the others make an exception for any word starting with `['. I certainly can't see any good reason for changing. -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 392070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************