Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Ideas for new builtins
- X-seq: zsh-workers 43298
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Ideas for new builtins
- Date: Wed, 15 Aug 2018 09:34:20 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=/VyYym7SLknA25XWQ8CjqfA2wMH1IYYFV7BQi67mN98=; b=fORSo7M9rHiJgbo98YeZAaJn8VfvygHrSTdaTB+8OVv7NJ62/RciovJEi+4/nRgcpr z6vWEwHPknaIcUUFA31+WHa1o7w9DOkQ/7BpdhxAjgkF6To2fHN9GJ9a+SdlpsPnEgCU uBTstraYH0d4FkIrLTaPiOuA5MJviE4bUEfoA0yQ/bcaCG9mFFnOLFKhyfpCTHNc+T99 n5m6n59br9M7I66OvRi5152qTpEgYJjOR9H3XrLdJbzqKMoxaIUmLzwUd8P315CCe0a4 KjUtEyok4a/FtRsv34rtuiwdXgHVPxjOWYkrWoWEGzoDca7i79I/YcketEhY3mCnf38u A8PA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author