From owner-cvs-src@FreeBSD.ORG Mon Jun 11 18:22:29 2007 Return-Path: X-Original-To: cvs-src@freebsd.org Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1D0C616A474; Mon, 11 Jun 2007 18:22:29 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 377B313C4AE; Mon, 11 Jun 2007 18:22:27 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l5BIMGdr086344; Mon, 11 Jun 2007 14:22:22 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Jens Schweikhardt Date: Mon, 11 Jun 2007 14:22:05 -0400 User-Agent: KMail/1.9.6 References: <200602041447.k14ElJPa016989@repoman.freebsd.org> In-Reply-To: <200602041447.k14ElJPa016989@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706111422.06334.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 11 Jun 2007 14:22:22 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/3400/Mon Jun 11 13:41:37 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/bin/sh main.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2007 18:22:29 -0000 On Saturday 04 February 2006 09:47:19 am Jens Schweikhardt wrote: > schweikh 2006-02-04 14:47:19 UTC > > FreeBSD src repository > > Modified files: > bin/sh main.c > Log: > Initialize PWD early on (don't expect it to be inherited from the > environment or set it only when changing directories with cd). > > PR: standards/92640 > > Revision Changes Path > 1.27 +2 -0 src/bin/sh/main.c I just recently updated my system to contain this and it has broken all my /bin/sh shell scripts that use p4 which is highly annoying. Specifically, I use the default freebsd layout of: /home -> /usr/home and /home/jhb as my homedir in the password file. I also use tcsh as my login shell. tcsh understands that it starts out in /home/jhb without issue, but exec'ing sh rewrites $PWD which in turn confuses p4 since it uses $PWD to figure out if a path is under the client path. Can we at least have an option to turn this off? [14:18:58] (ttyp7) jhb@mutex:~ > echo $PWD /home/jhb [14:19:05] (ttyp7) jhb@mutex:~ > sh $ echo $PWD /usr/home/jhb $ Either that or I have to go hack all my scripts to rewrite $PWD. :( -- John Baldwin