From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 908 invoked by alias); 30 Jul 2011 10:47:21 -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: 16163 Received: (qmail 18994 invoked from network); 30 Jul 2011 10:47:19 -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, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.210.41 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:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=UcbILWNeAmE/4jBAnJqyEyzpein1n9EW/Gn7rXvJYBE=; b=lDS94kt9KftV6aIEzN+QyP4KxJu+ut/YZJIjzcsJQZ6XV6UNF3N5Rz9Jt++PvEuti0 EFUXAcAK/SJ6uhEUH0AYGYmZVPJPeqNnTBUaDbFo5TuINH/q3lX0Yhy9s/+qSsBNDSx0 aGS+oprUMsJM+MraQAqdJfXcbU/mn2aZcELZo= MIME-Version: 1.0 In-Reply-To: References: From: =?UTF-8?B?SsOpcsOpbWllIFJvcXVldA==?= Date: Sat, 30 Jul 2011 12:40:15 +0200 Message-ID: Subject: Re: Safety check before expanding globs? To: zsh-users@zsh.org Cc: Richard Hartmann Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Richard, 2011/7/30 Richard Hartmann : > I regularly use > > =C2=A0quux /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? Just wondering=E2=80=A6 why would you hit =E2=80=9Ctab=E2=80=9D if it's not= for expansion? > Alternatively, is there a way to undo the expansion? Yes, the =E2=80=9Cundo=E2=80=9D function can do that. It's bound to ctrl+_ = by default, with emacs-like key bindings. Best regards, --=20 J=C3=A9r=C3=A9mie