diff options
author | Duncaen <mail@duncano.de> | 2017-05-26 15:37:54 +0200 |
---|---|---|
committer | Leah Neukirchen <chneukirchen@gmail.com> | 2017-05-26 15:44:13 +0200 |
commit | 5c457169a54dcb6d4d6346ffe55e244cbae364bf (patch) | |
tree | 7deff56b6ff3a0689de4b4cffd985d6a471ad981 /mless | |
parent | 3b97f3794e2589a93aa4aa7a503cbb6855edd462 (diff) | |
download | mblaze-5c457169a54dcb6d4d6346ffe55e244cbae364bf.tar.gz mblaze-5c457169a54dcb6d4d6346ffe55e244cbae364bf.tar.xz mblaze-5c457169a54dcb6d4d6346ffe55e244cbae364bf.zip |
mless: replace grep -m1 with sed for portability
Diffstat (limited to 'mless')
-rwxr-xr-x | mless | 2 |
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 . |