[OE-core] [PATCH 7/8] oe-git-proxy.sh: Add a new comprehensive git proxy script
Richard Purdie
richard.purdie at linuxfoundation.org
Tue Feb 5 22:10:56 UTC 2013
On Tue, 2013-02-05 at 11:18 -0800, Darren Hart wrote:
>
> On 02/05/2013 11:08 AM, Enrico Scholz wrote:
> > Otavio Salvador <otavio at ossystems.com.br> writes:
> >
> >> Please give it a try in dash as well.
> >
> > fwiw, what's the point in writing such scripts plain sh? I guess. every
> > machine where this script is running has /bin/bash and performance is
> > not critical for it. Using '#! /bin/bash' shebang fixes the problem
> > where sh is non bash.
> >
> > Some constructs in the scripts can be expressed mor efficiently in bash
> > (e.g. the '... | sed' statements, or using arrays for the arguments).
>
> Indeed, in fact I had to remove the bash parameter expansions
> (substrings, etc) I had in my original script in order to make it
> dash-able. I hate dash and personally find it to be completely
> pointless, but for better or worse, people like it and there is an
> expectation that scripts run in both dash and bash in OE-core.
>
> If RP tells me a #!/bin/bash is acceptable, I'll restore the bashisms in
> a heartbeat.
General shell code in metadata should run under /bin/sh. Its fine for an
external scripts to use bashisms as long as it says so at the top of the
file :)
Cheers,
Richard
More information about the Openembedded-core
mailing list