Date: Tue, 15 Feb 2000 21:13:22 +1100 (EST)
   From: Ben Elliston <[EMAIL PROTECTED]>
   cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
           [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]

   >    +uname -m = `(uname -m) 2>/dev/null || echo unknown`
   >    +uname -r = `(uname -r) 2>/dev/null || echo unknown`
   >    +uname -s = `(uname -s) 2>/dev/null || echo unknown`
   >    +uname -v = `(uname -v) 2>/dev/null || echo unknown`

   > Wouldn't it be better to run `uname -a'?  That way you should get all
   > the output that uname can give you.

   Actually, I think that's kind of troublesome.  I've seen various
   platforms' uname command give back values that contain whitespace.

I believe that the output of these uname commands was used only for
debugging output.  In that case, the white space won't hurt.

You're right that if we need just the operating system name, we should
use uname -s rather than trying to parse the output of uname -a.

Reply via email to