From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22097 invoked by alias); 22 Jan 2015 17:17:55 -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: 19768 Received: (qmail 25194 invoked from network); 22 Jan 2015 17:17:43 -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.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=Kc1larcG c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=YNv0rlydsVwA:10 a=EJ0WGoZtu5bLPJJnKtYA:9 a=CjuIK1q_8ugA:10 a=Jp1aJmV1TRYA:10 a=79sv8G4a3VoA:10 a=q4EH5vtMeoYA:10 From: Bart Schaefer Message-id: <150122091734.ZM11366@torch.brasslantern.com> Date: Thu, 22 Jan 2015 09:17:34 -0800 In-reply-to: Comments: In reply to zzapper "refering to 2nd from last history parameter?" (Jan 22, 12:18pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: refering to 2nd from last history parameter? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Jan 22, 12:18pm, zzapper wrote: } } ls !$ last parameter of previous command } } echo a b c d e f g h } } I don't think I can grab 'g' without counting left to right Not exactly pretty, but in two steps: !!:-:p echo !!:$