The title might have been: “don’t be afraid of statistics, try! (even if you don’t find the answer in Google)” or “ If Santa would have sorted all his presents by color of the rainbow, what is the probability of the 10th present to be blue?”.
How are you running your bash script?
Apparently ./my-script.sh and . my-script.sh are different.
I came about this question when I tried to run a shell script from an SSH console. Every time the script failed…