Suppose I have a bash script called foo.sh
#!/bin/bash
echo "Type your name"
read personname
if["$personname" == "kevin"]; then
echo "Your name is kevin"
exit 1
fi
Now, I give it global access as cp foo.sh /usr/bin/foo
So, I find it difficult now to call the script and pass the argument at the same time. I can only do
bash foo
john
instead of doing
bash foo john