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

By Hazel
at 2008-11-25T12:19
at 2008-11-25T12:19
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嗎?
謝謝!!
--
Tags:
Linux
All Comments
Related Posts
如何讓NAS檔案可以在不同台Linux上看見

By Charlie
at 2008-11-25T11:53
at 2008-11-25T11:53
多語版 PCMan X v0.3.8

By Charlie
at 2008-11-25T09:37
at 2008-11-25T09:37
amsn與emesene無法順利執行

By Lauren
at 2008-11-25T07:40
at 2008-11-25T07:40
amsn與emesene無法順利執行

By Catherine
at 2008-11-25T04:33
at 2008-11-25T04:33
Apache的virtualhost設定問題

By Lily
at 2008-11-25T01:28
at 2008-11-25T01:28