home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sun / admin / 6129 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  1.5 KB

  1. Path: sparky!uunet!think.com!eplunix!das
  2. From: das@eplunix.UUCP (David Steffens)
  3. Newsgroups: comp.sys.sun.admin
  4. Subject: Re: Slight Strangeness with ``config''
  5. Message-ID: <1265@eplunix.UUCP>
  6. Date: 3 Sep 92 21:22:16 GMT
  7. References: <BtyGn8.4Aw@fulcrum.bt.co.uk>
  8. Organization: Eaton-Peabody Lab, Boston, MA
  9. Lines: 29
  10.  
  11. In article <BtyGn8.4Aw@fulcrum.bt.co.uk>,
  12. igb@fulcrum.bt.co.uk (Ian G Batten) writes:
  13. > This works:
  14. > config  vmunixbackup root on md0a     swap on id010b
  15. > This complains about a syntax error on the ``backup'' line:
  16. > config  vmunix.backup root on md0a     swap on id010b
  17.  
  18. This has been either a bug or a feature (depending on your point of view)
  19. at least as far back as 4.2bsd.  Quoting from the paper "Building 4.2BSD
  20. UNIX Systems with Config", Samuel J Leffler, June, 1983, Page 24-25:
  21.  
  22.         Appendix A. Configuration File Grammar
  23.     The following grammmar is a compressed form of the actual yacc(1)
  24.     grammar used by config to parse configuration files.
  25.     ...
  26.     System_spec ::= config ID System_parameter [ System_parameter ]*
  27.     ...
  28.     Lexical Conventions
  29.     The terminal symbols are loosely defined as:
  30.     ID    One or more alphabetics, either upper or lower case,
  31.         and underscore, "_".
  32.  
  33. Notice that nowhere does this say that an "ID" token can contain a dot!
  34. -- 
  35. David Allan Steffens       | I believe in learning from past mistakes...
  36. Eaton-Peabody Laboratory   | but why does a good education require so many?
  37. Mass. Eye & Ear Infirmary, 243 Charles Street, Boston, MA 02114
  38. {harvard,mit-eddie}!eplunix!das    Tel (617) 573-3748    Fax (617) 720-4408
  39.