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

RE: parameter completion in expansions



Andrej Borsenkow wrote:

> > But the `} ' is auto-removed when you type `['. And since one can also
> > subscript scalars and sometimes don't want to subscript arrays I'd
> > prefer to not treat them differently.
> 
> Oh, yes. Have I never tried it, silly me? But the space after $param (without
> braces) not. Should it?

Hm, yes. Makes completion after `$' slightly slower, but I guess one
will seldom or never notice this.

Bye
 Sven

diff -u oc/Base/_parameter Completion/Base/_parameter
--- oc/Base/_parameter	Thu Jul  8 11:11:45 1999
+++ Completion/Base/_parameter	Fri Jul  9 15:38:25 1999
@@ -1,3 +1,3 @@
 #compdef -parameter-
 
-compgen -v
+_parameters -S ' ' -r '['

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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