| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Date: | Wed, 17 Jan 2001 22:09:06 +0200 |
| Message-Id: | <200101172009.WAA11316@linux.> |
| From: | "Ehud Karni" <ehud AT unix DOT simonwiesel DOT co DOT il> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: /bin/pwd versus built-in pwd |
| In-reply-to: | <3A64D197.514DD0FA@veritas.com> (message from Bob McGowan on Tue, |
| 16 Jan 2001 14:56:23 -0800) | |
| Organization: | Simon & Wiesel Insurance agency |
| Reply-to: | ehud AT unix DOT simonwiesel DOT co DOT il |
| References: | <OFF186A1CB DOT 218CF568-ON862569D6 DOT 0076B70D AT RCHLAND DOT IBM DOT COM> <3A64D197 DOT 514DD0FA AT veritas DOT com> |
| X-Mailer: | Emacs 20.7.1 rmail (send-msg 1.104) |
| MIME-Version: | 1.0 |
On Tue, 16 Jan 2001 14:56:23 -0800, Bob McGowan <rmcgowan AT veritas DOT com> wrote:
>
> "...That is, all components of the printed name will be actual
> directory names -- none will be symbolic links."
>
> I'd say this is a bug.
Despite what Christopher Faylor <cgf AT redhat DOT com> thinks, I'll say it
is a real bug with critical implications. If you want to check if
directories are the same, or in the same branch absolute paths must
be used. I have many scripts (all of them working on Linux and other
UNIX's) that use `/bin/pwd` to get the absolute path. If the current
situation is kept (i.e. `/bin/pwd` returning the path the shell used
to get to this directory, not the absolute one) then it is a big
immigration problem.
Mr. Bob McGowan suggest a solution that use Cygwin tools, namely:
cygpath -u `cygpath -w `\`/bin/pwd\``
I checked it and it seems to work satisfactory, so why not change
the /bin/pwd to do it automaticly ?
Note. The shell pwd should continue to hold the symbolic path, so cd ..
will get you to the directory you came from.
Ehud.
--
@@@@@@ @@@ @@@@@@ @ @ Ehud Karni Simon & Wiesel Insurance agency
@ @ @ @@ @ Tel: +972-3-6212-757 Fax: +972-3-6292-544
@ @ @ @ @ @@ (USA) Fax and voice mail: 1-815-5509341
@ @ @ @ @ @ Better Safe Than Sorry
http://www.simonwiesel.co.il mailto:ehud AT unix DOT simonwiesel DOT co DOT il
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |