Subject: | -default not used when enter doesn't pass -must validation |
Hi,
I've found that if you specify a -default, and a -must value which doesn't accept a plain carriage return, then the default won't be used and the validation error will be shown.
This seemed to be because _verify_input_constraints is called, and it sees that \r doesn't pass the constraint, so runs next INPUT, and goes back to user input again, having shown a $failed warning.
I'm afraid I don't have a patch for this, I've just had to quickly and dirtily move validation to above prompt in our usage.
Hope the report helps, anyway.
Gareth