I have this simple question regarding the tcsh: 

in /bin/sh (Bourne shell) I can assign a value to an environment variable for
just one command, like this: 

VARIABLE=value <command>

e.g. "DISPLAY=:0 xterm" or "CFLAGS=O2 make".  

Can this be done with tcsh as well?  The only thing I can think of is this:

( setenv VARIABLE value ; <command> )

thus invoking a subshell, because for example the multiline variant

setenv DISPLAY :0
unsetenv DISPLAY

"forgets" the (possible) original value of the variable.  

Thanks for any hints, this is the only Bourne-shell feature I'm missing in the

[EMAIL PROTECTED] mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to