I have a script and want to ask the user for some information, the script cannot continue until the user fills in this information. The following is my attempt at putting a
To elaborate on @Marc B's answer,
$ passwd $ while [ $? -ne 0 ]; do !!; done
Is nice way of doing the same thing that's not command specific.