leahneukirchen / mblaze

Unix utilities to deal with Maildir
Other
419 stars 48 forks source link

Needless awk evocations in mcom #238

Closed readmemyrights closed 1 year ago

readmemyrights commented 1 year ago

At multiple points in mcom awk is invoked in the middle of a pipeline like this:

awk '{ print }'

In the context of a pipeline it's basically a no-op, it prints out every line as read, performing no additional processing.

I'll send a pull request shortly, unless this command does something more that I just don't notice.

leahneukirchen commented 1 year ago

This is intentional and an idiom to ensure the last line has a final newline.

readmemyrights commented 1 year ago

Thanks for the quick reply, it certainly does make sense