Environment Variable

First of all I am using C shell.

I have a variable destDirectory that holds a path.

the path includes an environment variable($user)

when I try to execute a command within the script, the $destDirectory gets replaced with the path, but the environment variable is not replaced. I end up with an error about an invalid path. Is there a way around this? How do I make it resolve the $user?

What code are you running i.e. what commands in the script etc.?
Have you tried exporting the variable in question ?

I figured it out, thanks!