home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.21 / text0119.txt < prev    next >
Encoding:
Text File  |  1990-10-26  |  11.9 KB  |  256 lines

  1. Submitted-by: jsh@usenix.org (Jeffrey S. Haemer)
  2.  
  3.            An Update on UNIX*-Related Standards Activities
  4.  
  5.                             September 1990
  6.  
  7.                  USENIX Standards Watchdog Committee
  8.  
  9.                    Jeffrey S. Haemer, Report Editor
  10.  
  11. IEEE 1003.2: Shell and tools
  12.  
  13. Randall Howard <rand@mks.com> reports on the July 16-20 meeting in
  14. Danvers, MA:
  15.  
  16. Background on POSIX.2
  17.  
  18. The POSIX.2 standard deals with the shell programming language and
  19. utilities.  Currently, it is divided into two components:
  20.  
  21.    + POSIX.2, the base standard, deals with the basic shell
  22.      programming language and a set of utilities required for
  23.      application portability.  Application portability essentially
  24.      means portability of shell scripts and thus excludes most
  25.      features that might be considered interactive.  In an analogy to
  26.      the ANSI C standard, the POSIX.2 shell command language is the
  27.      counterpart to the C programming language, while the utilities
  28.      play, roughly, the role of the C library.  In fact, because
  29.      POSIX.2 provides an interface to most of the features (and
  30.      possibly more) of POSIX.1, it might also be thought of as a
  31.      particular language binding to the soon-to-be language
  32.      independent version of that standard.  POSIX.2 also standardizes
  33.      command-line and function interfaces related to certain POSIX.2
  34.      utilities (e.g., popen(), regular expressions, etc.), as
  35.      discussed in detail in the snitch report for the Snowbird
  36.      meeting.  This part of POSIX.2, which was developed first, is
  37.      also known as ``Dot 2 Classic.''
  38.  
  39.    + POSIX.2a, the User Portability Extension or UPE, is a supplement
  40.      to the base POSIX.2 standard.  Not a stand-alone document, it
  41.      will eventually be an optional chapter and a small number of
  42.      other revisions to a future draft of that base document.  This
  43.      approach allows the adoption of the UPE to trail Dot 2 Classic
  44.      without delaying it.  The UPE standardizes commands, such as vi,
  45.      that might not appear in shell scripts but are important enough
  46.      that users must learn them on any real system.  It is essentially
  47.      an interactive standard that attempts to reduce retraining costs
  48.      caused by system-to-system variation.
  49.  
  50. __________
  51.  
  52.   * UNIXTM is a Registered Trademark of UNIX System Laboratories in
  53.     the United States and other countries.
  54.  
  55. September 1990 Standards Update           IEEE 1003.2: Shell and tools
  56.  
  57.  
  58.                 - 2 -
  59.  
  60.      Some utilities have interactive as well as non-interactive
  61.      features.  In such cases, the UPE defines extensions from the
  62.      base POSIX.2 utility.  An example is the shell, for which the UPE
  63.      defines job control, history, and aliases.  Features used both
  64.      interactively and in scripts tend to be defined in the base
  65.      standard.
  66.  
  67. Together, Dot 2 Classic and the UPE will make up the International
  68. Standards Organization's IS 9945/2 -- the second volume of the
  69. proposed ISO three-volume standard related to POSIX.
  70.  
  71. Status of POSIX.2 Balloting
  72.  
  73. Draft 10 of Dot 2 Classic was sent out during July in a recirculation
  74. ballot.  Recirculation means that objections need only be considered
  75. if they are existing unresolved objections or are based on new
  76. material.  Other objections will be considered at the whim of the
  77. Technical Editor.
  78.  
  79. Draft 10 is an imposing, if not intimidating, 780 pages, made even
  80. denser by the decision to remove much white space in a (vain) attempt
  81. to save paper.  Ballots are due by September 10.  Unfortunately, the
  82. recirculation ballot materials arrived at my organization on August
  83. 17th, giving our group barely three weeks to review this massive
  84. document.
  85.  
  86. The technical editors and others working behind the scenes (Hal
  87. Jespersen, Don Cragun, and others) have done an admirable job of
  88. diff-marking changes and producing personalized lists of unresolved
  89. objections for each balloter.  In addition, all 96 pages of unresolved
  90. objections are provided.  However, the amount of new material that has
  91. never been reviewed and the major reorganization means that Draft 10
  92. bears much less resemblance to Draft 9 than one might hope.  That,
  93. combined with balloting on the UPE, has put many balloters -- myself
  94. included -- in balloting overload.
  95.  
  96. If a recirculation simply means forming opinions on my (and other)
  97. unresolved objections, then the time period is quite reasonable.
  98. However, as I shall describe below, Draft 10 is so changed from the
  99. previous drafts that it deserves to be read practically from cover to
  100. cover, and the recirculation deadline does not provide adequate time
  101. for that task.  The changes fall into a number of categories:
  102.  
  103.    + New Utilities: For example, a superset of the traditional od
  104.      replaced the Draft 9 hexdump which was xd in Draft 8.  Pathchk
  105.      and set -o noclobber have replaced create from Draft 9 and
  106.      validfnam and mktemp from Draft 8.  Such examples demonstrate
  107.      that Draft 10 is not mature and needs more consideration to
  108.      achieve consensus.
  109.  
  110. September 1990 Standards Update           IEEE 1003.2: Shell and tools
  111.  
  112.  
  113.                 - 3 -
  114.  
  115.    + Expanded Material: Previous descriptions of such utilities as
  116.      awk, sh, bc, etc., were neither sufficiently comprehensive nor
  117.      sufficiently complete to be of the quality demanded of a
  118.      standard.  In the latest draft, these descriptions have been
  119.      fleshed out, and include much more detail on operator precedence,
  120.      interactions, subtle semantics, and so on.  This is clearly a
  121.      step in the right direction, but adds to the job of reviewing
  122.      Draft 10.
  123.  
  124.    + Internationalization: While the localedef and locale utilities
  125.      remain, they have changed substantially.  I personally support
  126.      including these features, but am concerned that these are being
  127.      designed during the balloting process which is, if anything,
  128.      worse than design-by-committee.  Overall, balloting-group
  129.      reaction to these utilities ranges from impassioned pleas for
  130.      their removal to requests for greater functionality (complexity)
  131.      to handle ever more arcane aspects of the internationalization
  132.      problem.
  133.  
  134.    + Chapter 2: Chapter 2's front matter is substantially reorganized
  135.      and more voluminous.  This chapter contains definitions, utility
  136.      syntax information, requirements imported from POSIX.1, the
  137.      definition of a locale, description of basic and extended regular
  138.      expressions, etc..  Utility descriptions seem to be getting
  139.      shorter, with more and more pointers to Chapter 2.  This is a
  140.      good trend, as long as balloters adequately consider the
  141.      chapter's technical contents.
  142.  
  143. Status of POSIX.2a Balloting
  144.  
  145. The first formal ballot on POSIX.2a UPE Draft 5 was due in the IEEE
  146. offices by August 16th.  Unfortunately, the UPE is laced with
  147. references to definitions and concepts largely defined in Chapter 2 of
  148. Draft 10.  I did not receive my Draft 10 until after the UPE balloting
  149. was due to be returned.  This hinders any attempt to review these two
  150. documents as a single entity -- which is what they will eventually
  151. become.
  152.  
  153. The UPE is starting to mature: it's converging.  The major controversy
  154. is scope -- as it has been throughout the UPE's entire life.  This
  155. draft aligns itself more closely to Dot-2-Classic in many ways, which
  156. leads me to believe that combined review is essential to its
  157. understanding.
  158.  
  159. A few utilities remain contentious:
  160.  
  161.    + nice, renice: These require underlying functionality absent from
  162.      POSIX.1, although POSIX.4 has setscheduler(), which allows
  163.      applications to set priority and scheduling algorithms.
  164.  
  165. September 1990 Standards Update           IEEE 1003.2: Shell and tools
  166.  
  167.  
  168.                 - 4 -
  169.  
  170.      Some working and balloting group members adamantly resist any
  171.      attempt to add utilities that are not implementable on top of a
  172.      bare POSIX.1.  Others view the UPE as addressing what users type,
  173.      regardless of underlying implementation.  I am in the latter
  174.      camp, not the least because other working groups, such as
  175.      POSIX.4, have not yet standardized a utility interface, leaving a
  176.      void which the much-maligned UPE group is most able to fill.  (It
  177.      is telling that implementing df and ps is impossible using only
  178.      POSIX.1 functions, yet there is little opposition to including
  179.      either utility.
  180.  
  181.    + ps: The description for this utility was an interesting amalgam
  182.      of two incompatible visions of how ps output should be
  183.      formatted -- that in Draft 4 and that in Draft 5.  A correction
  184.      should have been issued during balloting, so that balloters could
  185.      concentrate on the real issues of what should be the scope of the
  186.      ps utility.
  187.  
  188.    + patch: This utility differs from many others; its origins are in
  189.      the public domain rather than in a traditional UNIX variants.  As
  190.      a result, many people feel that patch is worthwhile, but not
  191.      mature enough to standardize.
  192.  
  193.    + lint89: This utility is optional, largely because it is
  194.      controversial for a number of reasons.  Obviously, the very name
  195.      lint89 is painfully bureaucratic.  Furthermore, many feel that
  196.      ANSI C makes it unnecessary; moreover, any remaining required
  197.      functionality rightfully belongs as an additional option in the
  198.      c89 (cc) utility.  Some point to existing practice.  But what is
  199.      existing practice when the utility's name is lint89?  [Editor: On
  200.      the other hand, it may prove indispensable in detecting
  201.      portability problems in lex89- and yacc89-generated code.
  202.      Parenthetically, Draft 10 calls these lex and yacc, but that must
  203.      just be a temporary oversight; the utilities obligatorily have
  204.      ANSI C input and output.  (One assumes we'll escape c89tags
  205.      because ctags can be made to work with both flavors.)]
  206.  
  207.    + compress: The inclusion of this utility remains controversial
  208.      because of the Unisys patent on the particular variable of
  209.      Lempel-Ziv compression used by traditional implementations of
  210.      this utility.  The working group appears to be divided on the
  211.      subject of basing a standard on patented material -- no matter
  212.      what the licensing fees are.  There is, however, general
  213.      agreement that it is preferrable to remove compress entirely
  214.      rather than ``invent'' some new compression algorithm.
  215.      Therefore, it appears that a pax-like compromise, of having a
  216.      single interface to a number of competing formats or algorithms,
  217.      is not widely supported.  [Editor: see Andrew Hume's X3B11 report
  218.      for another wrinkle on data compression.] Clearly, this issue
  219.      will have to be resolved with further information from Unisys
  220.      lawyers during the balloting process.
  221.  
  222. September 1990 Standards Update           IEEE 1003.2: Shell and tools
  223.  
  224.  
  225.                 - 5 -
  226.  
  227. Status of the Danvers Meeting
  228.  
  229. The Danvers working group dealt with neither Dot 2 Classic nor the
  230. UPE.  Instead, at POSIX.3.2's request (that's the subgroup of Dot 3
  231. producing test assertions for Dot 2), we met jointly to co-develop
  232. test assertions for Dot 2 Classic.  This work is a consequence of the
  233. SEC's recent decision requiring each POSIX working group to develop
  234. its own test assertions and ballot them with the standard.  It also
  235. stems from Dot 3's frustration over the (inadequate) way Dot 2
  236. addressed testing.  For example, automated testing of lp, is
  237. impossible; it can only be tested by a human test procedure.  Our
  238. working group should have explored the implications of this before
  239. subjecting POSIX.3 to that task.  (Some utilities can only be tested
  240. manually, but the working group defining that utility should likely
  241. put something to that effect in the Rationale or History of Decisions
  242. Made to confirm to the testing people that they knew this.)
  243.  
  244. The three days of working with Dot 3 were a real learning experience
  245. for our working group.  Nonetheless, many of us had our fill of test
  246. assertions that week.
  247.  
  248. I'm also concerned that a three-day meeting cost my company nearly as
  249. much as a five day meeting would have.  In the future, I would prefer
  250. to see schedules that make productive use of the entire working week.
  251.  
  252. September 1990 Standards Update           IEEE 1003.2: Shell and tools
  253.  
  254. Volume-Number: Volume 21, Number 120
  255.  
  256.