-1

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?

Thomas Dickey
  • 51,086
  • 7
  • 70
  • 105
Sidhant
  • 421
  • 1
  • 6
  • 17

1 Answers1

1

Do you mean this:

export fred="abc=123"
echo "$fred"
abc=123
Mark Setchell
  • 191,897
  • 31
  • 273
  • 432