zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@berkom.de>
To: zsh-workers@sunsite.dk
Subject: Re: problem with quoting in completion function
Date: Tue, 16 Apr 2002 09:59:55 +0200	[thread overview]
Message-ID: <15547.55803.189771.469484@wischnow.berkom.de> (raw)
In-Reply-To: <1018728981.6553.7.camel@localhost.localdomain>


Borsenkow Andrej wrote:

> 
> This applies to 4.0.4 as distributed by Mandrake.
> 
> I spent some time trying to understand why the following (suggested by
> Sven) does not work:
> 
>  compset -P "*,"
>  all_sources=( ${all_sources:#(${~IPREFIX//,/|})} )

Bart already suggested using foo=( ${foo:#(${(Q)~IPREFIX//,/|})} ),
which works for me, even inside quotes etc., so nothing new here.

> ...
> 
> If this quoting is intentional it does not seem to be described in
> documentation. But I still do not like it, it comes unexpected enough.
> It makes it impossible to simply  compare strings.

What do you mean by `unexpected'? It has always been this way (module
a couple of bugs, as you know, having been here all the time ;-). And
the string is moved from $PREFIX to $IPREFIX without being changed, so
what could be more expectable?

And maybe you remember, that all this quoting stuff (which I won't
touch again without better reasons) always was a bit of a compromise,
being a very complicated matter -- nowadays even with the possibility
of nested quoting levels and whatnot. And still, it's cleaner now than
it was in previous stable versions.


Bye
  Sven

-- 
Sven Wischnowsky                          wischnow@berkom.de


      parent reply	other threads:[~2002-04-16  8:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-13 20:16 Borsenkow Andrej
2002-04-13 20:23 ` Borsenkow Andrej
2002-04-14  5:03   ` Bart Schaefer
2002-04-16  7:59 ` Sven Wischnowsky [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15547.55803.189771.469484@wischnow.berkom.de \
    --to=wischnow@berkom.de \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).