[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Strange behaviour with iteration with shellcommands
From: |
DRANSUTAVICIUS, CLAUDIO |
Subject: |
Strange behaviour with iteration with shellcommands |
Date: |
Mon, 31 May 2004 12:53:27 -0400 |
Hello
I was wondering if someone could explain why I am getting this behavior
when I run a shell command with
some iteration. Here is the code:
control:
testcmd = ( "/bin/echo" )
name = ( ":one:two:three" )
actionsequence = ( shellcommands )
shellcommands:
"${testcmd} ${name} ${name}"
I would expect to see the following:
cfengine:al2ccg:/bin/echo one : one one
cfengine:al2ccg:/bin/echo two : two two
cfengine:al2ccg:/bin/echo three: three three
Instead the following is my output:
cfengine:al2ccg:/bin/echo one o: one one
cfengine:al2ccg:/bin/echo one t: one two
cfengine:al2ccg:/bin/echo one t: one three
cfengine:al2ccg:/bin/echo two o: two one
cfengine:al2ccg:/bin/echo two t: two two
cfengine:al2ccg:/bin/echo two t: two three
cfengine:al2ccg:/bin/echo three: three one
cfengine:al2ccg:/bin/echo three: three two
cfengine:al2ccg:/bin/echo three: three three
Any clues why this is happening?
- Strange behaviour with iteration with shellcommands,
DRANSUTAVICIUS, CLAUDIO <=