Re: bash-4.3.33 regexp bug

2015-03-06 Thread Chet Ramey
On 3/6/15 4:35 PM, Stephane Chazelas wrote: > 2015-03-06 11:43:24 -0500, Chet Ramey: >> On 3/5/15 12:36 PM, Greg Wooledge wrote: >>> On Thu, Mar 05, 2015 at 05:26:00PM +, Stephane Chazelas wrote: The bash manual only points to regex(3). So it's down to your system's regex library

Serious tab completion bug

2015-03-06 Thread Joseph Graham
Hi, I don't know what the etiquette is for using this mailing list but I hope it's OK to just get straight to the bug. *STEPS TO REPRODUCE* 1. run the following commands to get everything set up: $ touch hiya $ mkdir '$HOME' $ touch '$HOME/hiya' 2. Now to reproduce the bug, type: $ r

Re: bash-4.3.33 regexp bug

2015-03-06 Thread Stephane Chazelas
2015-03-06 11:43:24 -0500, Chet Ramey: > On 3/5/15 12:36 PM, Greg Wooledge wrote: > > On Thu, Mar 05, 2015 at 05:26:00PM +, Stephane Chazelas wrote: > >> The bash manual only points to regex(3). > >> > >> So it's down to your system's regex library (uses > >> regcomp(REG_EXTENDED)) which on rec

Re: bash-4.3.33 regexp bug

2015-03-06 Thread Chet Ramey
On 3/5/15 9:51 AM, Eduardo A. Bustamante López wrote: > On Thu, Mar 05, 2015 at 02:26:48PM +, Jason Vas Dias wrote: >> Good day list, Chet - >> >> I think this is a bug: >> ( set -x ; tab=$'\011'; s="some text: 1.2.3"; >> if [[ "$s" =~ ^some text:[\ $tab]+([0-9.]+) ]]; then >> echo "${B

Re: bash-4.3.33 regexp bug

2015-03-06 Thread Chet Ramey
On 3/5/15 12:36 PM, Greg Wooledge wrote: > On Thu, Mar 05, 2015 at 05:26:00PM +, Stephane Chazelas wrote: >> The bash manual only points to regex(3). >> >> So it's down to your system's regex library (uses >> regcomp(REG_EXTENDED)) which on recent GNU systems supports \s. > > I see. So it's a

Re: bash-4.3.33 regexp bug

2015-03-06 Thread Chet Ramey
On 3/5/15 9:26 AM, Jason Vas Dias wrote: > Good day list, Chet - > > I think this is a bug: > ( set -x ; tab=$'\011'; s="some text: 1.2.3"; > if [[ "$s" =~ ^some text:[\ $tab]+([0-9.]+) ]]; then > echo "${BASH_REMATCH[1]}"; > fi > ) > -bash: syntax error in conditional expression > -bash

[PATCH] loadables/mkdir: Fix 3 warnings

2015-03-06 Thread Jean Delvare
Fix the following 3 warnings when building mkdir loadable with -Wall: mkdir.c:55:59: warning: unused variable "um" [-Wunused-variable] int opt, pflag, omode, rval, octal, nmode, parent_mode, um; ^ mkdir.c:55:32: warning: variable "octal

Re: Memory leak in wait

2015-03-06 Thread Jean Delvare
Hi Chet, Le Thursday 05 March 2015 à 11:11 -0500, Chet Ramey a écrit : > On 2/28/15 5:29 AM, Jean Delvare wrote: > > > On Fri, 07 Nov 2014 08:24:07 -0500, Chet Ramey wrote: > >> On 11/7/14, 3:49 AM, Jean Delvare wrote: > >>> 2* If bash remembers the process statuses, how does one access the > >>>