Hacker News new | ask | show | jobs
by gkfasdfasdf 320 days ago
or even use caller to print a full backtrace: https://news.ycombinator.com/item?id=44636927
1 comments

That's neat, but if your bash script needs a backtrace it should not be a bash script. To each their own though.
My bash scripts don't "need" a backtrace, but it sure is nicer than not having one