Redhat linux .bash_profile:第12行:语法错误:意外的文件结束

时间:2016-01-07 14:09:05

标签: linux bash redhat

我使用redhat linux并遇到问题:.bash_profile:第12行:语法错误:意外的文件结束 .bashrc中

# .bashrc

# User specific aliases and functions

export JAVA_HOME=/usr/lib/jvm/jdk1.6.0_45
export JRE_HOME=/usr/lib/jvm/jdk1.6.0_45/jre
export PATH=$PATH:/usr/lib/jvm/jdk1.6.0_45/bin:/usr/lib/jvm/jdk1.6.0_45/jre/bin

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

和Bash_profile

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs
PATH=$PATH:$HOME/bin

export PATH

你能告诉我如何解决这个问题吗? 感谢

0 个答案:

没有答案