A S
A S

Reputation: 1

setenv usage in csh shell - unexpected results

I have a big csh file, where I use set env command, to override the variable value.

setenv THE_VAR TV_012_3_45
echo the number: $THE_VAR

However, in the output file, it gets

echo the number: TV_678_9_10

I donot understand what might be the reason. There are a lot of scripts that might get called within this, csh file, but I just wanted to override the existing variable. No error or lead was found. Any ideas on what can be done.

I am expecting, like echo the number: TV_012_3_45

Upvotes: 0

Views: 195

Answers (0)

Related Questions