Re: Odd behavior with ls about colors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2002-12-02 at 22:45, Harry Putnam wrote:
> Ryan Camick <ryan@endless.eu.org> writes:
> 
> > On Mon, 2002-12-02 at 12:21, Harry Putnam wrote:
> >> I wondered if this is caused by local setting: 
> >> 
> >> Phenomena I observe is when i call `ls' on a directory I see the
> >> symlinks in my chosen color of cyan.  However if I call 
> >>   `ls .misc-snippets' 
> >> 
> >> Or any dot file that is a symlink it doesn't appear in
> >> cyan, but in default color.
> >> 
> >> If I call it like `ls -l .dot-file, then the cyan appears
> >> 
> >> Going to a 7.3 machine I have running I see a direct ls like:
> >>   `ls .misc-snippets' does show the cyan.
> >
> > [~]$ mkdir test
> > [~]$ cd test
> > [test]$ ln -s ../.gnome-desktop
> > [test]$ ls -al
> > Works for me here.  Symlink to .gnome-desktop shows in cyan as you
> > describe.
> 
> That isn't what I described.  What you did works the same for me.
> You called `ls' on a directory.  The phenomena I described only shows
> itself when `ls' is called directly on a dot file.
> 
> Now try: 
>   `cd test'
>  (List the symlink directly [by name] as I described)
>  
>  ls .gnome-desktop  (NOTE: no -al)
> 
> Does it show cyan?

(I symlinked to a directory.  After rereading the original message, I
tried symlinking to a .filename instead.  I am seeing the same behaviour
described by Harry)  The results are essentially the same for a
.directory or .filename, when listed with ls and ls -d repectively, as
noted here:

$ ls .gnome-desktop
Shows contents of symlinked directory or bold white filename
$ ls -ld .gnome-desktop
Shows bold cyan symlink pointing to bold blue ../.gnome-desktop
$ ls -d .gnome-desktop
Shows bold blue .gnome-desktop and does not indicate a symlink.
$ ls -a
Shows listing, including bold cyan .gnome-desktop indicating symlink

> On the 7.3 I mentioned .. it does.

Unfortunately I do not have a 7.3 system around, and I have no idea how
to pull DIR_COLORS out of the fileutils rpm from 7.3 to look at it.

> But not on the 8

> > Also compare DIR_COLORS to your RH7.3 system, and note that RH8 has an
> > additional file, DIR_COLORS.xterm.  Finally, you can check the
> > environment variable which ultimately contains this info (LS_COLORS),
> > comparing it also to RH7.3
> 
> .dir_colors is imported from the 7.3 machine

Okay.  I don't know of anything else to suggest, I'm sure you've looked
into it fairly deeply yourself.

$ eval `dircolors --sh "~/.dir_colors"`
$ [ -z "$LS_COLORS" ] && return

If that fixes it, look at /etc/profile.d/colorls.sh

Check changelogs on fileutils package?

Good luck,
-Ryan

-- 
Powered by Red Hat Linux 8.0



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux