Glam Prestige Journal

Bright entertainment trends with youth appeal.

I'm trying to set AVARIABLE in my bash_profile:

echo export "AVARIABLE=example" >> ~/.bash_profile

then

source ~/.bash_profile

After that, AVARIABLE should be working, but...

bash: AVARIABLE: command not found

What in the hell could be causing this?

3

1 Answer

To reference an environment variable, you'd need to preface it with $ : $AVARIABLE

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy