Uzbl

Tasklist

FS#203 - uname -o is not portable

Attached to Project: Uzbl
Opened by Bart Van Loon (bbbart) - 2010-02-11 09:10:42 AM
Last edited by Dieter Plaetinck (Dieter_be) - 2010-02-25 09:25:16 PM
Task Type Bug Report
Category uzbl-core
Status Closed
Assigned To No-one
Operating System All
Severity Very Low
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

when running uzbl on FreeBSD, a non-fata error gets printed to the screen:

uname: illegal option -- o
usage: uname [-aimnprsv]

I guess it's better to use

uname -s

as that is a (more or less) portable switch.

on Linux, -o prints ``GNU/Linux'' (operating system) and -s prints ``Linux'' (kernel name)
on FreeBSD, -o yields an error and -s prints ``FreeBSD'' (operating system)
This task depends upon

Closed by  Dieter Plaetinck (Dieter_be)
2010-02-25 09:25:16 PM
Reason for closing:  Duplicate
Additional comments about closing:  dup of  FS#194 < br />
btw hi Bart!
Comment by Bart Van Loon (bbbart) - 2010-02-11 09:12:37 AM
oh, only now I see that Koen already filed the same bug (#194), but without mentioning ``uname'' (that's what I searched for before posting) :-)

Loading...