Closed tfabris closed 5 years ago
Found the issue. My syntax for the Kill statement was correct, but the problem is that the scheme depended upon $BASHPID, and that variable was only introduced in Bash version 4.0, and Mac only has bash version 3.
To do: Figure out how to work around this.
Possible work-around here: https://stackoverflow.com/questions/9119885/how-to-get-the-process-id-of-a-bash-subprocess-on-command-line
The possible listed work-around didn't work for me. Closing issue as "cannot fix".
When deliberately inducing a failure in a subroutine which is intended to invoke the kill/trap method of exiting from a subroutine, I'm now getting a message saying that my syntax for Kill is wrong. Likely due to a difference between Mac OSX and Linux implementations of the Kill statement.
Repro Steps:
Output: