uname -a default options
Ian Lepore
ian at freebsd.org
Sat Aug 17 14:21:26 UTC 2019
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
More information about the freebsd-hackers
mailing list