From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10148 invoked from network); 21 Dec 2003 01:38:53 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 21 Dec 2003 01:38:53 -0000 Received: (qmail 1094 invoked by alias); 21 Dec 2003 01:38:41 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6937 Received: (qmail 922 invoked from network); 21 Dec 2003 01:38:40 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 21 Dec 2003 01:38:40 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [216.27.190.146] by sunsite.dk (MessageWall 1.0.8) with SMTP; 21 Dec 2003 1:38:39 -0000 Received: from ceramic.fifi.org (mail@ceramic.fifi.org [216.27.190.147]) by tantale.fifi.org (8.9.3p2/8.9.3/Debian 8.9.3-21) with ESMTP id RAA18954; Sat, 20 Dec 2003 17:38:36 -0800 Received: from phil by ceramic.fifi.org with local (Exim 4.22) id 1AXsYE-0001oQ-UX; Sat, 20 Dec 2003 17:38:34 -0800 To: Bart Schaefer Cc: zsh-users@sunsite.dk Subject: Re: Defining commands to not evaluate certain metacharacters References: <1031221013206.ZM3220@candle.brasslantern.com> Mail-Copies-To: nobody From: Philippe Troin Date: 20 Dec 2003 17:38:34 -0800 In-Reply-To: <1031221013206.ZM3220@candle.brasslantern.com> Message-ID: <87fzffvtk5.fsf@ceramic.fifi.org> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Philippe Troin Bart Schaefer writes: > On Dec 20, 1:39pm, Lloyd Zusman wrote: > } > } I want to define a set of commands that I can execute from the command > } line under zsh. > > This is very nearly a non-starter. The shell parses shell syntax, not > the syntax of some other language. > > You can get part of the way there with the "noglob" precommand modifier, > but that doesn't change the special meanings of parentheses, braces, or > redirections. How hard would it be implementing a "noparse" precommand modifier? I've also been wanting to use such a construct, for example when using the zmv contributed function. Phil.