This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RFA/RFC: Enable both gold and ld in a single toolchain
- From: Andreas Schwab <schwab at redhat dot com>
- To: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- Cc: Nick Clifton <nickc at redhat dot com>, gcc-patches at gcc dot gnu dot org, binutils at sourceware dot org
- Date: Fri, 05 Mar 2010 10:37:04 +0100
- Subject: Re: RFA/RFC: Enable both gold and ld in a single toolchain
- References: <m3vddbao52.fsf@redhat.com> <20100304205859.GE22496__42407.8206219294$1267753343$gmane$org@gmx.de>
Ralf Wildenhues <Ralf.Wildenhues@gmx.de> writes:
>> @@ -52,36 +86,65 @@
>> ;;
>> esac
>>
>> -case "$original" in
>> - ../*)
>> - # compute absolute path of the location of this script
>> +case x"$original" in
>
> Why that x here? The x used in "test" is to avoid leading hyphens
> to let old test programs confuse them with options like -f. This is not
> needed for case.
And you don't even need the quotes.
>> + x)
>> + echo "$invoked: executable not configured"
>> + exit -1
>
> I don't know whether -1 is portable for shell exit.
POSIX only knows about 0-255 anyway.
Andreas.
--
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."