我正试图通过从我的电脑上登录ssh在我的大学集群中安装一个软件。因此,我首先通过ssh登录,然后根据软件文档在我的bash_profile中添加以下行:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export PRIMAL="/projects/imputation_fam/primal"
export APPS="/projects/imputation_fam/apps"
source /projects/imputation_fam/primal/system/dots/bash_profile但是,当我尝试在上面的编辑之后运行~/.bash_profile时,我会得到以下错误:
--bash: /homes/user/.bashrc: line 10: unexpected EOF while looking for matching `"'
--bash: /homes/user/.bashrc: line 12: syntax error: unexpected end of file任何帮助都将不胜感激。
编辑:.bashrc文件
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
umask u=rwx,g=rwx,o=
"发布于 2015-11-09 04:44:57
删除.bashrc中的尾随引号。
它应该如下所示:
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
umask u=rwx,g=rwx,o=https://unix.stackexchange.com/questions/241721
复制相似问题