bug-bash
[Top][All Lists]
Advanced

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

Re: quote removal not performed in arithmetic expansion


From: Christopher Yeoh
Subject: Re: quote removal not performed in arithmetic expansion
Date: Tue, 10 Jun 2003 14:43:11 +1000

At 2003/6/6 14:21-0400  cpr@cwru.edu writes:
> This doesn't mean what I think you think it means.  To make the bash
> behavior more clear, try enclosing the above expressions in double
> quotes instead of $((...)) (remembering to backslash-escape the double
> quotes in the second expression).  You'll see that the quoting characters
> are preserved by the double-quoting and passed thorough to the arithmetic
> evaluator.
> 
> Quote removal removes *unquoted* instances of `/', `'', and `"'.

I've been running a beta of a vsc-lite (posix commands/utilites) test
suite which identified the problem. Its subsequently been confirmed as
a test suite bug. Apologies for the bug report.

Chris
-- 
cyeoh@au.ibm.com
IBM OzLabs Linux Development Group
Canberra, Australia




reply via email to

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