[Bug 1088131] Re: ls --color doesn't recognize an arc archive as an archive

Javier P.L. chilicuil at ubuntu.com
Tue Feb 12 22:54:34 UTC 2013


Thank you for taking the time to report this bug and helping to make
Ubuntu better. I was able to reproduce in the last Ubuntu version,
Raring 13.04, looking at the code seems like the problem can be solved
by adding:

diff --git a/src/dircolors.hin b/src/dircolors.hin
index 6dfd113..e56c3c3 100644
--- a/src/dircolors.hin
+++ b/src/dircolors.hin
@@ -110,6 +110,7 @@ EXEC 01;32
 #.csh 01;32
 
  # archives or compressed (bright red)
+.arc 01;31
 .tar 01;31
 .tgz 01;31
 .arj 01;3

I'll forward it to upstream, thanks again for you report

** Changed in: coreutils (Ubuntu)
     Assignee: (unassigned) => Javier P.L. (chilicuil)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/1088131

Title:
  ls --color doesn't recognize an arc archive as an archive

Status in “coreutils” package in Ubuntu:
  Confirmed

Bug description:
  When listing the content of a directory with ls --color an arc archive
  isn't recognized as an such and isn't displayed with the appropriate
  colour. The following terminal output should give an idea:

  ubuntu at ubuntu:~/test$ ls
  sources.list
  ubuntu at ubuntu:~/test$ tar cfz sources.taz sources.list
  ubuntu at ubuntu:~/test$ arc a sources.arc sources.list
  Creating new archive: sources.arc
  Adding file:   sources.list   analyzing, crunched, done. (29%)
  ubuntu at ubuntu:~/test$ ls
  sources.arc  sources.list  sources.taz

  Note that sources.taz would be correctly displayed in red, but not
  sources .arc which nevertheless is an archive and should also be
  displayed with the same colour. So the $LS_COLORS environment variable
  needs to be adjusted accordingly by default (the correct value to add
  would probably be "01;31", and arc is absent from the output of
  dircolors -p).

  ProblemType: BugDistroRelease: Ubuntu 12.04
  Package: coreutils 8.13-3ubuntu3
  ProcVersionSignature: Ubuntu 3.2.0-29.46-generic-pae 3.2.24
  Uname: Linux 3.2.0-29-generic-pae i686
  ApportVersion: 2.0.1-0ubuntu12
  Architecture: i386
  CasperVersion: 1.315
  Date: Sun Dec  9 06:33:54 2012LiveMediaBuild: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release i386 (20120817.3)
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bashSourcePackage: coreutils
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/1088131/+subscriptions




More information about the foundations-bugs mailing list