-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
  • 47,166
  • 7
  • 60
  • 95
Sidhant
  • 401
  • 6
  • 16

1 Answers1

0

Do you mean this:

export fred="abc=123"
echo "$fred"
abc=123
Mark Setchell
  • 169,892
  • 24
  • 238
  • 370