You're very good at answering your own questions before I get a chance to read them.
j
John Kustin
05/18/2021, 12:22 AM
I should give myself a 5 min delay before asking/answering questions on here ^^
p
Philipp Gühring
05/18/2021, 6:35 AM
No, it's interesting to see both questions and answers!
j
John Kustin
05/19/2021, 4:09 AM
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
Tim Edwards
05/20/2021, 1:37 AM
"$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
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.