Re: DEL character treated specially when preceded by a backslash when used in the RHS of the regex operator ([[ $'\177' =~ $'\\\177' ]])

2014-01-18 Thread Chet Ramey
On 1/17/14, 9: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 the >> backs

Re: DEL character treated specially when preceded by a backslash when used in the RHS of the regex operator ([[ $'\177' =~ $'\\\177' ]])

2014-01-18 Thread Chet Ramey
On 1/17/14, 2:30 PM, Eduardo A. Bustamante López wrote: > So, in short, there are three issues here: > > 1) Why is $'\177' handled differently (just that non-graphic > character, in comparison to the other non-graphic)? I covered this earlier. > 2) What's the reason of the incompatible behavior