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

2014-01-17 Thread Eduardo A . Bustamante López
> 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

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

2014-01-17 Thread Chet Ramey
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

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

2014-01-17 Thread Eduardo A . Bustamante López
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

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

2014-01-17 Thread Dan Douglas
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

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

2014-01-17 Thread Greg Wooledge
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

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

2014-01-17 Thread Chet Ramey
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

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

2014-01-17 Thread Chet Ramey
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

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

2014-01-17 Thread Greg Wooledge
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

Re: Including \t, \T or \A at beginning of PS1 causes line wrap issues

2014-01-17 Thread David C. Rankin
-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