home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / misc / 18276 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.4 KB  |  36 lines

  1. Newsgroups: comp.sys.next.misc
  2. Path: sparky!uunet!darwin.sura.net!mips!mips!decwrl!csus.edu!netcomsv!nextdoor!john
  3. From: john@nextdoor.com (John McCracken)
  4. Subject: Re: zsh help --- 2 "quirks"
  5. Message-ID: <1992Jul30.072140.2473@nextdoor.com>
  6. Sender: john@nextdoor.com
  7. Reply-To: john@nextdoor.com
  8. Organization: Nextdoor Software, San Jose, CA, USA
  9. References: <5218@transfer.stratus.com>
  10. Date: Thu, 30 Jul 1992 07:21:40 GMT
  11. Lines: 23
  12.  
  13. In article <5218@transfer.stratus.com> dan@quiensabe.az.stratus.com (Dan Danz)  
  14. writes:
  15. > John McCracken writes
  16. > >If I su root (or any user, for that matter), and then change directories
  17. > >and try to edit a file using emacs, emacs DOESN'T FIND THE FILE!  If I do
  18. > >a pwd, it tells me that my default directory is where I think I am, but
  19. > >emacs tries to open the file in the directory I was in when I "su'd"!
  20. > >                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  21. > I don't know that I "solved it" .. but I know what makes it work right:
  22. > run the login when you su.  That is, "su -", and the problem goes away.
  23. > Basically, pwd and emacs are using different things, and one of the
  24. > quirky things about su without the dash is that some things in the
  25. > environment are preserved and others aren't.
  26.  
  27. It works, and that's good enough for me.  Thanks!
  28.  
  29.  
  30. -- 
  31.  John McCracken                   White Computers
  32.  john@nextdoor.com                  Can't Jump
  33.  NeXTMail welcome
  34.