--- ray/src/util/do_file.tcl 1994/12/08 17:16:38 2.5 +++ ray/src/util/do_file.tcl 1995/03/21 16:19:26 2.7 @@ -167,7 +167,7 @@ proc load_vars {f {vl all}} { # load RIF variables set curmess {Project loaded.} } else { foreach n $vl { - set radvar($n) {} + catch {unset radvar($n)} } while {[gets $fi curli] != -1} { if [regexp {^[a-zA-Z][a-zA-Z0-9]* *=} $curli] { @@ -242,7 +242,8 @@ proc newsave f { # save a RIF return 0 } } - if {! [file writable $f] && [catch {exec chmod u+w $f} curmess]} { + if {[file exists $f] && ! [file writable $f] && + [catch {exec chmod u+w $f} curmess]} { beep return 0 }