home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Programming in Tcl & Tk (4th Edition)
/
TCLBOOK4.BIN
/
pc
/
exsource.old
/
9_3.tcl
< prev
next >
Wrap
Text File
|
2003-04-15
|
228b
|
14 lines
#
# Example 9-3
# Determining whether pathnames reference the same file.
#
proc fileeq { path1 path2 } {
file stat $path1 stat1
file stat $path2 stat2
expr {$stat1(ino) == $stat2(ino) && \
$stat1(dev) == $stat2(dev)}
}