Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh poor performances while reading and testing ?
- X-seq: zsh-users 24011
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Marc Chantreux <eiro@xxxxxxxxx>
- Subject: Re: zsh poor performances while reading and testing ?
- Date: Fri, 5 Jul 2019 15:44:55 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=E5rz8TTcw1RW8KmgMG+p1hVFkEo8rYCmZiXnNhqzdBM=; b=Mr/vmJ//wBFgKxKEXceG5Tztr4PplWpIBPGdLgn7322/ORs7UCU5jCaBJ8vzEdNzDQ nU43fy9X8cX71bqGohOerxOys7bypgtY9sUr1RYMDlSQy5lbq3wGuC3NyOK2ytbTD/Vr 6/VA2ir/jxP3NQ2cGNi7l1L7ffPpTMnVV9bPqHoB45fDCaR/7uvLHkM7KVo0c6T56bUZ Dwp/TlydlDvk8jwYcsQd53wqyRK5+d1hj3XmD4w4kE6T6WTNe5oTR2bCmLtS1aawlcVD qXwGWGTKpJsCw0GGiVw2sbt65khAxlsj9WWH/cw0fS3DMTtqUlqyONwTNFoM6FsjSkV6 Ag9Q==
- In-reply-to: <20190705132842.GA21074@prometheus.u-strasbg.fr>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20190703135824.GA19289__20170.6622539618$1562162400$gmane$org@prometheus.u-strasbg.fr> <20190703142831.dc762dlvgaxxvbmr@chaz.gmail.com> <20190705132842.GA21074@prometheus.u-strasbg.fr>
On 7/5/19, Marc Chantreux <eiro@xxxxxxxxx> wrote:
> hello,
>
>> You'll probably find that they are all as inefficient for
>> non-seekable non-peekable input like pipes.
>
> actually my point making this bench was: don't use shell to write
> serious filters. however i really appreciate knowing why this difference
> exists. thanks a lot.
>
>> IFS= read -r line
>
> ok for -r but as long as i use only one variable, why is it important to
> use IFS= ?
% echo ' hello ' | IFS= read -r one; echo -E - _${one}_
_ hello _
% echo ' hello ' | read -r one; echo -E - _${one}_
_hello_
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author