[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] arch: new program
From: |
Paul Eggert |
Subject: |
Re: [PATCH] arch: new program |
Date: |
Wed, 06 Jun 2007 11:20:29 -0700 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
Jim Meyering <address@hidden> writes:
> I suppose arch should not be used in new scripts, but that's just
> a gut feeling. If so, documentation should make it clear.
I agree that the documentation should advise people to use uname and
to avoid arch. 'uname' is standardized, but 'arch' is not. The Sun
documentation already advises people not to use 'arch'.
One other thing. This implementation of 'arch' is incompatible with
Solaris. Solaris 'arch' uses the following algorithm:
If "uname -p" outputs "sun4", output "sun4"; otherwise output
whatever "uname -m" returns.
Also, Solaris 'arch' accepts a "-k" option that causes "arch" to
behave just like "uname -m".
Also, Solaris 'arch' accepts an optional operand that causes it to
silently exit with status 0 if "arch" would have printed that operand,
1 otherwise.
I assume all this stuff is for historical reasons. (But that's the
only reason we're adding 'arch', right? :-)
- adding "arch" (aka uname -m) to the coreutils, Jim Meyering, 2007/06/05
- Re: adding "arch" (aka uname -m) to the coreutils, Karel Zak, 2007/06/05
- [PATCH] arch: new program, Karel Zak, 2007/06/05
- Re: [PATCH] arch: new program, James Youngman, 2007/06/05
- Re: [PATCH] arch: new program, Jim Meyering, 2007/06/06
- Re: [PATCH] arch: new program,
Paul Eggert <=
- Re: [PATCH] arch: new program, Jim Meyering, 2007/06/06
- Re: [PATCH] arch: new program, Mike Frysinger, 2007/06/06
- Re: [PATCH] arch: new program, Karel Zak, 2007/06/06
- Re: [PATCH] arch: new program, Bauke Jan Douma, 2007/06/06
- Re: [PATCH] arch: new program, Paul Eggert, 2007/06/06
- Re: [PATCH] arch: new program, Karel Zak, 2007/06/13
- Re: [PATCH] arch: new program, Jim Meyering, 2007/06/13
- Re: [PATCH] arch: new program, Paul Eggert, 2007/06/13
- Re: [PATCH] arch: new program, Jim Meyering, 2007/06/13
- Re: [PATCH] arch: new program, Karel Zak, 2007/06/13