找回密码
 注册
查看: 1272|回复: 2

为什么/etc/bash.bashrc 起不了作用?

[复制链接]
发表于 2004-8-11 00:11:13 | 显示全部楼层 |阅读模式
我发现每次登录,帐号都没有执行/etc/bash.bashrc 的脚本,而只执行 ~/.bashrc。
我把~/.bashrc 删除,帐号也还是没有执行/etc/bash.bashrc。
而我再执行一个子bash,它就要执行/etc/bash.bashrc脚本了。

请问这是为什么?能解决吗?

我用的 Debian Sarge。

谢谢。
发表于 2004-8-11 09:34:18 | 显示全部楼层
在man bash的INVOCATION一节里第三段有这样的话:
[code:1]
When  bash is invoked as an interactive login shell, or as a non-inter-
       active shell with the --login option, it first reads and executes...
[/code:1]
回复

使用道具 举报

 楼主| 发表于 2004-8-11 09:58:30 | 显示全部楼层
是这样的啊。它先读/etc/profile。

谢谢。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-13 00:42 , Processed in 0.024400 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表