bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inconsistent quote and escape handling in parameter expansion


From: Ondrej Oprala
Subject: Inconsistent quote and escape handling in parameter expansion
Date: Wed, 21 Nov 2012 11:22:51 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121029 Thunderbird/16.0.2

Hi all,
I've attempted to write a patch fixing an issue mentioned here http://lists.gnu.org/archive/html/bug-bash/2012-02/msg00106.html a while back. It basically wraps parameter expansion around a new context of it's own, using it to make another condition for single-quote substitution. While it's by no means perfect, it makes parameter expansion a bit more sane IMHO. The change should eventually have a new compat option, since it breaks a few test cases (I suppose making it fully backwards-compatible is impossible). I'd really appreciate some comments and advice on the patch's approach and/or necessary improvements.

Thanks,
Ondrej

Attachment: DIFF
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]