tags 638878 + moreinfo thanks Touko Korpela wrote: > Would it be possible to report Debian kernel version in uname > output? Maybe it can be added to "kernel version" string, uname -v > (now it's "#1 SMP Wed Aug 17 05:07:22 UTC 2011". > This information is present in /proc/version and could be in uname too.
Exactly what information is it precisely that you wish included in 'uname' output? Because uname already includes the kernel version information. $ uname -a Linux example 3.0.0-1-amd64 #1 SMP Sun Jul 24 02:24:44 UTC 2011 x86_64 GNU/Linux The 'uname' command is one of those very old legacy commands from the old, old Unix era before the current networking and before almost any attempt at making systems inter-operable. As such it is a terrible command. It is inconsistently implemented on different systems. It has limitations and issues that don't really apply to the current state of things anymore. The only portable use is to call it without option arguments and then depending upon what it returns possibly call it again with system specific options. As such I really don't think it is good to expand its use by adding more to it. I don't yet know what information you want to access from /proc/version but since accessing specific information from /proc/version is intrinsically non-portable it seems bad to hack it into 'uname' making it more non-portable. And since it is trivial to read it from /proc/version directly there doesn't seem to be any need to hack this into 'uname'. Why not read it from /proc/version directly? Bob -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

