From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16677 invoked from network); 13 Jul 2002 21:36:04 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 13 Jul 2002 21:36:04 -0000 Received: (qmail 28573 invoked by alias); 13 Jul 2002 21:36:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17452 Received: (qmail 28562 invoked from network); 13 Jul 2002 21:35:59 -0000 From: "Bart Schaefer" Message-Id: <1020713213531.ZM8206@candle.brasslantern.com> Date: Sat, 13 Jul 2002 21:35:31 +0000 X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Bad "bad pattern" in ${foo//pat/repl} ? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii (Never mind why the elements of $foo have spaces in them, I was fooling with something else when I came across this.) schaefer<501> foo=("a b" "a c" "b q" "x y") schaefer<502> echo ${foo/#a*/yes} yes yes b q x y schaefer<503> echo ${foo//#a*/yes} a b a c b q x y schaefer<504> setopt extendedglob schaefer<505> echo ${foo/#a*/yes} yes yes b q x y schaefer<506> echo ${foo//#a*/yes} zsh: bad pattern: #a* Surely both 503 and 506 are bugs (probably the same bug). One should be able to anchor to the beginning of the string even when doing a replace-all (I do admit it doesn't really make sense to do so, but ...). -- 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