Sample Header Ad - 728x90

Prompt for confirmation for every command

6 votes
1 answer
3102 views
I'm writing a pretty ad-hoc install script for some thing. No much control constructs, basically just a list of commands. I'd like the user to confirm each command before it gets executed. Is there a way to let bash do that, without prefixing every command with a shell function name?
Asked by MvG (4551 rep)
Apr 12, 2013, 01:36 PM
Last activity: Aug 24, 2023, 03:19 PM