www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT 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 AT byu DOT 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 AT cygwin DOT com, "Matt Seitz (matseitz)" <matseitz AT cisco DOT com> |
Subject: | Re: Ls POSIX style slink output |
References: | <70952A932255A2489522275A628B97C3052E9663 AT xmb-sjc-233 DOT amer DOT cisco DOT com> |
In-Reply-To: | <70952A932255A2489522275A628B97C3052E9663@xmb-sjc-233.amer.cisco.com> |
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 |
-----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 AT byu DOT 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |