Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.unix.wizards Subject: Re: Inside PWD Message-ID: <11324@smoke.BRL.MIL> Date: 17 Oct 89 06:04:47 GMT References: <166@volvo.vd.volvo.se> <1281@virtech.UUCP> <11310@smoke.BRL.MIL> <12291@ulysses.homer.nj.att.com> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 6 In article <12291@ulysses.homer.nj.att.com> gsf@ulysses.homer.nj.att.com (Glenn Fowler[drew]) writes: >the environment c.w.d. can be verified by two quick stat()'s at the top of >getcwd(): Yes, it could, but when the stat check fails then you'd have to resort to one of the other methods; getenv("PWD") in itself is insufficient.