]>
git.saurik.com Git - apple/file_cmds.git/blob - tests/touch.sh
3 file_name
=`mktemp /tmp/XXXXXX`
4 file_ctime
=`/usr/bin/stat -f%c ${file_name}`
6 /usr
/bin
/touch $file_name
7 file_mtime
=`/usr/bin/stat -f%m ${file_name}`
9 if [ "$file_ctime" -gt "$file_mtime" ]; then
10 echo "file's mod time ($file_mtime) should be later than the file's creation time ($file_ctime)"