Skip to content

Comment on Show HN: Run unknown shell script with a line-by-line confirmation prompt

Comments

You can also do this with bashdb which is possibly also a more robust solution.

Why isn't this solution robust? Seems like using the DEBUG trap would be very robust.

Yes, 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.

Seconded. 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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.