Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 140947
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 140628
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Michael A. Smith <michael@smith-li.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
dot-bashrc dot-bashrc text/plain Michael A. Smith 2006-07-18 11:07 0000 1007 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 140947 depends on: Show dependency tree
Bug 140947 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-07-18 11:06 0000
Just happened to notice a minor "bug waiting to happen" in dot-bashrc. If
/etc/DIR_COLORS is missing and ~/.dir_colors also doesn't exist, the default
~/.bashrc will complain to stderr, which is bad because it shouldn't have any
output.

Patch coming...

------- Comment #1 From Michael A. Smith 2006-07-18 11:07:40 0000 -------
Created an attachment (id=92145) [details]
dot-bashrc

--- dot-bashrc.orig     2006-07-18 14:06:00.000000000 -0400
+++ dot-bashrc  2006-07-18 14:05:45.000000000 -0400
@@ -17,7 +17,7 @@
 # Enable colors for ls, etc.  Prefer ~/.dir_colors #64489
 if [[ -f ~/.dir_colors ]]; then
        eval `dircolors -b ~/.dir_colors`
-else
+elif [[ -f /etc/DIR_COLORS ]] ; then
        eval `dircolors -b /etc/DIR_COLORS`
 fi

------- Comment #2 From Jakub Moc (RETIRED) 2006-07-18 12:58:54 0000 -------
If /etc/DIR_COLORS is missing, then your coreutils install is broken.

------- Comment #3 From Michael A. Smith 2006-07-19 12:05:46 0000 -------
An embedded system could work without /etc/DIR_COLORS. Furthermore
/etc/bash/bashrc takes care not to break when /etc/DIR_COLORS is missing, why
shouldn't /etc/skel/.bashrc?

------- Comment #4 From Michael A. Smith 2006-07-20 12:53:24 0000 -------
<@vapier> kojiro: re-open it and re-assign it to base-system

------- Comment #5 From SpanKY 2006-07-30 16:20:59 0000 -------

*** This bug has been marked as a duplicate of 140628 ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug