about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-10-29 22:18:59 +0100
committerLeah Neukirchen <leah@vuxu.org>2017-10-29 22:19:10 +0100
commit765649f4fb8796bb580c81dd64759d39cf5c226e (patch)
tree9f7da7631f2144d55398bcdea8c4001bf6010592
parent502a8c9cfec988534b0f2a0f7904f52023c303d3 (diff)
downloadnotyet-765649f4fb8796bb580c81dd64759d39cf5c226e.tar.gz
notyet-765649f4fb8796bb580c81dd64759d39cf5c226e.tar.xz
notyet-765649f4fb8796bb580c81dd64759d39cf5c226e.zip
allow -f - for stdin
-rwxr-xr-xnotyet1
1 files changed, 1 insertions, 0 deletions
diff --git a/notyet b/notyet
index bb6b769..62a72d4 100755
--- a/notyet
+++ b/notyet
@@ -206,6 +206,7 @@ files = [File.expand_path("~/.notyet")]  if files.empty?
 
 t = nil
 files.each { |file|
+  file = "/dev/stdin"  if file == "-"
   File.open(file) { |f|
     d = parse(f, file)
     if t