I trying to check range regarding to the $# in bash, but I get unexpected result.
I write the following code:
#!/bin/bash
if [[ $# < 2 && $# > 3 ]]; then
echo "error"
fi
And I trying to running the script such: ./s 1 2 3 4 5 6 but I don't get the "error" message.
What is the reason of that?