From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10683 invoked from network); 22 Dec 2003 04:29:39 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 22 Dec 2003 04:29:39 -0000 Received: (qmail 20082 invoked by alias); 22 Dec 2003 04:29:19 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6949 Received: (qmail 19952 invoked from network); 22 Dec 2003 04:29:19 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 22 Dec 2003 04:29:18 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [216.27.190.146] by sunsite.dk (MessageWall 1.0.8) with SMTP; 22 Dec 2003 4:29:18 -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 UAA12791; Sun, 21 Dec 2003 20:29:15 -0800 Received: from phil by ceramic.fifi.org with local (Exim 4.22) id 1AYHgw-0000k1-GB; Sun, 21 Dec 2003 20:29:14 -0800 To: Bart Schaefer Cc: zsh-users@sunsite.dk Subject: Re: Defining commands to not evaluate certain metacharacters References: <1031221013206.ZM3220@candle.brasslantern.com> <87fzffvtk5.fsf@ceramic.fifi.org> <1031221065317.ZM3399@candle.brasslantern.com> Mail-Copies-To: nobody From: Philippe Troin Date: 21 Dec 2003 20:29:14 -0800 In-Reply-To: <1031221065317.ZM3399@candle.brasslantern.com> Message-ID: <87ptehh3vp.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, 5:38pm, Philippe Troin wrote: > } > } How hard would it be implementing a "noparse" precommand modifier? > > What does "noparse" mean? It's got to begin parsing before it can > recognize a precommand modifier. Even splitting into words at whitespace > is parsing, of a sort. > > Do backslashes still work? What about quotes of various flavors? Care > to predict every possible question of this kind that I might ask? I have no clue how it would work. I've just said I felt the need for such a thing at some point, namely while trying to avoid quoting when using zmv. > If there isn't _some_ syntax, you're just using "cat" as your shell; the > input can't be processed in any useful way. > > If you want to be able to define your own arbitrary syntax, you need a > language-definition language (like a YACC grammar). How hard would it > be to implement that? Let's not put yacc into zsh (yet). Phil.