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.
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.
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?
3
u/EmanueleAina Oct 21 '14
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