home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / vms / 19246 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.7 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!agate!ucbvax!U.WASHINGTON.EDU!DEREK
  2. From: DEREK@U.WASHINGTON.EDU
  3. Newsgroups: comp.os.vms
  4. Subject: Re: Q: SET DEFAULT and logicals
  5. Message-ID: <AECC4F7637FF20195D@MAX.U.WASHINGTON.EDU>
  6. Date: 14 Dec 92 20:28:00 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: world
  9. Organization: The Internet
  10. Lines: 38
  11.  
  12. In article <1992Dec11.123536.1@vxdesy.desy.de>, pawlak@vxdesy.desy.de writes:
  13. > A user came to me today complaining about a DCL problem, which can be
  14. > summarized by the following command sequence:
  15. >
  16. > $ SHOW DEFAULT
  17. >   DUA1:[USER]
  18. > $ DEFINE DIR1 DUA0:[ARCHIVE]
  19. > $ DEFINE DIR2 DIR1
  20. > $ SET DEFAULT DIR2
  21. > $ SHOW DEFAULT
  22. >   DUA1:[ARCHIVE]
  23. > %DCL-I-INVDEF, DUA1:[ARCHIVE] does not exist
  24. > $ SET DEFAULT DIR1
  25. > $ SHOW DEFAULT
  26. >   DUA0:[ARCHIVE]
  27.     ....
  28.  
  29. Well, this bug has existed in VMS as long as I can remember, and I know that
  30. it was SPRed at LEAST once.  (I SPRed it.)  The problem stems from the code
  31. which decides which PARTs of the default to change.  Basically, an attempt
  32. is made to translate the input parameter as a logical name.  If the resulting
  33. string contains a colon, then SYS$DISK is changed.  If not, SYS$DISK is NOT
  34. changed.  Expansion continues until the directory path name is resolved.
  35.  
  36. I run across this bug every now and then because I use the ASSIGN command
  37. rather than the DEFINE command.  (And if you don't know what the effective
  38. difference is, check out my article on the subject from, say, four years
  39. ago.  :) )
  40.  
  41. -Derek S. Haining
  42.  University Computing Services
  43.  University of Washington
  44.  Seattle, Washington  98195 
  45.  (206) 543-5579
  46.  
  47.  DEREK@MAX.BITNET
  48.  DEREK@MAX.U.WASHINGTON.EDU
  49.  
  50.