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.

Portable Shell Programming ... Not!

7 pointsby gurjeetalmost 3 years ago

1 comment

gurjeetalmost 3 years ago
The pitfalls documented here show that it&#x27;s really, really hard to write portable shell programs. You might as well not try at all.<p>Also, I find it funny that they say<p>&gt; ... to prevent trouble, do not take advantage of features that were added after Unix version 7, circa 1977.<p>And then they go on to call some systems ancient, not worth considering for portability.<p>&gt; A few ancient 4.2BSD based systems ... required &lt;some obscure behaviour&gt;. However, these ancient systems are no longer of practical concern.<p>I feel sorry for the developers (including the Postgres community, which I count myself part of), have to deal with tooling (Autoconf, and family) that continues to prioritize supporting 45+ years (almost half a century!!) old systems. I am sure that the sysadmins of those old systems do not care about running the new software we&#x27;re developing today; they have some reasons to keep those systems running, primarily monetary reasons.