mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit df7cd7249c04cfe116aba64258b512c897fd9ef4
parent 36e9a1afb000e7564f40e8835d0a17df5d74587c
Author: Leah Neukirchen <leah@vuxu.org>
Date:   Fri, 26 May 2017 15:42:39 +0200

mcom: commajoin: use awk

The sed solution did not work with OpenBSD sed and Plan9 sed when only
one line was used.

Diffstat:
mcom | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/mcom b/mcom @@ -2,7 +2,9 @@ # mcom [TO] - compose mail commajoin() { - sed ':a;N;s/\n/, /;$!b a' + awk 'NR==1 {l=$0; next} + {l=l", "$0} + END {print l}' } notmine() {