[chef-dev] Re: Re: Re: gem_package (and shellout generally) on windows


Chronological Thread 
  • From: Holger Just < >
  • To: Daniel DeLeo < >
  • Cc: Chef Dev < >
  • Subject: [chef-dev] Re: Re: Re: gem_package (and shellout generally) on windows
  • Date: Fri, 02 Nov 2012 18:45:49 +0100

Daniel DeLeo wrote:
> On Unix, Mixlib::ShellOut passes its arguments directly to 
> Kernel.exec[1]. A single string gets passed to `sh -c`, while an
> Array will use a direct call to the exec system call. The ShellOut
> mixin passes arguments directly to Mixlib::ShellOut, so what you
> propose would be a behavior change; though I don't know of any
> internal Chef code that uses the Array form, so it might not be a big
> deal.

I'm not aware of any "outside" code using that form either. In the end,
having an officially sanctioned and encouraged way for safe
shellouts would probably heavily outweigh this loss of functionality.

--Holger



Archive powered by MHonArc 2.6.16.

§