News for hackers. Stuff that matters.
Re:Matrix.org hacked by james_s_tayler on Friday April 12, 2019 @04:23AM (#19643033)
but but but... what about the single responsibility principle??? Grep can't both load the file and pattern match against it's contents! Sacrilege.
Re:Matrix.org hacked by kzcqt on Friday April 12, 2019 @04:26AM (#19643044)
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.
Re:Matrix.org hacked by majewsky on Friday April 12, 2019 @06:49AM (#19643660)
Well technically you're not opening stdin. It's handed to you by your parent.