On Thu, Nov 18, 2010 at 11:38 AM, Cyril Hrubis <[email protected]> wrote:
> Hi!
>> Hi all,
>>
>> Another one... The realtime test script :
>>    testcases/realtime/scripts/setenv.sh
>>
>> uses "hostname --short" which isn't supported by busybox. "hostname
>> -s" is supported but gives "hostname: unknown host". Given that every
>> other script uses "hostname" as-is I reckon it would be reasonable to
>> match that usage in this script too?
>>
>
> On linux "hostname --short" is equivalent to "hostname" at least on
> linuxes I have here. So IMHO this is safe for linux only realtime tests.
>
> Please send patch.

    This was already changed to hostname -s several weeks ago. This is
important to distinguish because while Linux's hostname is about the
same as the non-FQDN, BSD defaults to the opposite behavior. I don't
know about Solaris, etc.
    It's better to be explicit about this because Linux tends to
change its opinion from time to time, as developers come and go. So
keeping up with what POSIX states is the one true behavior is the most
conservative way to do things.
Cheers,
-Garrett

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to