bash:ソース:コマンドが見つかりません[閉じる]

bash:ソース:コマンドが見つかりません[閉じる]

端末を開くと、次のエラーが発生し続けます。私はFedora 19を使用しています。

bash:ソース:コマンドが見つかりません

上記のエラーのため、ログインしようとすると画面が空白として表示されることがあります。その後、.bashrcファイルと.bash_profileファイルで名前を変更し、システムが正しく実行されました。したがって、これらのファイルのいずれかに問題があるようですが、それが何であるかわかりません。

私のbashrcファイルとbash_profileファイルは次のようになります。

[gmahan@localhost ~]$ cat .bashrc
# .bashrc

[ -z "$PS1" ] && return

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

# User specific aliases and functions

[gmahan@localhost ~]$ cat .bash_profile
# .bash_profile

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

# User specific environment and startup programs

誰でも問題が何であるかを教えてもらえますか?ありがとうございます。

ベストアンサー1

エラーは次の行によって発生します。

Source global definitions

これはコマンドではなくコメントでもあります。行の前にを追加する#とエラーが消えます。

# Source global definitions

おすすめ記事