I'm currently trying to rewrite some tcsh shell scripts with Python.
One thing that I just saw is
set WORK = "/dev/shm"
if ( $?WORK ) then
if ( $WORK == "" ) then
set WORK = "/tmp"
endif
else
set WORK = "/tmp"
endif
What does this do?
My first thought (before reading this related question) was that it checks if the variable $WORK
was set. But this makes not so much sense, because it was set two lines before. Also, this seems not to be related to "error codes". Can you tell me what this part is supposed to do?