From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28364 invoked from network); 21 Sep 1999 07:15:42 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 21 Sep 1999 07:15:42 -0000 Received: (qmail 1946 invoked by alias); 21 Sep 1999 07:15:29 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7973 Received: (qmail 1939 invoked from network); 21 Sep 1999 07:15:29 -0000 Date: Tue, 21 Sep 1999 09:15:27 +0200 (MET DST) Message-Id: <199909210715.JAA12748@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Bart Schaefer"'s message of Mon, 20 Sep 1999 16:36:07 +0000 Subject: Re: Chatty little precompiler for _arguments Bart Schaefer wrote: > On Sep 20, 10:43am, Sven Wischnowsky wrote: > } Subject: Re: Chatty little precompiler for _arguments > } > } Bart Schaefer wrote: > } > } > though it would be really useful if $param:q could emit quoting instead of > } > backslashes. > } > } I would be against this because its much less useful in cases where > } you stuff together string from multiple parameters. > > I'm not sure what you're getting at, there. I was thinking about uses as in `_path_files' where we have `$linepath${testpath:q}' (yes, this could be changed to `(q)' some time). The only thing I wanted to point out that having *only* the put-in-quotes style would be ugly in such cases (and I knew about the `${:-...}' trick, of course, but in contexts like `_pth_files' I would like to avoid the quotes altogether). And I didn't want to say that I would be against changing the behaviour of `:q' as long as we still have the possibility to get backslashes with the `(q)' flag. > On Sep 20, 2:15pm, Sven Wischnowsky wrote: > } Subject: PATCH: was: Re: Chatty little precompiler for _arguments > } > } This does that. `${(qqq)foo}' looks a bit silly doesn't it? > > The man who wrote > > ${(@)^${(@)${(@)${(@M)${(@ps:\n:j:\n:)${(@)${(@M)${(@f)$(${~words[1]} --help 2>&1)//\[--/ > --}:#[ ]#-*}//,/ > }}:#[ ]#--*}#*--}%%[, ]*}:#} > > wants to talk about "looks a bit silly"? ;-) Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de