zsh-workers
 help / color / mirror / code / Atom feed
* Ideas for new builtins
@ 2018-08-15  7:34 Sebastian Gniazdowski
  0 siblings, 0 replies; only message in thread
From: Sebastian Gniazdowski @ 2018-08-15  7:34 UTC (permalink / raw)
  To: Zsh hackers list

This should be interesting, I'm approaching near evil-fork attempt ;)
to create module with new builtins for basic tasks, and this includes
replacing pointers to an existing builtin with pointer to a custom one
;) Did this once, it's possible, there's the table with pointers to
the builtins.

But the evil-aspect will probably fail, I've browsed list of Zsh
builtins and there's really no idea to customize something. But I can
add new builtins. Has someone an idea for some basic builtin?

I thought about: `intovar'. I would copy most of `coproc' code to implement:

% intovar STRING { for i in 1 2 3; do grep $mywords[i] /etc/services; done; }

So flexibility of coproc's code supply methods connected with read-all
into-parameter. That's the best idea I currently have.

Has someone a dusty feature request for a builtin? Some idea? I could
implement it. The module will be part of Zplugin.

-- 
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-15  7:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-15  7:34 Ideas for new builtins Sebastian Gniazdowski

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).