Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] add and use _comp_original_options
On May 27, 3:20am, Mikael Magnusson wrote:
}
} ... completion code always has extendedglob set. I came up with this
} to work around it,
This seems quite reasonable. Just for pedantry I think I'd have named
the variable "_comp_caller_options" but it hardly matters.
} Is it safe to use $options, or do I have to check if the parameters
} module is available?
If zsh/parameter is available, referencing $options will autoload it,
so it's safe in that sense, but if the module is not available there's
nothing to guarantee that it has a sensible value.
On the other hand several completions rely on $commands springing into
existence when referenced, or do "compadd -k builtins", so ...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author