0

What does a line of code like this do?

if ("$MY_VARIABLE" == "some_string") ... 

Is that just how csh interprets variables as strings for comparison and assignment?

JJJ
  • 32,902
  • 20
  • 89
  • 102
JDS
  • 16,388
  • 47
  • 161
  • 224

1 Answers1

2

The quotes mean that the variable will be expanded as a single argument with spaces intact, rather than broken into multiple pieces at whitespace.

Chris Dodd
  • 119,907
  • 13
  • 134
  • 226