From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29086 invoked from network); 7 Aug 2001 17:51:10 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 Aug 2001 17:51:10 -0000 Received: (qmail 10410 invoked by alias); 7 Aug 2001 17:50:58 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15594 Received: (qmail 10397 invoked from network); 7 Aug 2001 17:50:56 -0000 X-VirusChecked: Checked Sender: kiddleo@cav.logica.co.uk Message-ID: <3B702A64.F7D8A448@yahoo.co.uk> Date: Tue, 07 Aug 2001 18:50:28 +0100 From: Oliver Kiddle X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: zsh-workers@sunsite.dk Subject: Re: Value of $0 References: <1010806144633.ZM7876@candle.brasslantern.com> <3B6EB81D.B0612E7B@u.genie.co.uk> <1010807161625.ZM9619@candle.brasslantern.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Peter wrote: | > Or if that would cause problems, some sort of similar way such | > as an option to functions or autoload? | Or maybe an addition to zsh/parameter. That would do the job nicely. Bart Schaefer wrote: > > I've created the file Etc/STD-TODO for this purpose. Looks good. > It's actually worse than that. (Emulation does setopt nocorrect, or at > least does not setopt correct.) The special meanings of "nocorrect" and > "noglob" should be disabled in emulation. ok, so emulate should disable noglob and nocorrect then. I just noticed a silly bug in _enable which was my fault some while ago so fix is below. I'll also just add `_value:DISPLAY() _x_display' in _value. Are braces needed for any option combination because it works without regardless of shortloops. Oliver Index: Completion/Zsh/Context/_value =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Context/_value,v retrieving revision 1.1 diff -u -r1.1 _value --- Completion/Zsh/Context/_value 2001/04/02 11:25:06 1.1 +++ Completion/Zsh/Context/_value 2001/08/07 17:48:39 @@ -58,4 +58,6 @@ fi } +_value:DISPLAY() _x_display + _value "$@" Index: Completion/Zsh/Command/_enable =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Command/_enable,v retrieving revision 1.1 diff -u -r1.1 _enable --- Completion/Zsh/Command/_enable 2001/04/02 11:28:14 1.1 +++ Completion/Zsh/Command/_enable 2001/08/07 17:48:39 @@ -5,4 +5,4 @@ "(-a -r)-f[act on functions]:*:functions:(${(k)dis_functions})" \ "(-a -f)-r[act on reserved words]:*:reserved-words:(${(k)dis_reswords})" \ '-m[treat arguments as patterns]' \ - "*:builtin command:(${(@k)dis_builtins})" + "*:builtin command:(${(k)dis_builtins})" _____________________________________________________________________ This message has been checked for all known viruses by the MessageLabs Virus Scanning Service. For further information visit http://www.messagelabs.com/stats.asp