From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5032 invoked from network); 26 Mar 2002 12:31:56 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 26 Mar 2002 12:31:56 -0000 Received: (qmail 11204 invoked by alias); 26 Mar 2002 12:31:40 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4782 Received: (qmail 11191 invoked from network); 26 Mar 2002 12:31:39 -0000 Date: Tue, 26 Mar 2002 12:31:44 +0000 From: Ian Lynagh To: zsh-users@sunsite.dk Subject: Beginning of line matching Message-ID: <20020326123144.GA24391@stu163.keble.ox.ac.uk> Mail-Followup-To: zsh-users@sunsite.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.25i Sender: Ian Lynagh Hi all I would have expected ${FOO/(#s)/X} and ${${FOO/(#m)(#s)?/X$MATCH}:-X} to be equivalent, but it seems that only the second one has the desired effect when FOO is not empty. Is there a reason the first doesn't behave as I expected? Thanks Ian