Page 13 of 23
ask
Ask a question to the user
Arguments
$1 | Question |
Returns
Always 0Displays
message to stderr, answer to stdoutyn_question
Asks a 'yes/no' question, gets answer, and return yes/no code
Works at least for questions in english, french, and german : Accepts 'Y', 'O', and 'J' for 'yes' (upper or lowercase), and anything different is considered as 'no'
If the $sf_forceyes environment variable is set, the user is not asked and the 'yes' code is returned.
Arguments
$1 | Question string |