Re: Possible bug in uname command

2005-09-15 Thread Bob Proulx
Alfred M. Szmidt wrote: They are only non-portable across different operating systems (say OpenBSD vs GNU). My point is that coreutils main goal is not to be portable across various operating systems, if `uname -p' outputs `unknown' on platforms that can't provide that info, then that is

Re: Possible bug in uname command

2005-09-15 Thread Alfred M\. Szmidt
If Hurd implements the interface to enable 'uname -p' then that would certainly be a good thing in general. A win-win. But if it does not then already at this time 'uname -p' is not really useful to there. But that isn't a good reason to make the option produce a error. If you

Re: Possible bug in uname command

2005-09-15 Thread Paul Eggert
While looking into this problem I noticed that Debian tried to disable uname -p and -i, but they didn't do it quite right. For example: $ /bin/uname -x /bin/uname: invalid option -- x Try `/bin/uname --help' for more information. $ /bin/uname -p Try `/bin/uname --help' for more

Re: Possible bug in uname command

2005-09-15 Thread Alfred M\. Szmidt
I like the fix. Though, changing the behaviour of `uname -a' just cause some people have rebelled against it outputing `unknown' in some places is quite silly; why not add such support to Linux and have it output something useful! Thanks Paul. ___

Re: Possible bug in uname command

2005-09-15 Thread Jim Meyering
Paul Eggert [EMAIL PROTECTED] wrote: 2005-09-15 Paul Eggert [EMAIL PROTECTED] * NEWS: uname -a no longer generates the -p and -i outputs if they are unknown. * doc/coreutils.texi (uname invocation): Document this. * src/uname.c (usage): Document this. (main):

Re: Possible bug in uname command

2005-09-15 Thread Bob Proulx
Jim Meyering wrote: Paul Eggert wrote: 2005-09-15 Paul Eggert [EMAIL PROTECTED] * NEWS: uname -a no longer generates the -p and -i outputs if they are unknown. * doc/coreutils.texi (uname invocation): Document this. * src/uname.c (usage): Document this. (main):

Re: Possible bug in uname command

2005-09-14 Thread Paul Eggert
Eric Blake [EMAIL PROTECTED] writes: What about parsing /proc/cpuinfo, on machines that have that? That's been discussed, but it sounds like a can of worms. The information doesn't map all that well to the uname output, and my admittedly uninformed feeling is that it is not that standard among

Re: Possible bug in uname command

2005-09-14 Thread Bob Proulx
Paul Eggert wrote: That's been discussed, but it sounds like a can of worms. I have often thought it would be better if on machines that could not reasonably support those extra uname options that the options be disabled entirely. Then instead of unknown the program would report it as an

Re: Possible bug in uname command

2005-09-14 Thread Alfred M\. Szmidt
That's been discussed, but it sounds like a can of worms. I have often thought it would be better if on machines that could not reasonably support those extra uname options that the options be disabled entirely. Then instead of unknown the program would report it as an invalid

Re: Possible bug in uname command

2005-09-14 Thread Eric Blake
That's been discussed, but it sounds like a can of worms. I have often thought it would be better if on machines that could not reasonably support those extra uname options that the options be disabled entirely. Then instead of unknown the program would report it as an

Re: Possible bug in uname command

2005-09-14 Thread Bob Proulx
Alfred M. Szmidt wrote: I have often thought it would be better if on machines that could not reasonably support those extra uname options that the options be disabled entirely. Then instead of unknown the program would report it as an invalid option. But that will break scripts

Re: Possible bug in uname command

2005-09-14 Thread Alfred M\. Szmidt
Since POSIX doesn't document -p or -i, they are already non-portable options. GNU Coreutils isn't POSIX Coreutils. ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils

Re: Possible bug in uname command

2005-09-14 Thread Alfred M\. Szmidt
I have often thought it would be better if on machines that could not reasonably support those extra uname options that the options be disabled entirely. Then instead of unknown the program would report it as an invalid option. But that will break scripts like

Re: Possible bug in uname command

2005-09-14 Thread Bob Proulx
Alfred M. Szmidt wrote: I don't think it will break scripts because legacy operating systems don't support those options either. ^^ If you consider GNU a legacy operating system, sure. Recall, GNU coreutils is for GNU, not non-GNU systems.

Re: Possible bug in uname command

2005-09-14 Thread Alfred M\. Szmidt
I don't think it will break scripts because legacy operating systems don't support those options either. ^^ If you consider GNU a legacy operating system, sure. Recall, GNU coreutils is for GNU, not non-GNU systems. Notice

Possible bug in uname command

2005-09-13 Thread Asif Iqbal, Trumboo
Dear Sir, There seems to be a possible bug in uname command on most versions of the Linux system. uname -p prints 'unknown' instead of the host processor name. Please look into the matter. Thanks and Regards, Asif Iqbal Trumboo ___ Bug-coreutils

Re: Possible bug in uname command

2005-09-13 Thread Paul Eggert
Asif Iqbal, Trumboo [EMAIL PROTECTED] writes: There seems to be a possible bug in uname command on most versions of the Linux system. uname -p prints 'unknown' instead of the host processor name. As I understand it, that is a deficiency in the Linux API rather than a bug in coreutils proper

Re: Possible bug in uname command

2005-09-13 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 As I understand it, that is a deficiency in the Linux API rather than a bug in coreutils proper: Linux doesn't support the relevant sysinfo (Solaris-style) or sysctl (BSD-style) system calls. Perhaps you can report the problem to the Linux