LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] BASH confusion

[ILUG] BASH confusion

Kevin O Riordan kor at compsoc.com
Wed Oct 24 14:54:48 IST 2001


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'
<snip>
> > > 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


Cool !

-kev

-- 
Celebrate Maladay, Fnord.




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell