Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
.bash_profile and .bashrc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
dman777
Veteran
Veteran


Joined: 10 Jan 2007
Posts: 1004

PostPosted: Wed Jun 11, 2008 6:26 am    Post subject: .bash_profile and .bashrc Reply with quote

This is refering to the home users directory. .bashrc is not an executable file so how is it that it can be sourced in .bash_profile?
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9507
Location: beyond the rim

PostPosted: Wed Jun 11, 2008 6:47 am    Post subject: Reply with quote

Executing a file and sourcing a file are different operations. For scripts (in any language) execute permissions are mostly irrelevant, you can always execute them by invoking the interpreter explicitly as long as you have read permissions. Execute permissions just determine if you can call the script directly (without having to specify the interpreter yourself).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum