Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Aug 2019 08:21:21 -0600
From:      Ian Lepore <ian@freebsd.org>
To:        Gordon Bergling <gbergling@gmail.com>, freebsd-hackers@freebsd.org
Subject:   Re: uname -a default options
Message-ID:  <7d1f88943c0b744920d7181df51b76675d145f18.camel@freebsd.org>
In-Reply-To: <C79F935A-8D52-415A-AD2D-2F7A85406F98@gmail.com>
References:  <C79F935A-8D52-415A-AD2D-2F7A85406F98@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 2019-08-17 at 15:08 +0200, Gordon Bergling wrote:
> Hello List,
> 
> "uname -a" is currently mapping the -a option to „-mnrsv“, which
> results in something similar like
> 
> $ uname -a
> FreeBSD lion.0xfce3.net <http://lion.0xfce3.net/>; 12.0-STABLE FreeBSD
> 12.0-STABLE r350835 GENERIC  amd64
> 
> What would you think about reducing the option mapping for „-a“ to „-
> vmn“ , which would result in a less repetitive version string like
> the one below.
> 
> $ uname -vmn
> lion.0xfce3.net <http://lion.0xfce3.net/>; FreeBSD 12.0-STABLE r350835
> GENERIC  amd64
> 
> Adapting this would be trivial, but before I hack something together,
> I would like to get some feedback if such a change would be welcomed?
> 
> Best regards,
> 
> Gordon
> 

I think there are likely very many existing scripts in the world that
parse the output of uname -a and would break if the fields moved around
or disappeared.

-- Ian




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7d1f88943c0b744920d7181df51b76675d145f18.camel>