No, @foo@ is evaluated when shell_command is evaluated. So it would
have it's " chopped before it was folded into shell_command,
resulting in a the following:
./configure CFLAGS=-g -O
which would be wrong.
I admit to not having looked closely at your patch; would it handle
this scenario properly?
On Nov 3, 2006, at 1:21 PM, Jeff Squyres wrote:
> On Nov 3, 2006, at 12:08 PM, Ethan Mallove wrote:
>> Point taken about being literal. My thinking is that most
>> will be only guessing about the quoting mechanism of
>> funclets (as I was for a bit), and there would never be a
>> real case for sending '"cmd"' to exec().
> How about a doc fix then?
> I'm not so worried about a '"cmd"' to exec(), but more about other
> fields. Remember that shell commands are a very small portion of
> the fields used in MTT - there's others that are explicitly used as
> portions of commands. For example you could do something like this:
> shell_command = ./configure @foo@
> foo = "CFLAGS=-g -O"
> which then wouldn't work.
> Jeff Squyres
> Server Virtualization Business Unit
> Cisco Systems
> mtt-users mailing list
Server Virtualization Business Unit