From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5295 invoked from network); 30 Jan 2000 20:17:19 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 30 Jan 2000 20:17:19 -0000 Received: (qmail 28394 invoked by alias); 30 Jan 2000 20:17:12 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9481 Received: (qmail 28381 invoked from network); 30 Jan 2000 20:17:11 -0000 From: "Bart Schaefer" Message-Id: <1000130201707.ZM31703@candle.brasslantern.com> Date: Sun, 30 Jan 2000 20:17:06 +0000 X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Strange behavior creating functions MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I wanted to create a function with a unique name, so I tried this: function foo$$ () { echo $0 } This works as expected in 3.0.7, creating a function named foo31679 (or whatever the PID is). Same for 3.1.6-dev-14. However, in 3.1.6-dev-16 (the first "foo" is an autoloaded function I use for testing): zagzig[60] functions -m foo\* foo () { # undefined builtin autoload -X } foo () { echo $0 } zagzig[61] zmodload parameter; print -l ${functions[(I)foo*]} foo foo$$ zagzig[62] foo$$ zsh: command not found: foo29406 zagzig[63] 'foo$$' zsh: command not found: foo$$ -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com