bash_profileの実行中に予期しないEOFエラーが発生しました。

bash_profileの実行中に予期しないEOFエラーが発生しました。

私のPCで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=
     "

ベストアンサー1

.bashrc.

次のようにする必要があります。

# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
     . /etc/bashrc
fi
# User specific aliases and functions
umask u=rwx,g=rwx,o=

おすすめ記事