home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / misc / 18249 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  1.5 KB

  1. Path: sparky!uunet!usc!sol.ctr.columbia.edu!samsung!transfer!quiensabe.az.stratus.com
  2. From: dan@quiensabe.az.stratus.com (Dan Danz)
  3. Newsgroups: comp.sys.next.misc
  4. Subject: Re: zsh help --- 2 "quirks"
  5. Message-ID: <5218@transfer.stratus.com>
  6. Date: 29 Jul 92 03:29:13 GMT
  7. References: <1992Jul23.064130.5317@nextdoor.com>
  8. Sender: usenet@transfer.stratus.com
  9. Reply-To: dan@az.stratus.com
  10. Lines: 24
  11.  
  12. John McCracken writes
  13. >If I su root (or any user, for that matter), and then change directories
  14. >and try to edit a file using emacs, emacs DOESN'T FIND THE FILE!  If I do
  15. >a pwd, it tells me that my default directory is where I think I am, but
  16. >emacs tries to open the file in the directory I was in when I "su'd"!
  17. >                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  18.  
  19. I don't know that I "solved it" .. but I know what makes it work right:
  20. run the login when you su.  That is, "su -", and the problem goes away.
  21. Basically, pwd and emacs are using different things, and one of the
  22. quirky things about su without the dash is that some things in the
  23. environment are preserved and others aren't.
  24.  
  25. I haven't bothered to chase it down to the exact environment variables
  26. involved.
  27.  
  28. I hope this helps.
  29.  
  30. --
  31. L. W. "Dan" Danz                  VOS Mail:  Dan_Danz@vos.stratus.com
  32. Sr Consulting Software SE         NeXT Mail: dan@az.stratus.com
  33. Customer Assistance Center        Voice Mail/Pager: (602) 852-3107
  34. Telecommunications Division       Customer Service: (800) 828-8513
  35. Stratus Computer, Inc. 4455 E. Camelback #115-A, Phoenix AZ 85018
  36.