Replace stat(1) with mtime(1) (disabled code for now)
This commit is contained in:
parent
b9a3275c75
commit
e2ee3bdf6e
1 changed files with 1 additions and 1 deletions
|
|
@ -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 } }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue