Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: Patterns in parameter substitution and quoting weirdness
- X-seq: zsh-workers 12663
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "ZSH workers mailing list" <zsh-workers@xxxxxxxxxxxxxx>
- Subject: RE: Patterns in parameter substitution and quoting weirdness
- Date: Wed, 16 Aug 2000 16:21:55 +0400
- Importance: Normal
- In-reply-to: <000901c0077a$fbc15590$21c9ca95@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
> bor@itsrm2% foo[a\?]=a\?_val
> bor@itsrm2% print ${(v)foo[(I)a?]}
> bor@itsrm2% print ${(v)foo[(I)a\?]}
> <= ... it is quoted by \ or '...'
Sorry, the problem is, of course, that I expect it to print `a?_val'.
>
> bor@itsrm2% bar='a?b'
> bor@itsrm2% print ${bar/a\?/ZZ}
> ZZb <= sorry? While I can understand it, why it differs from the subscript?
> bor@itsrm2% print "${bar/a?/ZZ}"
> ZZb <= if the above is correct, this is correct as well
Again, sorry - this is of course correct IF zsh behaves correctly and quotes
`?' and not treats it as glob in both cases. I cannot devise test to check it
currently.
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author