Please help me to understand how bash does its initialization when started as a non-login shell. The manual says it sources ~/.bashrc and that's it. The Arch Wiki says it sources /etc/bash.bashrc and then ~/.bashrc. Sure enough, it does what the Wiki says... It occurred to me to look in the Wiki, after much trouble, the kind of trouble that happens from trusting the manuals. Did I misunderstood the manual or is Arch distributing a patched version? (Somewhat contrary to the Arch way, if I understood it.) TIA Jorge Almeida
On Sat, Oct 8, 2011 at 7:33 PM, Jorge Almeida <jjalmeida@gmail.com> wrote:
Please help me to understand how bash does its initialization when started as a non-login shell. The manual says it sources ~/.bashrc and that's it. The Arch Wiki says it sources /etc/bash.bashrc and then ~/.bashrc. Sure enough, it does what the Wiki says... It occurred to me to look in the Wiki, after much trouble, the kind of trouble that happens from trusting the manuals. Did I misunderstood the manual or is Arch distributing a patched version? (Somewhat contrary to the Arch way, if I understood it.)
It's non-default behavior, but it's not actually a patch - just a compile-time option. See the "_bashconfig" variable in the PKGBUILD.
On Sun, Oct 9, 2011 at 12:52 AM, Ray Kohler <ataraxia937@gmail.com> wrote:
It's non-default behavior, but it's not actually a patch - just a compile-time option. See the "_bashconfig" variable in the PKGBUILD.
If you mean /var/abs/core/bash/PKGBUILD, it's not there. But there is a enable-system-config-files.patch in the same directory. Thanks J.A
On 09/10/11 10:31, Jorge Almeida wrote:
On Sun, Oct 9, 2011 at 12:52 AM, Ray Kohler<ataraxia937@gmail.com> wrote:
It's non-default behavior, but it's not actually a patch - just a compile-time option. See the "_bashconfig" variable in the PKGBUILD.
If you mean /var/abs/core/bash/PKGBUILD, it's not there. But there is a enable-system-config-files.patch in the same directory.
Run abs and look again...
participants (3)
-
Allan McRae
-
Jorge Almeida
-
Ray Kohler