DragonFly BSD
DragonFly bugs List (threaded) for 2005-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: uname output

From: "George Georgalis" <george@xxxxxxxxx>
Date: Sat, 30 Jul 2005 19:44:52 -0400
Mail-followup-to: bugs@crater.dragonflybsd.org

On Sun, Jul 31, 2005 at 12:29:43AM +0100, Liam J. Foy wrote:
>On Sat(30)/Jul/05 - , George Georgalis wrote:
>> I'm porting some scripts to work under BSD. In some cases I need to test
>> the OS they are running on; the other mainline BSDs have 'BSD' in their
>> 'uname' output, but dfly reads 'DragonFly' would it be reasonable to
>> change it to DragonFlyBSD? Or maybe there is a better way to check?
>Can you not just test for 'DragonFly' ?

It's not really a problem, just a subtlety that may not be desireable.

case "`uname`" in
                statopts="-f %Mp%Lp:%u:%g:%N"
                statopts="-c %a:%u:%g:%n"
                err="wrong OS."

// George

George Georgalis, systems architect, administrator <IXOYE><
http://galis.org/ cell:646-331-2027 mailto:george@xxxxxxxxx

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]