Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 May 2002 23:43:46 +1000
From:      "Tim J. Robbins" <tjr@FreeBSD.org>
To:        Brian Somers <brian@Awfulhak.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/bin/pwd pwd.1 pwd.c
Message-ID:  <20020518234346.A16088@treetop.robbins.dropbear.id.au>
In-Reply-To: <200205181030.g4IAU9Ws008994@hak.lan.Awfulhak.org>; from brian@Awfulhak.org on Sat, May 18, 2002 at 11:30:09AM %2B0100
References:  <tjr@FreeBSD.org> <200205181030.g4IAU9Ws008994@hak.lan.Awfulhak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, May 18, 2002 at 11:30:09AM +0100, Brian Somers wrote:

> > tjr         2002/05/17 19:47:25 PDT
> > 
> >   Modified files:
> >     bin/pwd              pwd.1 pwd.c 
> >   Log:
> >   Make -L the default, allow both -L and -P to be specified (last one used
> >   matters), fall back to -P mode if we can't get the logical directory.
> >   
> >   Revision  Changes    Path
> >   1.19      +2 -2      src/bin/pwd/pwd.1
> >   1.18      +14 -9     src/bin/pwd/pwd.c
> 
> I don't think this is wise.  I've always been of the understanding 
> that ``pwd'' gives me my logical directory and ``/bin/pwd'' gives me 
> the physical one.  I've written scripts to depend on this.

Ok, I will restore -P as the default for the moment. I understand that
/bin/pwd has historically used getcwd() or similar, but I wasn't aware
that anything would break if pwd gave the logical directory name by default.

What assumptions do the scripts make that would no longer work if -L
was the default?


Tim

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020518234346.A16088>