changeset: 15:5de4c00b29212069f47ddb96b24c37b57bbb05bc
tag: tip
user: arg_AT_suckless.org
date: Tue Jan 30 15:59:15 2007 +0100
files: history.rc
description:
fixed printhist in hostory.rc
diff -r 951f480b1e7f history.rc
--- a/history.rc Tue Jan 30 15:48:43 2007 +0100
+++ b/history.rc Tue Jan 30 16:00:01 2007 +0100
@@ -28,12 +28,12 @@ fn menu {
fn printhist {
base=`{basename $PATH_INFO}
- for(file in $DIRIDIR^'/'^$PATH_INFO^'.'^*) {
- if(! ~ $file $PATH_INFO^'.diri') {
- fbase=`{basename $file}
- arg='s/'^$base^'//'
- epochts=`{echo $base | sed $arg}
- datets=`{date $epochts}
+ for(file in `{ls -r $DIRIDIR^'/'^$PATH_INFO^'.'^*}) {
+ file=`{basename $file}
+ arg='s/'^$base^'.//'
+ epoch=`{echo $file | sed $arg}
+ if(! ~ $epoch 'diri') {
+ datets=`{date $epoch}
echo '<li>'^$"datets^': '^$base^'</li>'
}
}
Received on Tue Jan 30 2007 - 16:00:02 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:54:46 UTC