Minnor change, merge two lines and add a comment from the old blog code. - swer… | |
git clone git://git.suckless.org/swerc | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit 022176396e0840c68c6188c596e8ff922ef79ad1 | |
parent 29a3dd20332eb253964850a5ce264e4e4b9c086e | |
Author: [email protected] <unknown> | |
Date: Fri, 2 Jan 2009 16:49:44 +0100 | |
Minnor change, merge two lines and add a comment from the old blog code. | |
Diffstat: | |
M apps/blagh/app.rc | 5 +++-- | |
1 file changed, 3 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/apps/blagh/app.rc b/apps/blagh/app.rc | |
@@ -38,6 +38,7 @@ fn blagh_body { | |
} | |
fn get_post_list { | |
- d=$*^/./[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9]/ | |
- ls -F $d >[2]/dev/null | sed -n 's,/\./,/|/,; /\/$/p' | sort -r '-t|' +1 … | |
+ # the /./->/|/ are added so we can sort -t| and order only the file name | |
+ # NOTE: this breaks if any path element in blogDirs contain '/./' or '|' | |
+ ls -F $*^/./[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9]/ >[2]/dev/null | se… | |
} |