How do you check if
$* is empty? In other words, how to check if there were no arguments provided to a command?
To check if there were no arguments provided to the command, check value of
If you want to use
The second approach is not preferable because in positional parameter expansion
On the other hand
For more details
If you're only interested in bailing if a particular argument is missing, Parameter Substitution is great: