chiark / gitweb /
superseded by moreutils
[bin.git] / get-rfc
diff --git a/get-rfc b/get-rfc
index ca7c2aa335d1bfc978ab76e59a6393511cd56b9a..aff8b7a648ca5856a6f4d169f23cb1c0a01a844b 100755 (executable)
--- a/get-rfc
+++ b/get-rfc
@@ -1,2 +1,5 @@
 #! /bin/sh
-wget --passive http://www.ietf.org/rfc/rfc$1.txt
+# Depends: wget
+cd "$HOME/misc/rfc"
+[ -f "rfc$1.txt" ] || wget "http://www.ietf.org/rfc/rfc$1.txt"
+${PAGER:-pager} "rfc$1.txt"