From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22132 invoked from network); 28 Mar 2001 10:04:07 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 28 Mar 2001 10:04:07 -0000 Received: (qmail 13581 invoked by alias); 28 Mar 2001 10:04:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13810 Received: (qmail 13569 invoked from network); 28 Mar 2001 10:04:00 -0000 Message-ID: To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: prefix-needed style in _popd In-Reply-To: Your message of "Wed, 28 Mar 2001 06:22:06 -0000." <1010328062206.ZM15021@candle.brasslantern.com> Date: Wed, 28 Mar 2001 11:03:33 +0100 From: Peter Stephenson Bart wrote: > _mh has a lot more specialized knowledge about mh and its subcommands than > _mailboxes does. For example, _mh also knows about sequences. _mailboxes > just wants to generate all possible matches for other programs that can > interpret MH mailbox hierarchies. > > Which now makes me think that _mailboxes is doing the right thing, and > thus that prefix-needed should be tested by callers of _mailboxes rather > than by _mailboxes itself. I think that's probably right. In the case of MH, at the points where folder names are needed you need either a + or @, almost certainly a + for most people, and nothing else, so prefix-needed will just be infuriating (well, I find it always is, but in this case it doesn't have any side effect of working sometimes). In other cases, in principle it might be possible to complete something other than a mailbox if there is no prefix. I don't think _mailboxes can decide all this easily. -- Peter Stephenson Software Engineer CSR Ltd., Unit 300, Science Park, Milton Road, Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070