Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Value of $0

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


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 @@
+_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

Messages sorted by: Reverse Date, Date, Thread, Author