Re: simple bug/compat question

2009-01-19 Thread Jan Schampera
Linda Walsh wrote: > Am running an older bash version and this may be fixed (assuming it > is a bug and I'm not confused...:-)) > > bash version = 3.2.39(20) > > This works: > 1)if [ -n "" -a 2 -gt 1 ] ; then echo one;fi > > This does not: > 2)if [[ -n "" -a 2 -gt 1 ]] ; then echo on

simple bug/compat question

2009-01-19 Thread Linda Walsh
Am running an older bash version and this may be fixed (assuming it is a bug and I'm not confused...:-)) bash version = 3.2.39(20) This works: 1) if [ -n "" -a 2 -gt 1 ] ; then echo one;fi This does not: 2) if [[ -n "" -a 2 -gt 1 ]] ; then echo one;fi Shouldn't 2 work equally w

Re: bash-3.2: Bad signal work in readline

2009-01-19 Thread Andreas Schwab
Roman Rakus writes: > diff -up bash-3.2/lib/readline/signals.c.rr bash-3.2/lib/readline/signals.c > --- bash-3.2/lib/readline/signals.c.rr2009-01-19 15:57:29.0 > +0100 > +++ bash-3.2/lib/readline/signals.c 2009-01-19 16:00:04.0 +0100 > @@ -111,11 +111,19 @@ static sigha

bash-3.2: Bad signal work in readline

2009-01-19 Thread Roman Rakus
It's possible to make bash locked up. It's done by bad signal handling in bash and/or readline. It may happened when bash/readline catch signal in any alloc call. I have changed readline to process signals only in safe point. This appears also in bash-4. I will attach a small reproducer (normal