Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Interactive search on the command line?
- X-seq: zsh-users 21049
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Interactive search on the command line?
- Date: Sat, 5 Dec 2015 10:00:13 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=blkQ3WvRWIYDadoGNknqvwiLbdw=; b=XpzrKh etJAWOn/NKkWmW5kvPCzmj5aHyBP22vmKDcLbiy9X8SKy3Jc6BYpzxK765cQ1Gn0 Wa2OvneulczASeeZqLqJbX1zmyEY6Au/7MDXNr/h8v0Mpc4wc39B5EZa7glVhfLR l7QskgAWgnqVmZ/rkxc5PvnWwQLaF3qX+XiS4=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=blkQ3WvRWIYDadoGNknqvwiLbdw=; b=Zj9rC tTE3VQMIiixmpK5GJAPCvCt8P67kbEFlnDCZoKZ1MVrmPFaUravWr68krA/sy9Um lv0IAUVgGt5Fi+sfMRy0fwxZrmqJV1lqNMWJM/cbfKu4nmLubsZfcFEs0jXf7ce+ uthTbTMa1kSwXJHZ6DomjlfvaYt86H7/sDPyF4=
- In-reply-to: <151203165950.ZM13362@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20151126080400.GA20074@linux.vnet.ibm.com> <565B723B.70900@gmail.com> <20151130031915.GD2504@tarsus.local2> <CAGjUN-TEPKNr3fKfUvL1JBtZN9y2jrw9m1kjstggEeR+12gjcA@mail.gmail.com> <20151203233926.GF1955@tarsus.local2> <151203165950.ZM13362@torch.brasslantern.com>
Bart Schaefer wrote on Thu, Dec 03, 2015 at 16:59:50 -0800:
> On Dec 3, 11:39pm, Daniel Shahaf wrote:
> } % () {
> } local haystack="$1"
...
>
> % () {
> local haystack=$1 needle=$2
...
> (I also removed all redundant quotes and braces, since the original
> would only work in native zsh emulation anyway.)
The quotes are not redundant; they are required for compatibility with
zsh-5.0.8 and older. (Those releases predate the upgrade of 'local' to
a reserved word, and, without the quotes, would perform word splitting
before the assignment.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author