[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to make the colors different for a symbol link pointing to a fil
From: |
Eric Blake |
Subject: |
Re: How to make the colors different for a symbol link pointing to a file and symbol link pointing to a dir? |
Date: |
Thu, 31 Dec 2009 19:18:42 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Chris Jones on 12/31/2009 8:31 AM:
> $ ls -alh -F --full-time --color=always
>
> drwxr-xr-x 7 user user 4.0K 2009-12-31 [..] -0500 ./
> drwxrwxrwt 27 root root 12K 2009-12-31 [..] -0500 ../
> drwxr-xr-x 2 user user 4.0K 2009-12-31 [..] -0500 d1/
> -rw-r--r-- 1 user user 0 2009-12-31 [..] -0500 f1
> lrwxrwxrwx 1 user user 3 2009-12-31 [..] -0500 argetmld1: -> d1:
> coreutils 6.10-6 The GNU core utilities
Wow, that's old. The latest stable version is 8.2. I'm not reproducing
your behavior, whether I tested with 7.0 or the latest git. It looks like
ls is misinterpreting the 'ln=target' portion of LS_COLORS, and trying to
treat the last 5 characters as literal bytes to output for the color
sequence rather than treating the whole directive as a command to swap the
coloring rules over to following through the symlink. I didn't see
anything in the NEWS that specifically mentions a change in that area, but
I may have overlooked something.
But rest assured that your filesystem was not altered - the spurious
'arget' in the listing comes from a bad attempt at outputting a color
code, not from a changed name.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAks9W4IACgkQ84KuGfSFAYDCWwCeIozSzll8BJkMul44RwNqvoU1
zr0AoJ5WOFNUyLyX6ToaRJjH6wVTSlDz
=zCQB
-----END PGP SIGNATURE-----
- Re: How to make the colors different for a symbol link pointing to a file and symbol link pointing to a dir?, (continued)
- Re: How to make the colors different for a symbol link pointing to a file and symbol link pointing to a dir?, Pádraig Brady, 2009/12/30
- Re: How to make the colors different for a symbol link pointing to a file and symbol link pointing to a dir?, Peng Yu, 2009/12/30
- Re: How to make the colors different for a symbol link pointing to a file and symbol link pointing to a dir?, Eric Blake, 2009/12/30
- Re: How to make the colors different for a symbol link pointing to a file and symbol link pointing to a dir?, Chris Jones, 2009/12/31
- Re: How to make the colors different for a symbol link pointing to a file and symbol link pointing to a dir?, Eric Blake, 2009/12/31
- Re: How to make the colors different for a symbol link pointing to a file and symbol link pointing to a dir?, Chris Jones, 2009/12/31
- Re: How to make the colors different for a symbol link pointing to a file and symbol link pointing to a dir?, Peng Yu, 2009/12/31
- dircolors "LINK target" bug?, Chris Jones, 2009/12/31
- Re: How to make the colors different for a symbol link pointing to a file and symbol link pointing to a dir?,
Eric Blake <=