
Beginning portable shell scripting
by Peter Seebach · first published 2008
3mentions
2recommended by
3HN commenters
2017–2018first – last mentioned
67% recommend33% neutral
Affiliate links. As an Amazon Associate I earn from qualifying purchases.
Sometimes - perhaps often - you are in situations where you have no control over the shell, in these cases writing "portable" shell scripts is helpful. I have been enjoying "Beginning Portable Shell Scripting"[0] by Peter Seebach for this very reason. [0]https://www.apress.com/us/book/9781430210436
on “Oil Shell: Success with Aboriginal, Alpine, and Debian Linux” ↗I would like to second this recommendation. I have found "Beginning Portable Shell Scripting" to be invaluable --- and far more comprehensive than I expected given the "Beginning" in the title. I highly recommend it (and the POSIX docs) to anyone who is is interested in portable shell programming.…
on “Oil Shell: Success with Aboriginal, Alpine, and Debian Linux” ↗…spec). There's no way to test that the commands you're running will actually work on someone else's machine, other than by "memorizing the manual". I have an entire book on this: https://www.amazon.com/Beginning-Portable-Shell-Scripting-Pr... It goes through all the commands and common versions of Unix and which flags are likely to work, etc. Even that book admits there's a lot of folklore, because nobody has actually gone and tested…
on “Afraid of Makefiles? Don't be” ↗