Article View: gnu.emacs.help
Article #189532Re: Xemacs on IBM/RS6000, ~/ is always the dir...
From: Vick Khera
Date: Fri, 25 Jan 1991 15:43
Date: Fri, 25 Jan 1991 15:43
31 lines
2464 bytes
2464 bytes
In article <1991Jan25.050215.10623@csn.org> rademach@tramp.Colorado.EDU (Simon Rademacher) writes: In article <9101241631.AA17699@acf4.NYU.EDU> lixj@acf4.NYU.EDU (Xiaojian Li) writes: >I recently compiled Xemasc18.56.1 on IBM/RS6000 320. It works well under >ksh, but seems to have trouble under csh: the starting dir is always ~/ >no matter which directory I invoke xemacs from. Does anybody have the >same problem? Isn't that funny, I just made a similar post. For me the problem occurs with tcsh and sh. Don't have ksh to try it with. in your posting, i don't recall seeing you mention that you use tcsh... you must have an older version of tcsh, which doesn't update the PWD environment variable. emacs blindly uses the value of PWD to determine the current directory if that variable exists. if it doesn't exist, then it figures out the directory using other means, presumably getcwd() or some such. what you need to do is either unsetenv PWD when you run tcsh or get the newest version of tcsh which does this for you. you can always fix tcsh to update $PWD for you, too. to check this, go into some subdirectory and echo $PWD. if the value is your home directory, then that is your problem. if so, then just unsetenv PWD when you start up tcsh and things will work fine. v. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vick Khera, Gradual Student/Systems Guy Department of Computer Science ARPA: khera@cs.duke.edu Duke University UUCP: ...!mcnc!duke!khera Durham, NC 27706 (919) 660-6528
Technical Details
Message-ID:
<KHERA.91Jan25104302@thneed.cs.duke.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!spool2.mu.edu!samsung!zaphod.mps.ohio-state.edu!rpi!bu.edu!shelby!mcnc!duke!kheraReferences:
<9101241631.AA17699@acf4.NYU.EDU> <1991Jan25.050215.10623@csn.org>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,f43621390f58abe9 X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-01-25 20:20:06 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!spool2.mu.edu!samsung!zaphod.mps.ohio-state.edu!rpi!bu.edu!shelby!mcnc!duke!khera From: khera@thneed.cs.duke.edu (Vick Khera) Newsgroups: gnu.emacs.help Subject: Re: Xemacs on IBM/RS6000, ~/ is always the dir... Message-ID: <KHERA.91Jan25104302@thneed.cs.duke.edu> Date: 25 Jan 91 15:43:01 GMT References: <9101241631.AA17699@acf4.NYU.EDU> <1991Jan25.050215.10623@csn.org> Sender: news@duke.cs.duke.edu Organization: Duke University CS Dept., Durham, NC Lines: 31 Nntp-Posting-Host: thneed.cs.duke.edu In-reply-to: rademach@tramp.Colorado.EDU's message of 25 Jan 91 05:02:15 GMT