resolved. used `info vars` to see the available va...
# magic
j
resolved. used
info vars
to see the available variables. i wanted
cellname
t
You're very good at answering your own questions before I get a chance to read them.
j
I should give myself a 5 min delay before asking/answering questions on here ^^
p
No, it's interesting to see both questions and answers!
j
Question. I started up magic like so
Copy code
magic cellname1.mag &
and when I run
Copy code
puts $cellname
I get
cellname1.mag
, but when I load a new cell in
Copy code
load cellname2.mag
and run
puts $cellname
, I still get
cellname1.mag
but I expect
cellname2.mag
. Is this expected behavior? I feel like the
cellname
var should change with each
load
t
"$cellname" is not an advertised feature. . . it's just a variable set by the startup script to track where the cell name is on the command line, if there is one. If my setup script were cleaner, I would unset it. If you want the name of the cell in the current layout window, use
cellname list window
.