Little fix in sfeed_update
==========================
I use codemadness' sfeed as an RSS/Atom reader with its curses interface.
Noticed that new content for an entry with same id/title/link (e.g. edits
of a blog post after publishing) is not updated in feedfile when running
sfeed_update.
Issue: sort command inside merge() function.
diff --git a/sfeed_update b/sfeed_update
@@ -79,7 +79,7 @@ filter() {
# merge raw files: unique sort by id, title, link.
# merge(name, oldfile, newfile)
merge() {
- sort -t ' ' -u -k6,6 -k2,2 -k3,3 "$2" "$3" 2>/dev/null
+ sort -t ' ' -u -k6,6 -k2,2 -k3,3 "$3" "$2" 2>/dev/null
}
# order by timestamp (descending).
References
----------
*
https://codemadness.org/sfeed-simple-feed-parser.html
*
https://git.codemadness.org/sfeed/commit/e77e0165d3151ebe763a602adaa486af2467e6df.html