‘\r’:命令找不到-.bashrc/.bash_profile
JAVA_HOME
.bashrc
.bashrc:
export PATH="$JAVA_HOME/bin:$PATH" export JAVA_HOME=$JAVA_HOME:"/cygdrive/c/Program Files (x86)/Java/jdk1.7.0_05"
.bash_profile:
if [ -f ~/.bashrc ]; then source ~/.bashrcfi
赛根跑:
-bash: $'\377\376if': command not found-bash: $'then\r': command not found: No such file or directorysu //.bashrc-bash: /cygdrive/c/Users/jhsu//.bash_profile: line 3: syntax error near unexpected token `fi' -bash: /cygdrive/c/Users/jhsu//.bash_profile: line 3: `fi'
$ echo $HOME/cygdrive/c/Users/jhsu $ echo ~/cygdrive/c/Users/jhsu/
茅侃侃
跃然一笑
相关分类