home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v5 / text0007.txt < prev    next >
Encoding:
Internet Message Format  |  1987-06-30  |  961 b 

  1. Date: Sun, 5 Jan 86 19:14:39 est
  2. From: seismo!allegra!phri!roy@sally.UTEXAS.EDU (Roy Smith)
  3. Subject: What do you call an ex-directory? (or, "it's not dead, just sleeping")
  4.  
  5.     This may fall more into the category of a trivia question rather
  6. than something that demands being standardized, but here goes anyway.  Try
  7. the following:
  8.  
  9.     % mkdir temp
  10.     % cd temp
  11.     % csh
  12.     % cd ..
  13.     % rmdir temp
  14.     % exit
  15.     % pwd
  16.  
  17.     I just did that on my 4.2 system and got back "/".  If I remember
  18. correctly, the corresponding sequence on version 6, using sh instead of csh
  19. of course, would give you "".  Is there a standard for what getwd() should
  20. return in the face of an error?  Should there be (i.e. is it worth it)?  It
  21. seems to me that the version 6 answer is somehow more accurate, even if it
  22. is not actually any more useful.
  23.  
  24. Roy Smith <allegra!phri!roy>
  25. System Administrator, Public Health Research Institute
  26. 455 First Avenue, New York, NY 10016
  27.  
  28. Volume-Number: Volume 5, Number 8
  29.  
  30.