[Bug 589496] Re: bash --rcfile does not behave as documented
MestreLion
launchpad at rodrigosilva.com
Mon Feb 6 19:33:58 UTC 2012
This patch fixes the behaviour of --rcfile. It was also reported in
both Debian and upstream. But since Ubuntu is usually much more
responsive, the fix could be patched in Ubuntu until either Debian or
GNU merges.
Also, to speed things up, everyone interested could voice their opinion
in GNU's bug report at https://savannah.gnu.org/support/index.php?107950
, there's a VOTE section that maybe would help getting attention to this
issue
** Patch added: "Do not execute /etc/bash.bashrc if --rcfile is set"
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/589496/+attachment/2720257/+files/0001-SYS_BASHRC-do-not-execute-etc-bash.bashrc-if-rcfile-is-set.patch
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/589496
Title:
bash --rcfile does not behave as documented
Status in “bash” package in Ubuntu:
Confirmed
Status in “bash” package in Debian:
New
Bug description:
Binary package hint: bash
the bash manpage says this about --rcfile
--rcfile file
Execute commands from file instead of the system wide initial‐
ization file /etc/bash.bashrc and the standard personal initial‐
ization file ~/.bashrc if the shell is interactive (see INVOCA‐
TION below).
under INVOCATION it says
When an interactive shell that is not a login shell is started, bash
reads and executes commands from /etc/bash.bashrc and ~/.bashrc, if
these files exist. This may be inhibited by using the --norc option.
The --rcfile file option will force bash to read and execute commands
from file instead of /etc/bash.bashrc and ~/.bashrc.
but when i execute
$ bash --rcfile somercfilewhichreallydoesexistandisreadableandall
it will still read /etc/bash/bashrc (can be verified by adding --verbose)
using lucid with bash 4.1-2ubuntu3
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/589496/+subscriptions
More information about the foundations-bugs
mailing list