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

Re: zsh custom pipeline handler



On Mar 31,  1:53pm, disarmer wrote:
}
} How can i define my own builtin, which can get pipeline, like zsh's
} builtin "repeat"?

You can't.  "repeat" isn't a builtin, it's a keyword, part of the
language syntax, and the shell language doesn't provide a way to add
new language elements at that level.   Even the zmodload system is
quite limited in what can be done in this regard.

Depending on exactly what you want to accomplish, you might be able
to use an alias to get close.  What is it that myrepeat would do?



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