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