3 ms·
You can also do this with bashdb which is possibly also a more robust solution.
by opk 5y ago
You can also do this with bashdb which is possibly also a more robust solution.
- e40 5y agoWhy isn't this solution robust? Seems like using the DEBUG trap would be very robust.
- qiqitori 5y agoSeconded. It's crazy that so few people seem to know about bashdb. I don't know of many other languages that are commonly used without using a debugger.
- tessellated 5y agoYes, I was instantly reminded of the time I implemented the core functionality of the 'time' command in shellscript, only to find out about it months later.