Re: segfault evaluating [[ $@ ]] when IFS is \t or \n and $1 == $IFS

2017-04-07 Thread Chet Ramey
On 4/4/17 7:54 PM, Grisha Levit wrote: > Given: > > set -- $'\t'; IFS=$1 A=$1 # or set -- $'\n' > > These all segfault (in different places with -DDEBUG) > > : ${x-$@} > [[ $@ ]] > : ${x-${A[@]}} > [[ ${A[@]} ]] Thanks for the report. This was a little bit tricker to fix than I thought it wo

Re: splitting/whitespace in expansions of ${*} vs ${*/}

2017-04-07 Thread Chet Ramey
On 4/4/17 3:29 PM, Grisha Levit wrote: > There are a few small regressions in the latest devel relative to the > previous two commits but they're all rather exotic. Again, sorry if this > is still WIP/too minor: > > CTLESC present in output (even with default IFS) > >$ set -- 1; unset var; pr

Re: while loop with extdebug + debug trap always returning 1

2017-04-07 Thread Chet Ramey
On 4/4/17 5:08 PM, nesro wrote: > > To have both commands similar, let's assume the while as this: > > while (( 1 > 2 )); do :; done > > Thanks for explaining me why it happen, but now I don't know why for cycle > works and while does not. When extdebug is enabled, the command is skipped if the

Re: bash 4.4 null byte warning!!

2017-04-07 Thread Chet Ramey
On 4/6/17 3:47 AM, emlyn.j...@wipro.com wrote: > Hi, > > > > We are trying to use the bash 4.4 downloaded from > http://ftp.gnu.org/gnu/bash/ on our RHEL 6.2 machine. > > But while using a script that has this command : > > FIND_RPM=`find /opt/RPM/components -type d -name enum-1.1.6-print0` >