this post was submitted on 06 Mar 2024
58 points (92.6% liked)

Programmer Humor

37996 readers
104 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 15 points 2 years ago (9 children)

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?

[–] [email protected] 13 points 2 years ago (2 children)

I bet there exist some Linux installs out there with a different shell than 'bash',

100%. Alpine is one such distro.

[–] [email protected] 7 points 2 years ago

Also, doas instead of sudo

load more comments (1 replies)
load more comments (7 replies)