Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
james_s_tayler
· 7y ago · 0 comments
but but but... what about the single responsibility principle??? Grep can't both load the file and pattern match against it's contents! Sacrilege.
Comments
[–]
kzcqt
7y ago
I know you're being facetious, but every utility is supposed to be able to open and read a FILE handle, even if it's just stdin.
[–]
majewsky
7y ago
Well technically
you're not opening stdin. It's handed to you by your parent.