Putting aside the "should/shouldn't do" argument, I was also wondering if the code is even viable. I imagine that 'ls' and 'sudo' are probably pretty ubiquitous, but I bet there exist some Linux installs out there with a different shell than 'bash', and some might not have 'grep' too. That would lead to some pretty cryptic bugs for the end user, eh?
I don't like being cryptic at all, but "free speech" doesn't always include discriminatory ones. And being flawed, I can't stop my brain from generating those thoughts, so I just tried to be a slightly friendlier a*hole.
Otherwise I could have said: PhD, yeah of course, so many of them are so used to writing shitty code without peer reviews for so long, that totally checks out. And Indian...again. well, no wonder.