From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26110 invoked by alias); 15 Aug 2018 07:34:39 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43298 Received: (qmail 26879 invoked by uid 1010); 15 Aug 2018 07:34:39 -0000 X-Qmail-Scanner-Diagnostics: from mail-oi0-f50.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.218.50):SA:0(-1.9/5.0):. Processed in 3.977885 secs); 15 Aug 2018 07:34:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=/VyYym7SLknA25XWQ8CjqfA2wMH1IYYFV7BQi67mN98=; b=XGr8EaUcpEosDMM+YlDfF6SAUGRFjMCcnhreR4XgPzLnzGIkw35dXh14tlTYxgktvk ka5j6wX+0/RH3F5jrPte54313+N8cw8mGCJg/g1asvzNclTuhKOTuqEzw4i5gK2Xy7vh 5fD0dSIsmnEia0Cs4MX3Jv57vWCeNPBC8GgwX3gEdRGxaw6dJFFXEEHii7I++82W1Myr bkIxQ7ytC00OrSYvoeIRD1xAPw/zsm8X1QG62q1B329r3SV3TB8RhGmB1dnwz8kCic6M 6OdONEkgZqyeFSp0pSXKsUXhjNj5IlLded78IbxYiNeGjzKFlMyQjYnViAh6W5PoG6OD 5URQ== X-Gm-Message-State: AOUpUlHXnJW6fmiUzOCzbJsb41maU0NweckaiwMeojh5/PxQA0KAfcKa W4dGQLRiCQkdlAGMTLpSYB3NMtauczp8qUPPuYeXug== X-Google-Smtp-Source: AA+uWPyW+wP9sahDoFO6079XwYDmWnxJ4dPhHjWADkWLgKe1NBf+zYldM9Fe9nOJx7IDCMb49KvxJc0h1TKMB5HL9qg= X-Received: by 2002:aca:df42:: with SMTP id w63-v6mr24623925oig.295.1534318472474; Wed, 15 Aug 2018 00:34:32 -0700 (PDT) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Wed, 15 Aug 2018 09:34:20 +0200 Message-ID: Subject: Ideas for new builtins To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" 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