From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12551 invoked from network); 20 Sep 1999 16:43:38 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 20 Sep 1999 16:43:38 -0000 Received: (qmail 6391 invoked by alias); 20 Sep 1999 16:43:29 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7962 Received: (qmail 6384 invoked from network); 20 Sep 1999 16:43:27 -0000 From: "Bart Schaefer" Message-Id: <990920163607.ZM12885@candle.brasslantern.com> Date: Mon, 20 Sep 1999 16:36:07 +0000 In-Reply-To: <199909200843.KAA06289@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: Chatty little precompiler for _arguments" (Sep 20, 10:43am) References: <199909200843.KAA06289@beta.informatik.hu-berlin.de> <199909201215.OAA07256@beta.informatik.hu-berlin.de> In-Reply-To: <199909201215.OAA07256@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "PATCH: was: Re: Chatty little precompiler for _arguments" (Sep 20, 2:15pm) X-Mailer: Z-Mail (5.0.0 30July97) To: Sven Wischnowsky , zsh-workers@sunsite.auc.dk Subject: Re: Chatty little precompiler for _arguments MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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. With 7951 applied, compare: print -R ${(q):-"$histchars $WORDCHARS $SPROMPT $TIMEFMT"} print -R ${(qq):-"$histchars $WORDCHARS $SPROMPT $TIMEFMT"} print -R ${(qqq):-"$histchars $WORDCHARS $SPROMPT $TIMEFMT"} 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"? -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com