On Sweetmorn, the 4th day of The Aftermath, John Gaughan concluded:
> On Tue, 23 Oct 2001, Gavin McCullagh wrote:
> > On Mon, 22 Oct 2001, Kevin O Riordan wrote:
> > >
> > > strace bash -login -c 'logout' 2>&1 | grep '^open'
> > > That should show all the files bash sources on login ...
> Not quite all, since your supplying a command to run (i.e., it's not an
> interactive shell) the GNU readline library isn't used (readline
Oh yeah. I figured the '-login' would sort that. Oops ...
> A neater way to see what files are read by bash when you login would be
> to run an interactive session like this (and then logout from the new
> shell that's started):
>> strace -o bash.out -e trace=open bash -login
Celebrate Maladay, Fnord.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!