Re:Stop Piping Cats
by blasdel on Wednesday February 10, 2010 @08:54PM
(#1116649)
But using cat totally fucks up the calling conventions: it puts the operand as the second of many arguments. Which one of these doesn't belong?:
EDIT: Consider the calling conventions, which one of these handles it's arguments differently? Assume that verb123 is an equivalent to the pipeline -- the subshell+stdin construction lends itself to shell aliases:
[ Parent
| on HN ]
I have no idea which one doesn't belong. Is 'verb123' the moral equivalent of '(verb1 | verb2 | verb3)'? In that case, it's the first one. But that's visible from the first word on the line, so I'm still not getting the picture.
Of course, with the usual argument vs stdin conventions, either of the middle two could also be rewritten:
verb1 file | verb2 | verb3
This is probably how I'd write such a chain.