[Buildbot-devel] * expansion in ShellCommand

Julien Gilli julien.gilli at wengo.fr
Thu May 11 14:34:44 UTC 2006


Hello,

On 5/11/06, Shane McDaniel <smcdaniel at languagecomputer.com> wrote:
>
> Does anyone know how to get the * expansion to work?
>
> Just my 2 cents, you could try to use the following:
s( step.ShellCommand, command=["/bin/sh", "-c", "cp *.jar /tmp",])

Expansion is not done when you use
s( step.ShellCommand, command=["cp", "*.jar", "/tmp"])
because the "command" list is passed as execv* arguments, and are not
expansed as a shell interpreter like sh would do when one enters such a
command interactively.
Calling explicitely /bin/sh to interpret "cp *.jar /tmp" should make sh
interpret the star. Then it should do the completion according to what is in
the current working directory.

Hope it helps.

Best regards,
-- 
Julien Gilli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20060511/797bc84f/attachment.html>


More information about the devel mailing list