Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Value of $0
- X-seq: zsh-workers 15594
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Value of $0
- Date: Tue, 07 Aug 2001 18:50:28 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <1010806144633.ZM7876@xxxxxxxxxxxxxxxxxxxxxxx> <3B6EB81D.B0612E7B@xxxxxxxxxxxxx> <1010807161625.ZM9619@xxxxxxxxxxxxxxxxxxxxxxx>
- Sender: kiddleo@xxxxxxxxxxxxxxxx
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author