in reply to Re: Documentation for die_bug
in thread Documentation for die_bug

The code in that SO answer seems to simply be a subset of the source of GNU Parallel, which I linked to before. There are several definitions missing from that snippet: debug, die_bug, wait_and_exit, plus several global variables. I don't think it's meant to be used as a standalone snippet. However, because it seems like those functions are mostly helpers, you could simply remove the calls to ::debug() and replace ::die_bug with die, and then the code seems to work for me (aside from some warnings about undef, although it seems GNU Parallel doesn't use warnings...).

Update: I've edited the StackOverflow answer to remove the dependencies on those two undefined functions, the code should now be standalone.