2 ===================================================================
3 diff --git a/tkdiff b/tkdiff
4 --- a/tkdiff (revision 188)
5 +++ b/tkdiff (revision 189)
9 # Determine the name of the temporary directory, the rc file name,
10 -# and possible VPATH EnvVar, all of which are platform dependent.
11 +# NULLdev, and possible VPATH EnvVar, all of which are platform dependent.
13 # Much MAY likely be overridden by a preference in .tkdiffrc,
14 # EXCEPT (obviously) when no such file actually exists yet
16 set opts(tmpdir) C:/temp
19 + # Reserved filename which is actually a NULL device
20 + set opts(NULLdev) "nul"
22 # Split up and store a VPATH if it exists
23 if {[info exists ::env(VPATH)]} {
24 set finfo(Vpath) [split $::env(VPATH) ";"]
26 set opts(tmpdir) $::env(TMPDIR)
27 } {set opts(tmpdir) /tmp }
29 + # Reserved filename which is actually a NULL device (Unix-like platforms)
30 + set opts(NULLdev) "/dev/null"
32 # Split up and store a VPATH if it exists
33 if {[info exists ::env(VPATH)]} {
34 set finfo(Vpath) [split $::env(VPATH) ":"]
36 # 1 Failed (PLUS a 'pushed' HARD-error message to the caller)
37 ###############################################################################
38 proc get-file {fn ndx {probe 0}} {
42 # Ancestor files are stored into a slightly adjusted array element name
43 # N.B> 'ndx' AS PASSED *can* be an EXPRESSION (not just a number): resolve!
45 } elseif {!$tildechk} {
46 # DO NOT REPORT non-existence if this attempt was ONLY a probe
47 if {$probe} { return 1 } { set MSG "File '$fn' does not exist" }
48 - } elseif {[file isfile $fn]} {
49 + } elseif {[file isfile $fn] || $fn == $opts(NULLdev)} {
50 set finfo(${A}lbl,$ndx) [shortNm [set finfo(${A}pth,$ndx) "$fn"]]
51 } else { set MSG "'$fn' exists, but is not a file" }
54 # Align various label decorations to the CURRENT input file pairing
55 ###############################################################################
56 proc alignDecor {pairnum} {
58 + global g w opts finfo
60 # Establish if 3way mode is NOW active and what file indices are in use
61 set g(is3way) [info exists finfo(albl,$pairnum)]
63 set finfo(lbl,$LR) $finfo(ulbl,$ndx($n)) ;# Override lbl display
64 } else {set finfo(lbl,$LR) $finfo(lbl,$ndx($n))}
66 - if {![info exists finfo(tmp,$ndx($n))]} {
67 + if {![info exists finfo(tmp,$ndx($n))] \
68 + && $finfo(pth,$ndx($n)) != $opts(NULLdev)} {
69 # (N.B> Tip data will ALSO be used by report generation heading)
70 set g(tooltip,${LR}Label) "{$finfo(pth,$ndx($n))\n"
71 append g(tooltip,${LR}Label) \