From bd54b147f1833221b365ef288863707764aeab55 Mon Sep 17 00:00:00 2001 From: Uriel Date: Sat, 13 Dec 2008 16:16:10 +0000 Subject: [PATCH] Fix: don't completely delete 'sort helper' delimiter, revert it back to a '/', and coalesce any extra '/' for tidiness --- bin/werc.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/werc.rc b/bin/werc.rc index cc94f4f..584589f 100755 --- a/bin/werc.rc +++ b/bin/werc.rc @@ -79,7 +79,7 @@ fn sortedBlogPostList { # 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 '|' if (! ~ $#* 0) - ls $*^'/./' | sed -n 's,/\./,/|/,; /\/[0-9]+.*\.md$/p' | sort -r '-t|' +1 | sed 's,/\|/,,' + ls $*^'/./' | sed -n 's,/\./,/|/,; /\/[0-9]+.*\.md$/p' | sort -r '-t|' +1 | sed 's,/+\|/+,/,' } fn gen_blog_post_title {