LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-10-2017, 01:51 PM   #16
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,426
Blog Entries: 10

Rep: Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249

Quote:
Originally Posted by GazL View Post
To the best of my understanding, ~.bashrc doesn't get sourced for a login shell (interactive or otherwise) unless you take steps like I have done above.
hot damn, yes.
there's a line in my ~/.bash_profile to source ~/.bashrc.
 
Old 11-10-2017, 07:06 PM   #17
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010
There are conditional statements is those files that prevent duplication. You need to learn about the shell itself in order to understand how sourcing works. Just looking at the files probably will not reveal exactly what is going on.

This might help clear things up: https://www.google.com/search?q=bash...utf-8&oe=utf-8
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Executing bash scripts. Differences beetween ./ and . ./ barbac Linux - Newbie 1 06-18-2015 10:08 AM
Understanding file size differences across filesystems someshpr Linux - General 3 03-20-2015 09:09 PM
Understanding the key differences between LXC and Docker jeremy Linux - News 0 09-12-2014 11:50 AM
[SOLVED] Can anyone help me with fully understanding and organizing my bash startup scripts? Bowlslaw Slackware 2 08-07-2011 03:20 PM
BASH Shell Differences: Login or Interactive theKbStockpiler Programming 10 02-21-2011 01:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration