[clue-tech] Maddening bash "protection" problem

Bruce Ediger eballen1 at qwest.net
Tue Feb 10 20:16:19 MST 2009


On Tue, 10 Feb 2009, Jed S. Baer wrote:

> #!/bin/bash
>
> longcmd="dothing -x -e 'param with spaces' more junk"
> $longcmd this that
> $longcmd other thing

The easiest thing might be an "eval":

eval "$longcmd" this that
eval "$longcmd" other thing

Shell quoting rules never have made that much sense to me.


More information about the clue-tech mailing list