gcc3.3.2添加环境变量失败,求救.百度没找到
USER="`id -un`"LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
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总是出错:# source /etc/profile
bash: /etc/profile: line 49: syntax error: unexpected end of file
49行是那一样?
页:
[1]