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

RE: PATCH: Re: Standard setopts for completion system, again



>
>
> Bart Schaefer wrote:
>
> > ...
> >
> > Another choice (still in compinit) would be simply to stuff the desired
> > options into an array:
> >
> > _comp_setopts=(nullglob rcexpandparam extendedglob unset
> >      no{markdirs,globsubst,shwordsplit,shglob,ksharrays,cshnullglob})
> >
> > and then reference them:
> >
> > setopt localoptions $_comp_setopts
>
> I like this. Good idea.
>
> We could even do `_comp_setopts=(setopt localoptions nullglob ...)'
> and then just do `$_comp_setopt'.  Or would that be too irritating?
>

Someday somebody does _comp_setopt=(some-option $_comp_setopt). I prefer
Bart's version. It makes also usage more clear.

-andrej



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