From 9f24198646ed938e5b47b0b0fd880ed4dbf9c7e4 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Mon, 19 Jul 2021 23:59:19 -0400 Subject: grep command: fix to work with busybox grep --- ranger/config/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/config/commands.py b/ranger/config/commands.py index 484dc0ad..833430c6 100755 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -1754,7 +1754,7 @@ class grep(Command): def execute(self): if self.rest(1): - action = ['grep', '--line-number'] + action = ['grep', '-n'] action.extend(['-e', self.rest(1), '-r']) action.extend(f.path for f in self.fm.thistab.get_selection()) self.fm.execute_command(action, flags='p') -- cgit 1.4.1-2-gfad0