Skip to content
Snippets Groups Projects
Commit 8638bfda authored by Christopher J. Morrone's avatar Christopher J. Morrone
Browse files

Fix cset's bahviour to not do string substitution a second time

parent 3abd4804
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,8 @@ global sacct sbcast scancel scontrol sinfo smap squeue srun
# Conditional set. Only set variable if variable does not yet exist.
proc cset {name value} {
if {![uplevel 1 info exists $name]} {
uplevel 1 "set $name \"$value\""
upvar $name tmp
set tmp $value
}
}
......@@ -78,7 +79,7 @@ cset mpirun "mpirun"
cset totalviewcli "/usr/local/bin/totalviewcli"
# Pattern to match your shell prompt
cset prompt "(%|#|\\\$) *$"
cset prompt {(%|#|\$) *$}
#
# Specify locations of other executable files used
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment