I have a script which calls a C++ application with command line switches set. What I would like to do is pass the app switches as parameters to the script.
options=$1
...
./app $options
The problem occurs when I try to pass an parameter like:
./script '-a -C "9.626 0.262 8.266"'
The value of the -C switch is just 9.626 instead of the whole string. Any ideas how to solve this?