delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/05/23/11:15:42

X-Recipient: archive-cygwin AT delorie DOT 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 DOT seabra AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: cd not following windows shortcuts
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019