aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-05-26 15:37:54 +0200
committerLeah Neukirchen <chneukirchen@gmail.com>2017-05-26 15:44:13 +0200
commit5c457169a54dcb6d4d6346ffe55e244cbae364bf (patch)
tree7deff56b6ff3a0689de4b4cffd985d6a471ad981
parent3b97f3794e2589a93aa4aa7a503cbb6855edd462 (diff)
downloadmblaze-5c457169a54dcb6d4d6346ffe55e244cbae364bf.tar.gz
mless: replace grep -m1 with sed for portability
-rwxr-xr-xmless2
1 files changed, 1 insertions, 1 deletions
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 .