bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: $(pwd) != $(/bin/pwd)


From: Greg Wooledge
Subject: Re: $(pwd) != $(/bin/pwd)
Date: Tue, 5 Jan 2010 12:30:10 -0500
User-agent: Mutt/1.4.2.3i

On Mon, Jan 04, 2010 at 01:25:50PM +0000, Stephane CHAZELAS wrote:
> >> address@hidden ~/foo $ echo $PWD
> >> /home/darkk/foo

> Well, if I read
> http://www.opengroup.org/onlinepubs/9699919799/utilities/pwd.html
> correctly, bash pwd should output /home/darkk/bar in that case
> as $PWD does *not* contain an absolute path to the current
> directory.

An "absolute pathname" is one that begins with a / character.  As
opposed to a "relative pathname" which does not, and which is resolved
relative to your current working directory.

$PWD is always an absolute pathname.

You're thinking of "physical" pathnames.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]