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

Re: Tags in function files



    Hi Oliver :)

 * Oliver Kiddle <okiddle@xxxxxxxxxxx> dixit:
> > and #autoload), are hardcoded in Zsh or is the new completion system
> > who parses it? I mean, can I use those tags in my shell scripts
> > without using the new completion system?
> It is the compinit shell function which parses them. So it is just the
> new completion system and not anything hardcoded into zsh.

    OK, thanks :) BTW, the special parameters as 'words' and the
like, are too created and initialized by compinit (I mean, the new
completion system...)? $words doesn't seem to work, so I'm thinking
about using 'BUFFER' for command line parsing in order to call one of
the completion functions I need. Like _main_complete, but lots
simpler.

> You can use them in your own shell scripts if you really want. You might
> regret it if you start using the new completion system later though so
> it might be wiser to use a different word in your tags.

    I take note, thanks :))) Anyway I was asking just for avoiding
explicit calls to 'compdef', but I noticed that compdef is just a
function defined by compinit!, so I cannot use it. No problem anyway.

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/



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