From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12760 invoked by alias); 18 Dec 2009 23:12:42 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 27532 Received: (qmail 13901 invoked from network); 18 Dec 2009 23:12:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,SPF_HELO_PASS autolearn=ham version=3.2.5 Received-SPF: pass (ns1.primenet.com.au: SPF record at alea.gnuu.de designates 83.246.114.63 as permitted sender) X-DKIM: Sendmail DKIM Filter v2.5.2 uucp.gnuu.de ED203488044 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gnuu.de; s=banki; t=1261177945; i=@alea.gnuu.de; bh=er7COMyZN5+849hqkB05fBrJNo0R0tPHe Ub0C6fFDpM=; h=To:From:Subject:Date:Message-ID:References: Mime-Version:Content-Type:Content-Transfer-Encoding:Sender; b=PAvt RnFrDOC/dvYvPbPk1EtoG5Iwn3c8R8VIDZnUIU54aYf3uuJzNfyyY34CbWHGvZgtTF7 IWfx5TkTtjn4H0d0em80/X/ELB4QA2ptwrdwB0NXvHKDNi05EKDdbPbgFsguGrjyISI QAoXWRiGoUOSV7GcanSnwKvV963tkcQ08= To: zsh-workers@zsh.org Path: not-for-mail From: =?UTF-8?Q?J=C3=B6rg?= Sommer Newsgroups: local.mailinglist.zsh Subject: Re: run-help as a widget Date: Fri, 18 Dec 2009 16:59:27 +0000 (UTC) Message-ID: References: <20091216115900.45764c25@news01> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: alea.gnuu.de 1261155567 10407 192.168.0.5 (18 Dec 2009 16:59:27 GMT) X-Complaints-To: usenet@alea.gnuu.de User-Agent: slrn/pre1.0.0-11 (Linux) Sender: news Hallo Peter, Peter Stephenson wrote: > On Mon, 7 Dec 2009 01:57:10 +0100 > Jörg Sommer wrote: >> I know, this solution is a dirty hack, but it's quick. The better way is >> to fix zsh to call run-help with the whole commandline where the alias >> gets expanded and this commandline gets passed to the second run-help >> call. > > I've been using this for a while, it's perhaps time something along these > lines got included in Functions/Zle. I was a bit surprised to find I > hadn't. > > With this it would be worth upgrading run-help and helpers to check if > there's already a full command line there, and to advance past precommand > modifiers. I thought I'd done some of this, too, but maybe not... > I might simply have been thinking of expansion of aliases. > > By the way, note this quotes all buffer words: > > ls foo; rm -rf ~h > > is safe even if it may not do quite what you actually want, which is quite > hard to guess. Isn't it possible to get the position where h was hit or the prefix and the suffix of the command? I would like to get help for true in this situation: % for h in $hosts; do ssh $h trueh; done Bye, Jörg. -- Die am Lautesten reden, haben stets am wenigsten zu sagen.