ubuntu8.04終端機好像預期不去讀.bash_profile - Linux

Table of Contents



因為和朋友共同開發軟體
不過他用的是Scientific Linux
而我是用ubuntu 8.04
我們寫的用來hooking環境變數的script裏面希望可以根據每人的OS不同去做調整
這時候我才發現原來好像ubuntu 8.04開終端機時不會去讀 .bash_profile
(我平常習慣編輯.bashrc 所以沒注意到這件事情)

記得前兩天亂玩的時候有試到如果用

bash -l

我的shell就會去讀.bash_profile

問題:
1.不曉得是哪裡觀念不足, 為啥平實shell不去讀.bash_profile
但用 bash -l就會去讀?
2.有可能設定成開啟終端機時可以自動去讀 .bash_profile嗎?

謝謝!!

--

All Comments