TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Portable Shell Scripting resources?

1 pointsby xenoterracideabout 16 years ago
Most 'Shell Scripting' resources seem to focus on Bash, which is a nice shell... but it has it's own nice set of incompatibilities with other shells.<p>I'm looking for a good book (or resources) that either doesn't include bashisms, or even better discusses ways of working around them.<p>I'd prefer if it's pretty comprehensive. Something that's hopefully gonna last a few years, I don't need a beginners text.<p>obviously if it teaches POSIX that'd be good, but not strictly required. As I was saying last night, I don't care if it's POSIX or not if all the shells support it (or at least bourne shells).

1 comment

SwellJoeabout 16 years ago
The most concise and useful resource I found was from when Ubuntu moved to dash for /bin/sh:<p><a href="https://wiki.ubuntu.com/DashAsBinSh" rel="nofollow">https://wiki.ubuntu.com/DashAsBinSh</a><p>It covered pretty much every issue I had in a relatively large shell script (about 3200 lines including library code).
评论 #580775 未加载