bashrc should not depend on /usr mounted
Bug #121992 reported by
Tormod Volden
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: bash
/etc/skel/.bashrc contains calls to dircolors. If /usr is not mounted or not in the $PATH, like in a rescue shell started by a failing fsck, this will fail, and addtionally kick off command-not-found on the error message with funny results.
Adding a test like "&& -x /usr/bin/dircolors" to /etc/skel/.bashrc would help.
command-not-found should better be disabled when starting this rescue shell.
Related branches
Changed in bash: | |
status: | New → In Progress |
To post a comment you must log in.
> command-not-found should better be disabled when starting this rescue shell.
That part belongs to bug #111255.