r/linuxadmin • • Jul 27 '15

moreutils: the utilities package every UNIX/Linux/Mac OS developer should know

http://rentes.github.io/unix/utilities/2015/07/27/moreutils-package/
64 Upvotes

30 comments sorted by

View all comments

Show parent comment

1

u/cpbills Jul 28 '15

So what you're saying is the ordering differs from how combine does it. Not that it is wrong.

What if the user expects the ordering from my grep example, and the ordering from combine is counter-intuitive to them or not what they're looking for? When does ordering, when using these tools actually matter? Since it's not printing the file the arguments are in, it's a bit far-fetched to expect the ordering to mean anything, and I would hate to manage something that depended on that.

2

u/primitive_screwhead Jul 28 '15

So what you're saying is the ordering differs from how combine does it. Not that it is wrong.

Well I suppose if the differences in output, and inconsistency of argument order in your examples, were a deliberate choice on your part, then it wasn't wrong. It just wasn't clear if those differences were a matter of intention on your part, or a mistaken byproduct of the additional complexity of your examples. With "combine", the docs are quite clear about the non-commutativity issues, and how to easily change that if desired.