From owner-cvs-lib Mon Feb 6 12:22:56 1995 Return-Path: cvs-lib-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id MAA21391 for cvs-lib-outgoing; Mon, 6 Feb 1995 12:22:56 -0800 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id MAA21385; Mon, 6 Feb 1995 12:22:49 -0800 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id HAA12179; Tue, 7 Feb 1995 07:20:06 +1100 Date: Tue, 7 Feb 1995 07:20:06 +1100 From: Bruce Evans Message-Id: <199502062020.HAA12179@godzilla.zeta.org.au> To: joerg_wunsch@uriah.sax.de, phk@ref.tfs.com Subject: Re: cvs commit: src/lib/libc/gen getcwd.c Cc: CVS-commiters@freefall.cdrom.com, cvs-lib@freefall.cdrom.com Sender: cvs-lib-owner@freebsd.org Precedence: bulk >> | not true: >> | PWD=X /bin/pwd >> >> Huh? Nope, the whole trick does only work since the shell clobbers >> PWD immediately, so the above won't work. >go read the source OK ???? More on shells not actually exporting $PWD: I guess the benchmark that finds getcwd() slow is stupider that I first thought. It may just test the shell's pwd command, which may be an external command, a builtin using getcwd, or a builtin using $PWD. Bruce