GNU wish list
Pavan Vohra
vohra at uts.amdahl.com
Sat Jun 3 18:18:13 AEST 1989
In article <15810 at vail.ICO.ISC.COM> you write:
>In article <2501 at gandalf.UUCP>, ml at gandalf.UUCP (Marcus Leech) writes:
>
>>...Options that perform the same function in different commands should
>> have the same names...
>
>In principle, a good idea, but this depends on the (very loosely coupled)
>command authors to get together and agree a priori. It's a "system issue"
The lack of standards on options encourages creativity and choice among
schemes. With constant refinement in the form of periodic overhaul
(how about we clean up UNIX once every few years?) the good ones survive
and the bad ones die off. Eventually we might achieve homeostasis; the
schemes that survive are de facto standards. If not, tastes differ.
Note that compatibility concerns and the above are only slightly
antithetical; we can sort of phase things out if necessary (but
start anew with GNU).
Nevertheless, note that errno (/usr/include/sys/errno.h) has been
moderately successful; there are some problems with it, but it is
often useful and both system calls and library functions do use it.
That is an example of standardization.
While I am on the subject of errno, why not have a perrorf(3C)? It is
like printf(3C) exactly except that it prints "cmdname:" as the first
characters of the line and it has a format character for the error
message. (e.g.
perrorf("could not read %s: %@.\n",filename);
to print something like
myprog: could not read /usr/you/.myprogrc: No permission.
.)
I am KC, not Pavan.
--
---
Pavan Vohra {..hplabs|ames|ihnp4|decwrl}!amdahl!vohra
Amdahl Corporation
Sunnyvale, CA 94086-3470
---
More information about the Comp.unix.wizards
mailing list