Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!rutgers!mcnc!duke!juliet!khera From: khera@juliet.cs.duke.edu (Vick Khera) Newsgroups: comp.lang.perl Subject: Re: How to find working directory? Message-ID: <21198@duke.cs.duke.edu> Date: 3 Aug 90 13:36:00 GMT References: <139945@sun.Eng.Sun.COM> <8974@jpl-devvax.JPL.NASA.GOV> Sender: news@duke.cs.duke.edu Reply-To: khera@cs.duke.edu (Vick Khera) Organization: Duke University CS Dept., Durham, NC 27706 Lines: 22 In article <8974@jpl-devvax.JPL.NASA.GOV> lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) writes: :In article <139945@sun.Eng.Sun.COM> petolino@joe.Eng.Sun.COM (Joe Petolino) writes: :: The programs I'm invoking after the chdir() expect $PWD to be accurate. : :Then the programs you're invoking are highly non-portable. Only certain :shells keep track of PWD. Any C program that uses chdir and then invokes :one of these programs will confuse it. : :I stop just short of saying the programs are busted. : :Larry GNU Emacs uses PWD if it exists. my normal login shell updates PWD but /bin/csh doesn't (under 4.3BSD) so when i fire up emacs after su'ing to another user, emacs gets the wrong directory. i'd say this is busted. v. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vick Khera (919) 660-6528 Department of Computer Science ARPA: khera@cs.duke.edu Duke University UUCP: ..!{mcnc,decvax}!duke!khera Durham, NC 27706