Subject: Re: pwd returning duplicate directory in path
To: Michael L. Hitch <mhitch@lightning.msu.montana.edu>
From: David Laight <david@l8s.co.uk>
List: tech-kern
Date: 02/14/2004 11:09:12
On Fri, Feb 13, 2004 at 07:34:30PM -0700, Michael L. Hitch wrote:
> On Fri, 13 Feb 2004, Manuel Bouyer wrote:
> 
> > >   In my case, pwd usually shows the correct path, but getcwd(3) returns
> > > the bad path:
> >
> > What shell are you using ? Maybe pwd is a builtin in your case ?
> 
>   I am using /bin/sh.

In which case pwd is a builtin - the shell will try to track the current
directory to avoid the expense of evaluating it.


	David

-- 
David Laight: david@l8s.co.uk