Alexander Steinböck <bts@bts.grml.org>:
> In grml-x' completion there's the switch `fallback' missing. As well
> as in the manpage. And `help' is completing with brackets attached.
> Culprit's the leading colon.
Um, I just tried the completion. What is your problem with the way it
currently works? I don't see any 'brackets attached'.
> Furthermore, done in a separate diff, I guess we should stick to
> double brackets for the test command here as well.
ACK.
> I first wanted to use check_com instead of `[[ -x ... ]]', but then
> realised, that's not available in noninteractive shells. Besides,
> it may be better to stay independent from grml's zsh-config for those
> (non-grml) users, who just checkout the completion. Or am I missing
> something in this regard?
Well, no. You are right. More or less.
check_com() *would* be available for completions, too. I mean, in what
environment are you using compsys *without* being in an interactive
shell?
However, I tend to agree with you. Leave check_com() out.
The reason it got implemented was to have a simple uniform way to
check for commands/aliases/functions etc. in various places in our
zshrc - because we check for more then one program in there. :-)
If you could the explain the 'brackets attached' thing above, I'd be
happy to apply this one. (A first quick look didn't reveal any
breakage).
Regards, Frank
--
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
-- RFC 1925 |