Need help with ошибка found in home/superuser/.profile line 23

During start up, just after I log into my account, I get an ошибка message that says:

Error found when loading /home/superuser/.profile:
/home/superuser/.profile line 23: export: '=': not a valid identifier

Схвати в result the session will not be configured correctly. You should fix the problem схвати soon туз feasible.

HerВs the text that's located in my /home/superuser/.profile:

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi
export level = "bandit9"
level=bandit9
level=bandit13
level=bandit13
0
задан 3 January 2016 в 00:23

2 ответа

Удалите пробелы вокруг оператора присваивания = в строке 23:

export level="bandit9"

Для получения дополнительной информации, читайте Усовершенствованное Руководство по созданию сценариев Bash

1
ответ дан 29 September 2019 в 17:26
export level = "bandit9"

у Вас не должно быть пробелов приблизительно =. Это должно быть:

export level="bandit9"

, Хотя я не вижу точку - Вы перезаписываете значения level сразу после.

1
ответ дан 29 September 2019 в 17:26

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

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