diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-23 01:52:40 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-23 01:52:40 +0200 |
commit | 53b8c859acfc39c56791714e91cee576b47e43d2 (patch) | |
tree | 77291c96ad347f2e9720b589dacc543cb0d1ddfc /contrib/mthr | |
parent | 95bd63e7b0fd13f20642795dd4f15ff3556ec8f3 (diff) | |
download | mblaze-53b8c859acfc39c56791714e91cee576b47e43d2.tar.gz mblaze-53b8c859acfc39c56791714e91cee576b47e43d2.tar.xz mblaze-53b8c859acfc39c56791714e91cee576b47e43d2.zip |
mthr: unbreak -a on last message
Diffstat (limited to 'contrib/mthr')
-rwxr-xr-x | contrib/mthr | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/mthr b/contrib/mthr index 2c4038c..2a32539 100755 --- a/contrib/mthr +++ b/contrib/mthr @@ -18,7 +18,7 @@ NR != FNR { exit } mode==1 && ind==0 { if (sel) for (i in thread) - print thread[i] + print thread[i] split("", thread) sel = 0 } @@ -38,4 +38,9 @@ mode==3 && sel { sel = 0 } mode==3 {parents[ind] = $0 } +END { + if (mode==1 && sel) + for (i in thread) + print thread[i] +} ' - $(mseq $@) |