[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: 一切都搞定啦。:-)



>===== Original Message From ha shao <hashao@chinese.com> =====
>On Thu, Aug 30, 2001 at 04:43:58PM +0800, Eric_Hu@sina.com wrote:
>
>bash itself does not know about /etc/bash.bashrc. Now you mentioned
>it, so check /usr/share/doc/bash/README.Debian:
>5. What is /etc/bash.bashrc? It doesn't seem to be documented.
>
>   The Debian version of bash is compiled with a special option
>   (-DSYS_BASHRC) that makes bash read /etc/bash.bashrc before ~/.bashrc
>   for interactive non-login shells. So, on Debian systems,
>   /etc/bash.bashrc is to ~/.bashrc as /etc/profile is to
>   ~/.bash_profile.
>
>But it does not work for you. It could be a bug. fill a bug report
>with `reportbug bash` if you are sure it is does not work.

不,bash能找到/etc/bash.bashrc,但只是在non-login的時候去找.所以我設置在
那裡的環境變量一定要su以後才起作用.
我現在把/etc/profile中查找並起用~/.bashrc的段落改成查找/etc/bash.bashrc,
一切就完美了.:-) (這封信就是用chinput打的)
現在我的系統中bash起動時引用資源文件的順序是:
  login:
	1./etc/profile(調用/etc/bash.bashrc)
	2.~/.bash_profile(調用~/.bashrc)
  non-login:
	1./etc/bash.bashrc
	2.~/.bashrc

--
To UNSUBSCRIBE, email to debian-chinese-gb-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

-- 
| This message was re-posted from debian-chinese-gb@lists.debian.org
| and converted from gb2312 to big5 by an automatic gateway.



Reply to: