Web lists-archives.com

Re: git rebase regression: cannot pass a shell expression directly to --exec

On Tue, May 16, 2017 at 1:12 PM, Johannes Schindelin
<Johannes.Schindelin@xxxxxx> wrote:
>> I think it would be better to just
>>  (a) get rid of the magic strcspn() entirely
>>  (b) make the 'can we optimize this' test be simply just looking up
>> 'argv[0]' in $PATH
> What about
>         ABC=1 my-executable my-arg

What about it?

Do you have a binary like

    '/usr/bin/ABC=1 my-executable my-arg'

or something? If so, it gets executed. If not, it would get passed off
to "/bin/sh".

That sounds a lot more obvious than "some random set of characters are magical".