From 78c75bf0fa665250f3ff66a7625ec4772ea483d3 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Wed, 18 Oct 2017 16:00:04 +0200 Subject: exit 1 when nothing matched --- notyet | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/notyet b/notyet index b713434..f74631f 100755 --- a/notyet +++ b/notyet @@ -215,6 +215,10 @@ if count_only exit end +if t.children.empty? && !ARGV.empty? + exit 1 +end + if $edit && STDOUT.tty? rd, wr = IO.pipe $stdout = wr -- cgit 1.4.1