Replace stat(1) with mtime(1) (disabled code for now)

This commit is contained in:
Uriel 2008-12-24 09:36:52 +01:00
parent b9a3275c75
commit e2ee3bdf6e

View file

@ -14,7 +14,7 @@ fn statpost {
# Not used: date=`{/bin/date -Rd `{basename $f |sed 's/(^[0-9\-]*).*/\1/; s/-[0-9]$//'}} # Not used: date=`{/bin/date -Rd `{basename $f |sed 's/(^[0-9\-]*).*/\1/; s/-[0-9]$//'}}
# TODO: use mtime(1) and ls(1) instead of lunix's stat(1) # TODO: use mtime(1) and ls(1) instead of lunix's stat(1)
stat=`{stat -c '%Y %U' $f} stat=`{stat -c '%Y %U' $f}
#mdate=`{/bin/date -Rd $stat(1)} # Not used because it is unreliable #mdate=`{/bin/date -Rd `{mtime $f|awk '{print $1}' }} # Not used because it is unreliable
by=$stat(2) by=$stat(2)
ifs=() { summary=`{cat $f | crop_text 512 ... | $formatter } } ifs=() { summary=`{cat $f | crop_text 512 ... | $formatter } }
} }