Tagged Questions
25
votes
4answers
1k views
Better way of accepting variations of ‘Yes’ from a shell prompt
Usability testing of a shell script I wrote found that people had different expectations on how to answer a question that expected ‘yes’ as the answer. See variations in the below code example.
...
3
votes
1answer
86 views
Prompt for confirmation for every command
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 ...
2
votes
1answer
195 views
Prompting for input in post-install script in dpkg
I am writing a debian package and need to prompt the user for some textual details(default password, etc), as well as some one-of-many choices("Pick one of the following: foo, bar"). Will shell ...