From 4e755e4799fc964c547edb1cb3c98d966c01a9d4 Mon Sep 17 00:00:00 2001 From: Vladimir Iakovlev Date: Wed, 11 Jul 2018 23:57:41 +0200 Subject: [PATCH] #827: Make `cat_dir` rule safer --- thefuck/rules/cat_dir.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/thefuck/rules/cat_dir.py b/thefuck/rules/cat_dir.py index 7c6b35ec..7c0f3d89 100644 --- a/thefuck/rules/cat_dir.py +++ b/thefuck/rules/cat_dir.py @@ -1,9 +1,8 @@ import os - from thefuck.utils import for_app -@for_app('cat') +@for_app('cat', at_least=1) def match(command): return ( command.output.startswith('cat: ') and