From owner-cvs-lib Mon Feb 6 10:02:27 1995 Return-Path: cvs-lib-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id KAA16170 for cvs-lib-outgoing; Mon, 6 Feb 1995 10:02:27 -0800 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id KAA16149 for ; Mon, 6 Feb 1995 10:01:53 -0800 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA14564; Mon, 6 Feb 1995 19:03:12 +0100 Received: by sax.sax.de (8.6.9/8.6.9-s1) with UUCP id TAA26114 for cvs-lib@freefall.cdrom.com; Mon, 6 Feb 1995 19:03:12 +0100 Received: by bonnie.tcd-dresden.de (8.6.8/8.6.6) id SAA17055; Mon, 6 Feb 1995 18:40:39 +0100 From: j@uriah.sax.de (J Wunsch) Message-Id: <199502061740.SAA17055@bonnie.tcd-dresden.de> Subject: Re: cvs commit: src/lib/libc/gen getcwd.c To: CVS-commiters@freefall.cdrom.com, cvs-lib@freefall.cdrom.com Date: Mon, 6 Feb 1995 18:40:39 +0100 (MET) In-Reply-To: <199502050848.TAA12928@godzilla.zeta.org.au> from "Bruce Evans" at Feb 5, 95 07:48:28 pm X-Phone: +49-351-8141 137 Reply-To: joerg_wunsch@uriah.sax.de X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 1080 Sender: cvs-lib-owner@freebsd.org Precedence: bulk As Bruce Evans wrote: | | >> Our manpage says that getcwd() returns "the" absolute pathname but POSIX | >> says that it returns "an" absolute pathname. ++POSIX; --BSD; :-). | | >so what's your verdict ? | | Fix the manpage and see what happens in practice with the faster getcwd. I hate it. Even if Posix does not require it, all the systems i've seen so far handle it as it used to be: getcwd() [or pwd(1)] returns the canonical path name. If people wish to have a ``fast pwd'' they are free to create an ``alias pwd echo \$cwd'', i personally prefer ``dirs'' to see the shell's idea of the working directory while i mentally rely on (/bin/)pwd returning the canonical path name. Without this feature, there's no easy way to find out the canonical path name, except of manually tracking each single directory level in the returned absolute path name. -- cheers, J"org work: --- no longer --- private: joerg_wunsch@uriah.sax.de Never trust an operating system you don't have sources for. ;-)