I am trying to set a environment variable in OS X which has a equals sign in the value but when I echo that variable I don't get anything. Without the equals sign it is fine. How do I set a equals sign as the value?
Asked
Active
Viewed 265 times
-1
-
http://stackoverflow.com/a/2821183/2836621 – Mark Setchell Aug 20 '16 at 19:57
-
That talks about the name not the value – Sidhant Aug 20 '16 at 21:05
-
2Please show us what you're actually trying to set. – kojiro Aug 20 '16 at 21:16
-
for example export test='hello there = hello' – Sidhant Aug 23 '16 at 18:33
-
This works fine for me in bash. Please provide a full example of the problem including the commands you entered and the output. – kojiro Sep 01 '16 at 13:25
-
export test='hello=123' echo $test is giving an empty line. export test='hello123' echo $test gives hello123 – Sidhant Sep 01 '16 at 18:53