When passing arguments to a Bash-script like:
1 while getopts u:d:p:f: option
2 do
3 case "${option}" in
4 u) USER=${OPTARG};;
5 d) DATE=${OPTARG};;
6 p) PRODUCT=${OPTARG};;
7 f) FORMAT=$OPTARG;;
8 esac
9 done
from: http://linux.about.com/od/Bash_Scripting_Solutions/a/How-To-Pass-Arguments-To-A-Bash-Script.htm
What is the difference between ${OPTARG};;
line 4-5-6 and $OPTARG;;
line 7?