> It's not understanding the problem, or the combination of things that
> causes it, but figuring out the right solution.
>
> Chet
I see, my mistake. I thought I explained it wrong so I wanted to make
it clear.
Thanks!
--
Eduardo Alan Bustamante López
On 1/17/14 2:30 PM, Eduardo A. Bustamante López wrote:
> On Fri, Jan 17, 2014 at 08:43:46AM -0500, Chet Ramey wrote:
>> On 1/16/14 6:46 PM, Eduardo A. Bustamante López wrote:
>>> The DEL ($'\177') character does not behave like the other control
>>> characters when used with the regex operator insi
On Fri, Jan 17, 2014 at 08:43:46AM -0500, Chet Ramey wrote:
> On 1/16/14 6:46 PM, Eduardo A. Bustamante López wrote:
> > The DEL ($'\177') character does not behave like the other control
> > characters when used with the regex operator inside the test keyword.
>
> This has to do with the expansio
On Fri, Jan 17, 2014 at 8:07 AM, Greg Wooledge wrote:
> On Fri, Jan 17, 2014 at 08:53:07AM -0500, Chet Ramey wrote:
>> On 1/17/14 8:01 AM, Greg Wooledge wrote:
>> > I would expect [[ x =~ yx ]] to fail (return 1) every time.
>>
>> There is a question about the correct behavior when y == '\', since
On Fri, Jan 17, 2014 at 08:53:07AM -0500, Chet Ramey wrote:
> On 1/17/14 8:01 AM, Greg Wooledge wrote:
> > I would expect [[ x =~ yx ]] to fail (return 1) every time.
>
> There is a question about the correct behavior when y == '\', since the
> backslash is special to pattern matching. When matc
On 1/17/14 8:01 AM, Greg Wooledge wrote:
> On Thu, Jan 16, 2014 at 03:46:38PM -0800, Eduardo A. Bustamante López wrote:
>> [[ $'\a' =~ $'\a' ]] -> 0
>> [[ $'\a' =~ $'\\\a' ]] -> 0
>> [[ $'\a' =~ $'\\[\a]' ]] -> 1
>> ---
>> [[ $'\177' =~ $'\177' ]] -> 0
>> [[ $'\177' =~ $'\\\177' ]] -> 1
>> [[ $'\17
On 1/16/14 6:46 PM, Eduardo A. Bustamante López wrote:
> The DEL ($'\177') character does not behave like the other control
> characters when used with the regex operator inside the test keyword.
This has to do with the expansion of $r and that $r includes a backslash.
When combined with the inter
On Thu, Jan 16, 2014 at 03:46:38PM -0800, Eduardo A. Bustamante López wrote:
> [[ $'\a' =~ $'\a' ]] -> 0
> [[ $'\a' =~ $'\\\a' ]] -> 0
> [[ $'\a' =~ $'\\[\a]' ]] -> 1
> ---
> [[ $'\177' =~ $'\177' ]] -> 0
> [[ $'\177' =~ $'\\\177' ]] -> 1
> [[ $'\177' =~ $'\\[\177]' ]] -> 1
> Notice that only $'\1
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 01/17/2014 12:17 AM, Chris Down wrote:
> +Cc: bug-bash
>
> Please do not take discussions off-list, it decreases the value of
> conversations for future readers.
Chris, I apologize, I should have caught the reply-address was yours and not the
list