Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Why sourcing a file is not faster than doing a loop with eval, zle -N
- X-seq: zsh-workers 41326
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Why sourcing a file is not faster than doing a loop with eval, zle -N
- Date: Mon, 19 Jun 2017 21:52:37 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1497905557; bh=XG0/bF9NQEcpJDyhf7OZkgQSpq9y0IdXZRo9VcVy4Qk=; h=Date:From:To:Subject:In-Reply-To:References; b=ah1NxT7VhOaJrUGBGbduZb6Lh61SoPpnrLtEtYrfmq8xHH97ucokutbu1TDJcbbV3 3ChPa7XUZD6gWYpQYuARn4QX8X116Hi+o2kCDQkMhsxnVKxU97LVWLZuIvinAVVNi0 ZrJWIRdff2mzjJE6tjdOREVpcG1iEiogTst3yNtEsBy1WAAdrS+uKa4o8FfnC+mXmg 6GkD6HATeXpoJm796vx5QiENubruWCerieOeNAWMQPWZiEOr/6vAhD1ZFuM/cnqDCz NlVoUZ3KwLN8116G4FvMDpTY9fPZgl6+mJeaaY/JeQCpc96cnfpTEQFgGcFCOAhJ2t v/CnVcIduXVzQ==
- In-reply-to: <20170619202835.7f207185@ntlworld.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <etPan.594513a8.516100cd.10b2e__10513.1716504276$1497699329$gmane$org@zdharma.org> <20170619122413.GA9294@chaz.gmail.com> <170619083116.ZM17323__41722.0601499595$1497886320$gmane$org@torch.brasslantern.com> <20170619161601.GB9294@chaz.gmail.com> <20170619202835.7f207185@ntlworld.com>
On Mon, 19 Jun 2017 20:28:35 +0100
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
> How about something like this? As far as I can tell, fgets is designed
> from the ground up as Gets Done Properly, so if you have it on your
> system it will work correctly. I can't think of a case where this
> wouldn't do the right thing --- fgets will read at most one line and if
> it does we were going to get the big STDIO overhead at that point
> anyway.
I know what the problem with it is --- we can't tell the difference
betwen a terminating '\0' and a '\0' that's part of the input stream.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author