Re: Test exit status misinterpreted in scripts when buit without job control

2016-08-05 Thread Dan Cross
On Fri, Aug 5, 2016 at 3:22 PM, Chet Ramey wrote: > On 8/4/16 5:04 PM, Dan Cross wrote: > > > Thanks for the report. I took a quick look at this, and it's not > disabling > > job control that does it: it's disabling both job control and nls. > > Disabling either one while leaving the

Re: Test exit status misinterpreted in scripts when buit without job control

2016-08-05 Thread Chet Ramey
On 8/4/16 5:04 PM, Dan Cross wrote: > Thanks for the report. I took a quick look at this, and it's not > disabling > job control that does it: it's disabling both job control and nls. > Disabling either one while leaving the other enabled doesn't produce this > error (which only

Re: Test exit status misinterpreted in scripts when buit without job control

2016-08-04 Thread Dan Cross
On Thu, Aug 4, 2016 at 2:36 PM, Chet Ramey wrote: > On 8/4/16 12:05 PM, Dan Cross wrote: > > Bash Version: 4.3 > > Patch Level: 30 > > Release Status: release > > > > Description: > > When bash is built without job control, shell scripts that use > > the 'test' builtin (e.g., via

Re: Test exit status misinterpreted in scripts when buit without job control

2016-08-04 Thread Chet Ramey
On 8/4/16 12:05 PM, Dan Cross wrote: > Bash Version: 4.3 > Patch Level: 30 > Release Status: release > > Description: > When bash is built without job control, shell scripts that use > the 'test' builtin (e.g., via '[') in conditionals may take the > wrong branch becuase t