|
|
sfeed_markread: use "-" instead of /dev/stdin - sfeed_curses - sfeed curses UI (now part of sfeed, development is in sfeed) |
|
|
 |
git clone git://git.codemadness.org/sfeed_curses (git://git.codemadness.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
 |
commit 9d3e0853cfb0d0b3c2b53838377e7b0b04fd1e7f |
|
|
 |
parent a3c02678f80ec8c253ce680d36ae9bd4ee935d8c |
|
|
 |
Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) |
application/vnd.lotus-organizer |
|
|
Date: Sat, 24 Jul 2021 23:13:53 +0200 |
|
|
|
|
|
|
|
sfeed_markread: use "-" instead of /dev/stdin |
|
|
|
|
|
|
|
This is slightly more portable and specified in POSIX: |
|
|
|
|
|
|
|
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/awk.html |
|
|
|
section "STDIN". |
|
|
|
|
|
|
|
Diffstat: |
|
|
|
M sfeed_markread | 2 +- |
|
|
|
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-) |
|
|
|
--- |
|
|
 |
diff --git a/sfeed_markread b/sfeed_markread |
|
|
|
@@ -26,7 +26,7 @@ unread) |
|
|
|
FILENR == 1 { urls[$0] = 1 } |
|
|
|
FILENR == 2 { if (!urls[$0]) { print $0 } } |
|
|
|
END { exit(FILENR != 2) }' \ |
|
|
|
- "/dev/stdin" "${urlfile}" > "${tmp}" && \ |
|
|
|
+ "-" "${urlfile}" > "${tmp}" && \ |
|
|
|
cp "${tmp}" "${urlfile}" |
|
|
|
;; |
|
|
|
*) |
|