if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTC
export PATH=/usr/local/arm/3.3.2/bin:$PATH
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done
unset i
unset pathmunge
;
我保存以上添加的后,用source /etc/profile总是出错:[root@localhost root]# source /etc/profile
bash: /etc/profile: line 49: syntax error: unexpected end of file