zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: mapfile module - avoiding $(...) in completion functions
Date: Thu, 6 Jan 2000 10:45:15 +0100 (MET)	[thread overview]
Message-ID: <200001060945.KAA13577@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Andrej Borsenkow"'s message of Thu, 6 Jan 2000 10:32:54 +0300


Andrej Borsenkow wrote:

> > Since in the completion system we generally want to avoid the extra
> > processes needed for $(...), we would use caching for the printer
> > names there (and the function for the lp commands I just sent to
> > zsh-workers does that). And we would also make this nicer by
> > supporting the other mechanisms used throughout the completion system.
> >
> 
> May be it was discussed already, but is not mapfile module alternative to
> $(...)? We mostly need it to parse files content, as in $(</etc/printcap), and
> in this case we could just as well mmap the file.
>
> ...
> 
> Is there any system now-a-days without mmap support?

I'd like to know that, too. It's the reason why I haven't used mapfile 
in completion functions yet.

> And where the "real" $(...) is needed, we cannot cache it anyway (process list
> is an example).

And fonts, X-extensions, tar and YP-stuff are counterexamples.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~2000-01-06  9:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-06  9:45 Sven Wischnowsky [this message]
     [not found] <200001051437.PAA10986@beta.informatik.hu-berlin.de>
2000-01-06  7:32 ` Andrej Borsenkow
2000-01-06 20:19   ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200001060945.KAA13577@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).