Re: [gentoo-user] man bash document doesn't match real life bash.

2007-09-23 Thread Etaoin Shrdlu
On Sunday 23 September 2007, Mrugesh Karnik wrote: > From man bash: > > ``When bash is invoked as an interactive login shell, or as a > non-interactive shell with the --login option, it first reads and > executes commands from the file /etc/profile, if that file exists. > After reading tha

Re: [gentoo-user] man bash document doesn't match real life bash.

2007-09-22 Thread Mrugesh Karnik
> Neil Bothwick wrote: > > On Wed, 19 Sep 2007 17:03:16 +0200, David Harel wrote: > >> I was surprised to find that in man bash the reference to initialization > >> files is wrong. The bash manual says it reads initialization files from > >> /etc/profile: > >> FILES > >>/bin/bash > >>

Re: [gentoo-user] man bash document doesn't match real life bash.

2007-09-22 Thread David Harel
As Etaoin Shrdlu said, bash does not even start /etc/profile. Below grep on strace output on bash: $ grep profile /tmp/bash.trace $ $ # My comment, it got nothing $ grep bashrc /tmp/bash.trace open("/etc/bash/bashrc", O_RDONLY|O_LARGEFILE) = 3 read(3, "# /etc/bash/bashrc\n#\n# This file"..., 2540)

Re: [gentoo-user] man bash document doesn't match real life bash.

2007-09-19 Thread Albert Hopkins
On Wed, 2007-09-19 at 17:03 +0200, David Harel wrote: > I was surprised to find that in man bash the reference to > initialization > files is wrong. The bash manual says it reads initialization files > from > /etc/profile: > FILES >/bin/bash > The bash executable >/etc

Re: [gentoo-user] man bash document doesn't match real life bash.

2007-09-19 Thread Etaoin Shrdlu
On Wednesday 19 September 2007, Neil Bothwick wrote: > On Wed, 19 Sep 2007 17:03:16 +0200, David Harel wrote: > > Where real life uses /etc/bash/bashrc > > This part is taken from strace dump: strace bash -i > > open("/etc/bash/bashrc", O_RDONLY|O_LARGEFILE) = 3 > > It reads both, this is from /e

Re: [gentoo-user] man bash document doesn't match real life bash.

2007-09-19 Thread Neil Bothwick
On Wed, 19 Sep 2007 17:03:16 +0200, David Harel wrote: > I was surprised to find that in man bash the reference to initialization > files is wrong. The bash manual says it reads initialization files from > /etc/profile: > FILES >/bin/bash > The bash executable >/etc/p

[gentoo-user] man bash document doesn't match real life bash.

2007-09-19 Thread David Harel
Hi, I was surprised to find that in man bash the reference to initialization files is wrong. The bash manual says it reads initialization files from /etc/profile: FILES /bin/bash The bash executable /etc/profile The systemwide initialization file, executed