BASH Execute a Command in a Variable – with Quotes!
Just recently I encountered a situation where I was using a BASH script to evaluate some input and then pass a boat-load of parameters to another executable. It just so happened that one of the parameters I was pasisng was a variable that had a space in it. So… –myvar “my spacey attribute”. This command would work great when I ran the command myself, but as soon as I tried to execute the command in my BASH script, the blasted…