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

Re: Is this an orthodox use of zstyle?

    Hi Bart :)

 * Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> dixit:
> }     A last point: maybe I'm missing something, but I think that the
> } entire zstyle thing can be done with parameters (with exception of
> } the -e option, maybe).
> Yes, you could write "zstyle" as a shell function.  There are a number
> of parts of the completion system that could be written as functions,
> but that were coded (or re-coded) in C for speed.

    I'm not going to do that, anyway ;)) I was just guessing. The
fact is that although you can implement a bunch of builtins as shell
code, it's usually faster, safer, etc... to write them in C.

> there's something else you could use to store state, by the way. 
> Even slower than styles, but sharable across multiple shells.

    What's that? ;))

    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