This question already has answers here:
Closed 4 years ago.
I want to check if the user has given the script any arguments and if this is the case, the script should close.
if [ $@ = "" ]; then
exit
fi
is not working.