I am programming in tcl (for use with the modules command). I need to find out what shell is being used by the user. Since I've never programmed in tcl before, I don't know what is wrong with my simple code. Can someone please advise?
set shell [module-info shell]
if { $shell=="bash" } {
puts "running bash"
}
The error I'm getting (sorry I didn't include it originally) is:
intel64(32):ERROR:102: Tcl command execution failed: if { $shell == "bash" } {
puts "running bash
}
Note that intel64 is the file where this code is found and line 34 is the last line.
$shellvariable (puts $shell) resp. themodule-info shelloutput (puts [module-info shell])? - bmk