Answer the question
In order to leave comments, you need to log in
How to prevent null input in bash command line option?
Tell me how to prohibit the input of an empty value when requested, for example, through the same read
? So that when entering an empty value, the user is prompted to enter a value or to abort the script?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question