Re: [PATCH 2/5] kbuild: fix warning when domainname is not available

From: Felipe Contreras
Date: Sun Sep 13 2009 - 18:04:19 EST


On Mon, Sep 14, 2009 at 12:58 AM, Mike Frysinger <vapier.adi@xxxxxxxxx> wrote:
> .
> On Sun, Sep 13, 2009 at 17:42, Felipe Contreras
> <felipe.contreras@xxxxxxxxx> wrote:
>> On Mon, Sep 14, 2009 at 12:12 AM, Mike Frysinger <vapier.adi@xxxxxxxxx> wrote:
>>> On Sun, Sep 13, 2009 at 15:38, Felipe Contreras wrote:
>>>> + Âif $domain; then
>>>
>>> is this really correct ? Âi think you meant to use:
>>> [ -n "$domain" ]
>>
>> What is the difference?
>>
>> $domain unset
>> test -n "" -> false
>> test -> false
>>
>> $domain is a valid string
>> test -n "string" -> true
>> test "string" -> true
>
> except that you didnt invoke `test` anywhere. Âyou're executing the
> contents of $domain.

Ahh, I'll update it to:
[ "$domain" ]

--
Felipe Contreras
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/