From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9279 invoked by alias); 30 Jul 2011 12:36:31 -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: 16164 Received: (qmail 4158 invoked from network); 30 Jul 2011 12:36:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.212.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=dqzxlaWBX5yZzkt35tSC6k5C4YIe1eGjwYXUrfXyFFc=; b=LN86jXwuCwvfpsscYSxUlHxoo1G4WDxndVdu4Hhx28Dppao/hrCRZMeB0VqS0QLd/2 reb93d1/u4EJja0SwmZUnHGoKPlLXdgV+gAWFHeaJkOD4+sJuEckOxSD2tefkqN8Yyxs vqz/a75c2DYS/C0YewNr9R1Xib6jiR3m6GR6o= MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 30 Jul 2011 14:28:13 +0200 Message-ID: Subject: Re: Safety check before expanding globs? From: Mikael Magnusson To: Richard Hartmann Cc: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 On 30 July 2011 00:41, Richard Hartmann wrote: > Hi all, > > I regularly use > > quux /foo/bar/* > > to expand all files, do some modifications and then hit enter. Is > there any way to have zsh ask for confirmation (or require two tabs) > before expanding said list? Alternatively, is there a way to undo the > expansion? You might like the list-expand binding. Contrary to the name it doesn't expand anything, it just lists the result of a glob below the prompt. -- Mikael Magnusson