home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v5 / text0048.txt < prev    next >
Encoding:
Text File  |  1987-06-30  |  1.0 KB  |  32 lines

  1. >From: harvard!cybvax0!vcvax1!paul (Paul Kleppner)
  2. Date: Wed, 12 Feb 86 18:58:56 est
  3.  
  4. Bob Devine's proposal on the /etc/TIMEZONE format (volume 5, #47)
  5. looks to me like a good solution to a complicated problem.
  6. I do have one suggestion, though: don't clutter the /etc/TIMEZONE file
  7. with Bourne shell syntax.  If the file contained only the two actual values
  8. (separated by a space or tab) and not the "TZ=", "DST=",
  9. and "export" comands, it would be much easier to read by non-Bourne
  10. shells or by other programs, which would otherwise have to filter
  11. out the shell statements.
  12.  
  13. I should point out that there is no loss in efficiency with this approach.
  14. The login initialization file /etc/profile, instead of containing the line,
  15.  
  16.     . /etc/TIMEZONE
  17.  
  18. would contain the lines
  19.  
  20.     read TZ DST < /etc/TIMEZONE
  21.     export TZ DST
  22.  
  23. (I believe this will work correctly whether DST has 0 or 2 parts.)
  24. ------------
  25. Paul Kleppner
  26. VenturCom, Inc.
  27. 617/661-1230
  28. {seismo!harvard,genrad!mit-eddie}!cybvax0!vcvax1!paul
  29.  
  30. Volume-Number: Volume 5, Number 49
  31.  
  32.