From 5c457169a54dcb6d4d6346ffe55e244cbae364bf Mon Sep 17 00:00:00 2001 From: Duncaen Date: Fri, 26 May 2017 15:37:54 +0200 Subject: mless: replace grep -m1 with sed for portability --- mless | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mless') diff --git a/mless b/mless index 1b0a014..16e82d1 100755 --- a/mless +++ b/mless @@ -81,7 +81,7 @@ while :; do nu=$(magrep -v -m1 :S .:) && mseq -C "$nu" ;; 107) # k next thread - mseq -C "$(mseq .+1: | grep -m1 '^[^ <]')" + mseq -C "$(mseq .+1: | sed -n '/^[^ <]/{p;q;}')" ;; 100) # d mark read mflag -S . -- cgit 1.4.1