[Buildbot-devel] * expansion in ShellCommand
Shane McDaniel
smcdaniel at languagecomputer.com
Thu May 11 15:09:41 UTC 2006
Thanks this worked, for anyone who may use this you might need to toss
"--reply=yes" in there too to handle overwritting stuff.
Julien Gilli wrote:
> Hello,
>
> On 5/11/06, *Shane McDaniel* <smcdaniel at languagecomputer.com
> <mailto: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
More information about the devel
mailing list