[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bootstrap: Portability issue on FreeBSD.
From: |
Pádraig Brady |
Subject: |
Re: bootstrap: Portability issue on FreeBSD. |
Date: |
Fri, 08 Mar 2013 14:22:37 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
On 03/08/2013 02:04 PM, Mats Erik Andersson wrote:
> Hello there,
>
> the bootstrap script contains a hardcoded call to 'sh',
> which renders the self-bootstraping unusable on FreeBSD
> and DragonFlyBSD. The reason is that the default Bourne
> shell on these systems handles the crucial invocation
>
> $ /bin/sh -c 'echo "$1 --> $2"' -- old new
> new -->
>
> by removing the placeholder '--' despite the switch '-c'.
> This is a different behaviour from all other '/bin/sh'
> tested by me, including GNU/Linux, other BSDm and multiple
> shells on OpenSolaris.
Could we not just s/--/IGNORED/
thanks,
Pádraig.