From owner-cvs-all Sat May 18 6:50:49 2002 Delivered-To: cvs-all@freebsd.org Received: from treetop.robbins.dropbear.id.au (198.a.002.mel.iprimus.net.au [203.134.133.198]) by hub.freebsd.org (Postfix) with ESMTP id 0DBB937B403; Sat, 18 May 2002 06:50:40 -0700 (PDT) Received: from treetop.robbins.dropbear.id.au (localhost [127.0.0.1]) by treetop.robbins.dropbear.id.au (8.12.2/8.12.2) with ESMTP id g4IDhleo016136; Sat, 18 May 2002 23:43:47 +1000 (EST) (envelope-from tim@treetop.robbins.dropbear.id.au) Received: (from tim@localhost) by treetop.robbins.dropbear.id.au (8.12.2/8.12.2/Submit) id g4IDhlEe016135; Sat, 18 May 2002 23:43:47 +1000 (EST) Date: Sat, 18 May 2002 23:43:46 +1000 From: "Tim J. Robbins" To: Brian Somers 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> References: <200205181030.g4IAU9Ws008994@hak.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200205181030.g4IAU9Ws008994@hak.lan.Awfulhak.org>; from brian@Awfulhak.org on Sat, May 18, 2002 at 11:30:09AM +0100 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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