This is the mail archive of the
mailing list for the Cygwin project.
Re: Ls POSIX style slink output
-----BEGIN PGP SIGNED MESSAGE-----
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 firstname.lastname@example.org
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
-----END PGP SIGNATURE-----
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html