From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23558 invoked by alias); 20 Feb 2014 23:33:59 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32421 Received: (qmail 22198 invoked from network); 20 Feb 2014 23:33:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,UNPARSEABLE_RELAY autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d201312; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=db+VjnPu3AklqGz1a9mGlZXK6eQ9ILbMAhTeQWinIpg=; b=Nk5xeFadRhnXqlRk96tg2U5LdkDF8ORjEXjeUVa8NE6U0U4+duYR+weJdCGi6OvLTR5tWj4nzKKIT/eMYdv30u9+is884n4ruDVhnGThMBcA0KI8qfqyDjqGiobODBK3P+gefi4u2VM2dkpLzLm2GYxrqlpSsKXVMXNVX3Z6qMAsAWh49rtbn3SB5LOLxBAzrxmkzi2zLDnxg1HV; Date: Thu, 20 Feb 2014 15:33:40 -0800 From: Phil Pennock To: Dave Yost Cc: zsh-workers@zsh.org Subject: Re: setopt temporarily? Message-ID: <20140220233340.GA25786@redoubt.spodhuis.org> Mail-Followup-To: Dave Yost , zsh-workers@zsh.org References: <8458DC5E-E862-462A-BFCF-FFA2BDEB29C8@yost.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8458DC5E-E862-462A-BFCF-FFA2BDEB29C8@yost.com> OpenPGP: url=https://www.security.spodhuis.org/PGP/keys/0x3903637F.asc On 2014-02-20 at 13:06 -0800, Dave Yost wrote: > It would be nice to be able similarly to temporarily set an option. > > Perhaps setopt could terminate its arg parsing with a - or -- like this: > > setopt pushdSilent - pushd Desktop > > Or maybe there needs to be a more general syntax for changing anything in zsh only for the following command. Anonymous function. (){ setopt localoptions xtrace; ls } -Phil