From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14133 invoked from network); 25 Sep 2008 15:54:02 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Sep 2008 15:54:02 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 65459 invoked from network); 25 Sep 2008 15:53:56 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Sep 2008 15:53:56 -0000 Received: (qmail 14908 invoked by alias); 25 Sep 2008 15:53:50 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25747 Received: (qmail 14891 invoked from network); 25 Sep 2008 15:53:50 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 25 Sep 2008 15:53:50 -0000 Received: from vms173001pub.verizon.net (vms173001pub.verizon.net [206.46.173.1]) by bifrost.dotsrc.org (Postfix) with ESMTP id 814B880307AB for ; Thu, 25 Sep 2008 17:53:45 +0200 (CEST) Received: from torch.brasslantern.com ([96.238.220.178]) by vms173001.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0K7R00IX8DDA22UQ@vms173001.mailsrvcs.net> for zsh-workers@sunsite.dk; Thu, 25 Sep 2008 10:51:11 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id m8PFp9il030833 for ; Thu, 25 Sep 2008 08:51:10 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id m8PFp8EX030832 for zsh-workers@sunsite.dk; Thu, 25 Sep 2008 08:51:08 -0700 Date: Thu, 25 Sep 2008 08:51:08 -0700 From: Bart Schaefer Subject: Re: PATCH: dynamic named directories In-reply-to: <15726.1222353125@csr.com> To: zsh-workers@sunsite.dk (Zsh hackers list) Message-id: <080925085108.ZM30831@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <15726.1222353125@csr.com> Comments: In reply to Peter Stephenson "PATCH: dynamic named directories" (Sep 25, 3:32pm) X-Virus-Scanned: ClamAV 0.92.1/8332/Thu Sep 25 14:55:49 2008 on bifrost X-Virus-Status: Clean On Sep 25, 3:32pm, Peter Stephenson wrote: } } Now you can use ~[] and gets passed down to a function } zsh_directory_name, which either parses it and picks an appropriate } directory or refuses. Wow, it's the next best thing to symlinks with environment variable references in them, like I had in 1990 on my dual-68020 Sony machine running a Japanese version of 4.3 BSD. Only maybe without the corresponding gaping security hole. } - doshfunc(shfunc, l, 0, 1); } + doshfunc(shfunc, l, 1); Are you sure this is still equivalent to the old way? Looks like here [and in several similar places] doshfunc() was being explicitly told to ignore shfunc->node.flags, whereas with your change it will always pay attention to them.