Introduction
Introduction Statistics Contact Development Disclaimer Help
sfeed_markread: use "-" instead of /dev/stdin - sfeed_curses - sfeed curses UI …
git clone git://git.codemadness.org/sfeed_curses
Log
Files
Refs
README
LICENSE
---
commit 9d3e0853cfb0d0b3c2b53838377e7b0b04fd1e7f
parent a3c02678f80ec8c253ce680d36ae9bd4ee935d8c
Author: Hiltjo Posthuma <[email protected]>
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}"
;;
*)
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.