|
|
发表于 2005-4-30 15:31:48
|
显示全部楼层
看看你是/etc/passwd里,初始shell是不是/bin/bash?
login shell和interactive和shell在启动时读取的启动脚本是不样的。
我的感觉是login shell只读/etc/profile,
这是bash manpage的两段内容:
When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists.
When a login shell exits, bash reads and executes commands from the file ~/.bash_logout, if it exists. When an interactive shell that is not a login shell is started, bash reads and executes commands from ~/.bashrc, if that file exists. |
|