From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16544 invoked by alias); 23 Jan 2012 19:52:15 -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: 16740 Received: (qmail 26676 invoked from network); 23 Jan 2012 19:52:13 -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=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at m.gmane.org designates 80.91.229.12 as permitted sender) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Yuri D'Elia Subject: "Literal" command execution Date: Mon, 23 Jan 2012 20:51:50 +0100 Message-ID: <20120123205150.27077e4eea9d7be1e632508f@users.sf.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: bgx-irt.net.eurac.edu X-Newsreader: Sylpheed 3.2.0beta5 (GTK+ 2.24.8; x86_64-pc-linux-gnu) Hi everyone. I'm trying to reduce some typing here, as usual ;). I have a command line logger that allows free text as its main arguments (random example: taskwarrior). A typical example might be: 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". Is there any way to achieve that? Maybe by some rewriting trick?