Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: parameter and quoting (was: Re: Completion problems.)



Sven Wischnowsky wrote:
> This is the solution that makes errors be ignored, because I have to
> ask first: we could easily add another flag that turns on error-
> checking. OR should error-reporting be the normal case and we should
> have a flag to turn it off? For modifiers we could have a new modifier 
> that can be combined with `Q' a la `g' and `f', e.g. `$a:EQ' or
> something like that. And with respect to the flag: this could be made
> to work for things like `${...%...}', too.

Since this is mainly for parameters, it might be better just to alter the
version with flags.  Probably it shouldn't report an error normally.

> Btw. something like `${foo%(}'
> currently gives me a non-zero return status but no error message --
> even though there seems to be some extra code for it -- I haven't
> investigated any firther yet, but this seems wrong, doesn't it?

The behaviour of BAD_PATTERN is a bit inconsistent:  sometimes the option
is respected, sometimes it isn't, sometimes bad patterns aren't reported at
all.  There's probably quite a lot wrong.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy



Messages sorted by: Reverse Date, Date, Thread, Author