简体   繁体   中英

Whenever I open my terminal, I get the error -bash: export: `=': not a valid identifier in ubuntu

Whenever I open my terminal, I get the error-bash: export: `=': not a valid identifier in ubuntu

Check your ./bash_profile file and see if there are any white spaces around the = sign. Remove them as in the example below

foo = bar

Would become:

foo=bar

To edit this file I wouldn't recommend a normal text editor as this can use improper quote characters, use an editor like Atom.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM