X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <f79359b60805230815k635c16cbub5cbda0d17c0b9a8@mail.gmail.com>
Date: Fri, 23 May 2008 11:15:08 -0400
From: "Gustavo Seabra" <gustavo.seabra@gmail.com>
To: cygwin@cygwin.com
Subject: cd not following windows shortcuts
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Hi All,

I wonder if 'cd' in Cygwin is supposed to follow windows shortcuts.
According to this message:

    http://cygwin.com/ml/cygwin/2005-08/msg00546.html

I'd assume it is. However, I'm seeing the following in my system;

In my $HOME dir (Cygwin) I have a Cygwin-symbolic link to my "Desktop"
(windows folder), and it works just fine:

    11:09:56 [~]$ ls
    Desktop@  My Documents@  local/  temp/  work@
    11:09:56 [~]$ cd Desktop
    11:10:34 [Desktop]$

So far, so good. Now, in the desktop, I have a windows shortcut to a
personal directory:

    11:10:34 [Desktop]$ ls
    CHM 3400.lnk*
    11:10:36 [Desktop]$

The problem is that, if I try to cd into that directory, it doesn't work:

    11:13:33 [Desktop]$ cd CHM\ 3400.lnk
    bash: cd: CHM 3400.lnk: Not a directory
    11:13:36 [Desktop]$

Right, it isn't a directory. But shouldn't Cygwin convert the path and
follow it just the same? Is there something wrong with the behavior
I'm seeing?

Thanks a lot,
Gustavo.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

