From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7641 invoked by alias); 5 Dec 2015 10:00:22 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21049 Received: (qmail 8972 invoked from network); 5 Dec 2015 10:00:19 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 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= X-Sasl-enc: bvg9uU+Qtm7jormr24L2hxfZ4/UIyoLhpmJdq8QM4cWG 1449309616 Date: Sat, 5 Dec 2015 10:00:13 +0000 From: Daniel Shahaf To: zsh-users@zsh.org Subject: Re: Interactive search on the command line? Message-ID: <20151205100013.GC2092@tarsus.local2> References: <20151126080400.GA20074@linux.vnet.ibm.com> <565B723B.70900@gmail.com> <20151130031915.GD2504@tarsus.local2> <20151203233926.GF1955@tarsus.local2> <151203165950.ZM13362@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <151203165950.ZM13362@torch.brasslantern.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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.)