Skip to content

rcfiles: We need to cope correctly when the rcfile does not have a newline at the end and we need to append the source command. #2636

@roxennnn

Description

@roxennnn

I am totally new to Rust and I wanted to install it. I followed the installation guide on the website. I use Linux Mint, thus I ran the following in a terminal:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

After this, when I open a new terminal, the bash: export: `/home/user/.cargo/env': not a valid identifier message appears on top of the terminal.

I figured out it is due to the following line which has been added during the installation in the .bashrc file:

export PATH=$PATH:$HOME/.local/binsource "$HOME/.cargo/env"

In the end, I solved the identifier error changing the previous line in the .bashrc file with this:

export PATH=$PATH:$HOME/.local/binsource:$HOME/.cargo/env

I open this issue because I think fixing this in the installation procedure could help some new inexperienced user (like me) facing it at the end of the installation procedure

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions