Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

#Adding flutter and android path
export ANDROID= "$HOME/Public/Android"
export FLUTTER= "$ANDROID/flutter"
export PATH= "$PATH:$FLUTTER/bin"

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

bash: export: `/home/atul/Public/Android': not a valid identifier
bash: export: `/flutter': not a valid identifier
bash: export: `/home/atul/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/bin': not a valid identifier
atul@mintMate:~$ 

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

>Solution :

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

export ANDROID="$HOME/Public/Android"
export FLUTTER="$ANDROID/flutter"
export PATH="$PATH:$FLUTTER/bin"
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading