From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 776 invoked by alias); 25 Feb 2012 19:03:43 -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: 16789 Received: (qmail 11655 invoked from network); 25 Feb 2012 19:03:42 -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=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.212.171 as permitted sender) Received-SPF: pass (google.com: domain of damien.thebault@gmail.com designates 10.216.137.84 as permitted sender) client-ip=10.216.137.84; Authentication-Results: mr.google.com; spf=pass (google.com: domain of damien.thebault@gmail.com designates 10.216.137.84 as permitted sender) smtp.mail=damien.thebault@gmail.com; dkim=pass header.i=damien.thebault@gmail.com 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=DhZICTxm5Ior84qDYcs+fi4IZpBAjFp53BhyByYBOw8=; b=u8iXvLBTixhVBiS4HPLevXMWjkD28dGd49ZYeUnr5Rwe70NPjm68n2bqqSxWWko19m NRDuzUHZljLRs7GDF0CaPa14WrfX+OwgNLByzLPit4H5P7r2ZqNZbnQIlGW5dXuMFK1H 2iWWcMVHc6eguTVX+V6k+yjzhdRjTeQZJR6w4= MIME-Version: 1.0 In-Reply-To: References: <20120225182450.GA31597@solfire> Date: Sat, 25 Feb 2012 20:03:35 +0100 Message-ID: Subject: Re: s/pattern/pattern/g on the commandline ? From: =?UTF-8?Q?Damien_Th=C3=A9bault?= To: Moritz Bunkus Cc: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 Simply pressing tab at the end of the line instead of enter will replace the command with the changed line without submitting it. On Sat, Feb 25, 2012 at 19:46, Moritz Bunkus wrote: > Hey, > > while we're at it: is there a way to do history expansion without > actually submitting the modified entry? Meaning I would like to verify > that my regex fu was strong enough to produce the correct command > before submitting it. "!!:gs/what/ever" executes the command directly > if I'm not mistaken. > > Kind regards, > mo -- Damien Thebault