> Hello,
>
> is there any way to be able to pass on tcl shell variables over to csh variables?
>
> i want to set csh variables such as history, xterm, etc...
> and want to set them in a modulefile.
>
> how can this be done?
>
Yes, I had the same problem awhile back. Here is the tcl code to set
local variables for csh/tcsh users:
proc set-localvar {var {string ""}} {
global env
if [regexp "^/.*/t?csh$" "$env(SHELL)"] then {
case [module-info mode] in {
"display" { puts stderr "Set-Local $var to $string" }
"load" { puts -nonewline "set $var = $string;" }
"remove" { puts -nonewline "unset $var;" }
"switch1" { puts -nonewline "unset $var;" }
"switch2" { puts -nonewline "set $var = $string;" }
}
}
}
set-localvar history 50
Enjoy,
Dave
David C. Mores Internet: mo...@ed...
Sanders - A Lockheed Martin Company Tel: (603) 885-4641
Nashua, New Hampshire 03061-0868 Fax: (603) 885-9056
analysis paralysis - let's form a committee to study the problem again.
|