X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <46F1C712.7050309@byu.net>
Date: Wed, 19 Sep 2007 19:04:18 -0600
From: Eric Blake <ebb9@byu.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin@cygwin.com, "Matt Seitz (matseitz)" <matseitz@cisco.com>
Subject: Re: Ls POSIX style slink output
References: <70952A932255A2489522275A628B97C3052E9663@xmb-sjc-233.amer.cisco.com>
In-Reply-To: <70952A932255A2489522275A628B97C3052E9663@xmb-sjc-233.amer.cisco.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Matt Seitz (matseitz) on 9/19/2007 5:32 PM:
> What do you think of changing "ls -l" to display symbolic links using
> POSIX style paths instead of Windows style?
> 
> When I run "ls -l /etc", the symbolic links are displayed using Windows
> format ("C:\WINDOWS\system32\drivers\etc\hosts").  It would be easier to
> copy and paste the output to a "cd" command if "ls -l" displayed a POSIX
> style path ("/cygdrive/c/WINDOWS/system32/drivers/etc/hosts").

Symlinks merely contain whatever text they were created with.  If the text
it was created with was Windows style, then readlink(2) will not translate
it.  I suppose I could try to patch ln(1) to posix-ify any name that looks
like a Windows filename before actually calling symlink(2), but I'm not
sure it buys much.  So for now, it's a feature, not a bug.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
volunteer cygwin coreutils maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG8ccS84KuGfSFAYARAiOFAJ0URAAePBKMruh7nJ6Es6jalbTGTQCeLeVE
lb9xV3saURobKFO1VcP1wqU=
=z5Kf
-----END PGP SIGNATURE-----

--
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/

