Skip to content
Advertisement

Why do I get this bash error? “export: `/home/atul/Public/Android’: not a valid identifier.”

I did this from the ~ directory.

I typed this command sudo gedit .bashrc

then I appended these lines to the file and saved it.

JavaScript

Now when I open the terminal I get the following error:

JavaScript

Its good that I have fish installed else I wouldn’t have been able to use the terminal. Please help me solve this error.

Advertisement

Answer

You cannot have a space after the = in your assignments. Change them to this.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement