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

2017-04-04 Thread nesro
Hi Martin, thanks for reply. > > # run an empty for cycle. we can see from the output that bash ran :, then > > # false and stopped to it. which is the right behavior > > for (( :; false; )); do :; done > > This is a syntax error. 'for' takes arithmetic expressions, not shell > commands. Sorry, m

while loop with extdebug + debug trap always returning 1

2017-04-04 Thread nesro
Hi bash-bug, I think I've found a bug in bash. I'm working on a project that skips** all commands that are going to be executed. I achieved this by a combination of a debug trap and extdebug. Once, for the entire list of commands to be executed, I'm going to execute it via eval from the debug tra