Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh poor performances while reading and testing ?
- X-seq: zsh-users 24010
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: <zsh-users@xxxxxxx>
- Subject: Re: zsh poor performances while reading and testing ?
- Date: Fri, 5 Jul 2019 14:44:25 +0100
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190705134428euoutp0262950436f261b14be9c0158dc63eb63f~uhr1HtPRS2352423524euoutp02E
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1562334268; bh=Kl+El0QGBXsYVAVaFF0q9Mr4hx5QmWLzRFQfoAxJfp4=; h=Subject:From:To:Date:In-Reply-To:References:From; b=r8NUi38/G8lkUnYDZf+yUjoDP1G9ykW6EQ3LFNrl9tam2KNxznoF5wA8OZeDHgwkn 58eqAt+SgCbqfFAnbIe/h+MitBZDxysXnQThxoB9ew0UNcT2QFNGvwVm10L+uju38q CGHTguhLmUJGSPE2qfLlIljwAk7isMhtNwJrVoCY=
- 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> <CGME20190705133007epcas2p2742e7257ea0d044352a2ed152c30245e@epcas2p2.samsung.com> <20190705132842.GA21074@prometheus.u-strasbg.fr>
On Fri, 2019-07-05 at 15:28 +0200, Marc Chantreux wrote:
> > 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= ?
As Look and Learn magazine used to say, Find Out By Doing.
% read -r line
full line
^^ spaces here
% print -r -- "'$line'"
' full line '
% read -r line
full line
^^ spaces here
% print -r -- "'$line'"
'full line'
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author