[erlang-questions] Command line and quotes
Wed Dec 6 16:48:51 CET 2006
> On Wednesday 06 December 2006 10:58, Mats Cronqvist wrote:
>> run_erl -daemon /tmp/ /tmp "erl -sname aname"
>> should (and does) work.
> Well, but that's not flexible enough. Parts of the command line come from
> variables and I can't avoid it and the whole command line may be run under
> different situations (verbose/no verbose) and/or echoed, so I have to put it
> in a variable (or repeat myself).
perhaps my example was a bit oversimplified. this is a more realistic one
(still a bit simplified);
RE="run_erl -daemon /tmp/ /tmp"
$RE "$ERL $FLAGS"
i find that quite flexible.
but if you require the last line to be one variable i can't help you.
More information about the erlang-questions