Ошибка в исходном файле ~ / .profile [closed]

~/.profile (line 25): Missing end to balance this if statement
if [ -d "$HOME/local/bin" ] ; then
^
from sourcing file ~/.profile
    called on standard input

source: Error while reading file “/home/user/.profile”
0
задан 25 March 2019 в 16:37

1 ответ

На основе ошибки, о которой сообщают Вы, кажется, получаете стиль Границы .profile в fish оболочка:

$ fish
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
 ~> 
 ~> source ~/.profile
Missing end to balance this if statement
~/.profile (line 22): if [ -r "$HOME/env_vars" ]; then
                      ^
from sourcing file ~/.profile
    called on standard input

source: Error while reading file “/home/steeldriver/.profile”

Условный синтаксис не совместим между двумя семействами оболочек: см., например, Учебное руководство по рыбе: Условные выражения (Если, Еще, Переключатель)

4
ответ дан 25 October 2019 в 23:24

Другие вопросы по тегам:

Похожие вопросы: