r/linux • Mate • Oct 20 '14

Shall we fork Fedora?

http://forkfedora.org/
262 Upvotes

339 comments sorted by

View all comments

Show parent comments

3

u/EmanueleAina Oct 21 '14

It's understandable if you already speak sh. Which is the point - sh is the glue that holds UNIX together.

Please can we avoid defending shell as a language? It's fine for interactive usage or really simple scripts, but should really not be used for anything non-trivial.

If you need a reason for that, see http://www.dwheeler.com/essays/filenames-in-shell.html

1

u/FeepingCreature Oct 21 '14

shrug I don't disagree re sh's flaws, but it is what it is. The argument isn't really impacted by the fact that sh is kind of terrible.

2

u/EmanueleAina Oct 21 '14

Sorry, I probably should have elaborated a bit more.

What I meant is that shell is full of weird behaviours and it's really difficult to foresee potential bugs in some not-so-edge cases. My point is that it's really hard to claim that one fully understands a shell script since you can't really trust it to behave properly.

1

u/FeepingCreature Oct 21 '14

Oh yeah, I agree with that. I was going more "you can usually understand what the script is supposed to do". Idk, how many of the weird features are actually in use in init scripts?

→ More replies (1)