Skip to main content

Write (again) and Kill Commands

Use Write without any argument (called an “argumentless Write”) to see the values of all variables. Use Kill to delete one or more variables, exclusive Kill to delete all variables other than those enclosed in parentheses, and an argumentless Kill to delete all variables. Kill and argumentless Write are useful when you are debugging.

Terminal


USER>set a = 1, b = 2, c = 3, d = 4, e = 5, f = 6, g = 7

USER>write
a=1
b=2
c=3
d=4
e=5
f=6
g=7
USER>kill c, f

USER>write
a=1
b=2
d=4
e=5
g=7
USER>kill (a, d, g)

USER>write
a=1
d=4
g=7
USER>kill

USER>write

USER>
Copy code to clipboard
FeedbackOpens in a new window