I tried to have a switch if either an option is set or not
while getopts "s:u:d:e:ch" _OPTION; do
case $_OPTION in
...
c)
isCSet="Y"
then I'm calling my function :
myFunction $isCSet
then in my function I'm doing :
echo $1
but I don't have anything in.
How can I solve this problem?
set -x
)? – rush Nov 19 '13 at 11:24