This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA/RFC: Enable both gold and ld in a single toolchain


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]