From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20385 invoked by alias); 23 Jan 2012 22:32:27 -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: 16742 Received: (qmail 27443 invoked from network); 23 Jan 2012 22:32:25 -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 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <120123143209.ZM29426@torch.brasslantern.com> Date: Mon, 23 Jan 2012 14:32:09 -0800 In-reply-to: <20120123205150.27077e4eea9d7be1e632508f@users.sf.net> Comments: In reply to "Yuri D'Elia" ""Literal" command execution" (Jan 23, 8:51pm) References: <20120123205150.27077e4eea9d7be1e632508f@users.sf.net> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "Yuri D'Elia" , zsh-users@zsh.org Subject: Re: "Literal" command execution MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Jan 23, 8:51pm, Yuri D'Elia wrote: } } command log [free text follows] } } I want to reduce escaping to the bare minimum. Dollars are not really } a problem, but I discovered myself to escape '<' '>' and '!' too } often. } } Of course I am already aware of both noglob and nocorrect, but I would } need something more extreme, as in "feed whatever text, including #, } etc, that follows the command as arguments". Have a look at Functions/Zle/url-quote-magic, which relies on being able to substitute itself for the self-insert ZLE builtin. You can skip over the introductory comments about zstyles and focus on the function at the end of the file, particularly the way it analyzes $KEYS and modifies $LBUFFER. A difficulty with this technique is that it becomes difficult to cascade it with other similar techniques; ZLE doesn't have emacs' concept of "advice" around a keybinding.