Re: Curious case of arithmetic expansion

2017-04-24 Thread Steve Amerige
bility. However, any such addition would complicate the test matrix for shell behavior and should again be subject to very strong scrutiny and strong community desire for such a feature. I'm not sensing that this is the case for what you're describing.

Re: [Help-bash] Bash Trap: How to Get Line Number of a Subprocess with Non-Zero Status

2017-01-02 Thread Steve Amerige
mber of people. As it is, a workaround now is to use:     $(...) instead of:     (...) to get the expected behavior. But, this can mean some significant re-writing of code. Enjoy, Steve Amerige Server Science Incorporated Eggsh: A P

Re: [Help-bash] Bash Trap: How to Get Line Number of a Subprocess with N

2016-12-30 Thread Steve Amerige
I've updated the stackoverflow question with more info. I also tested: 1 #!/bin/bash 2 shopt -s extdebug 3 main() { 4 trap 'echo $LINENO' ERR 5 $(ex