From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13770 invoked by alias); 16 Mar 2015 06:27:17 -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: 20019 Received: (qmail 29063 invoked from network); 16 Mar 2015 06:27:05 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=YS/932J3T/0FuQwo/cFR5Ca7dj8YQ4q7ffUrEenMGHM=; b=O6zj+3U6rqn9vryMPl468yzkJzZPdxD7jLDeHD1WBflswLQA7ehJ7K0Xbc4cb0sgt4 pEfzJgdjPx1+HIPb8WUrfn+UaIfiE+X7mY/EqLNQvLeqO/NdGP5Qv5xahCO7DgijnaJY e4AsNvNwEQ2050nAoiZiSqQh5OvuTVHc6cjZ3cqHgnGXHiuLq9Cj3BSQqT3LDh7hU3Wa RYxzh5okVgGtlKyzgcGDFHG6NS2/wgtodydyK+yBLBgkvmecmWpq0gy8XtmfBKjiK72I +LRfnQOcwHRX61PwXat+kSJyClOYyxikZb44o3LCKn++eYLTOIsxrkND6tKd1ZImsQ+I gqTg== X-Gm-Message-State: ALoCoQnI9gEzyzcOWnXLHke0AlOuCG6xzr/G88Y27cxQavC+2P1qWgCTyQqNuY14lkgIVA+u2mDP X-Received: by 10.202.214.21 with SMTP id n21mr12499992oig.54.1426487218391; Sun, 15 Mar 2015 23:26:58 -0700 (PDT) From: Bart Schaefer Message-Id: <150315232654.ZM1415@torch.brasslantern.com> Date: Sun, 15 Mar 2015 23:26:54 -0700 In-Reply-To: <20150316041135.GC2795@localhost.localdomain> Comments: In reply to Han Pingtian "Re: How to get 'fc' context?" (Mar 16, 12:11pm) References: <20150314234403.GA2795@localhost.localdomain> <150314183802.ZM26315@torch.brasslantern.com> <20150315213935.GB2795@localhost.localdomain> <150315173022.ZM28469@torch.brasslantern.com> <20150316041135.GC2795@localhost.localdomain> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: How to get 'fc' context? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 16, 12:11pm, Han Pingtian wrote: } Subject: Re: How to get 'fc' context? } } On Sun, Mar 15, 2015 at 05:30:22PM -0700, Bart Schaefer wrote: } > Try for example: } > } > % fc -e '() { print echo $zsh_eval_context } >|' } > echo toplevel fc shfunc } > toplevel fc shfunc } > % } Thanks. But what does the '>|' mean here, please? Sorry, this example might be clearer: fc -e '() { print echo $zsh_eval_context >| $1 }' "fc -e" constructs the editor command by appending a temporary file name to the argument string and then "eval"-ing it. So ending the string with ">|" means to clobber that file (in the no_clobber option sense).