▲ | westurner 3 days ago | ||||||||||||||||||||||||||||
Setting PS4 gets decent error reports with `set -x` (and `set -x -v`; `help set`). Here's an excerpt that shows how to set PS4 from a main() in a .env shell script for configuring devcontainer userspace:
This, too:
| |||||||||||||||||||||||||||||
▲ | kjellsbells 3 days ago | parent [-] | ||||||||||||||||||||||||||||
(I'm sure this is lovely Bash, but for all the people who rejected Perl for its modem line noise vibe...what do ya think of this?) As an aside, I actually wonder if Bash's caller() was inspired by Perl's. There is also Carp and friends, plus Data::Dumper when you not only need the stack trace but also the state of objects and data structures. Which is something that I don't think Bash can really do at all. | |||||||||||||||||||||||||||||
|