[OpenBIOS] [PATCH] switch-arch: Add non-standard compiler prefix support

Andreas Färber afaerber at suse.de
Mon May 11 14:57:51 CEST 2015


Am 10.05.2015 um 23:37 schrieb Tarl Neustaedter:
> On 2015-May-10 17:08 , Programmingkid wrote:
> [...]
>> What advantage does the code  "if [ x"$CROSS_COMPILE" != "x" ];" have
>> over "if [ "$CROSS_COMPILE" ];"?
> 
> I don't believe the latter form worked on the early versions of sh/test,
> there might still be systems where if [""]; produces a syntax error.

Is 'if [ -z "$CROSS_COMPILE" ]' (untested) any more compatible?

Cheers,
Andreas

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Dilip Upmanyu, Graham Norton; HRB
21284 (AG Nürnberg)



More information about the OpenBIOS mailing list