[Buildbot-devel] * expansion in ShellCommand

Shane McDaniel smcdaniel at languagecomputer.com
Thu May 11 14:21:10 UTC 2006


I'm trying to run a ShellCommand that involved a *, but it looks like 
the * is being taken literally and thus not expanded undernearth.

This is the specific command

s( step.ShellCommand, command=["cp", "*.jar", "/tmp"])

The error is :  cp: cannot stat `*.jar': No such file or directory

I've also tried
s( step.ShellCommand, command=["cp *.jar /tmp"])


but it doesn't work either, it looks like it's trying to find the 
location of the whole thing like it's an exe

Error: OSError: [Errno 2] No such file or directory


I would use the specific projects name instead of * but that information is not available to the builder afaik.  Does anyone know how to get the * expansion to work?

-shane






More information about the devel mailing list