What $?run
does in the following example? run
is variation with run
directory. I understand that $?
has the status of the last command.
if ( ! $?run ) then
set run = $PWD
endif
You can use $?var_name
to check if a variable is defined. From man csh
:
$?name
${?name}
Substitutes the string `1' if name is set, `0' if it is not.
This is not the same as the special $?
variable (yeah, the syntax is a bit confusing).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.