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.

Setting Up a Gaslighting DNS

1 pointsby moviuroover 2 years ago

1 comment

1vuio0pswjnm7over 2 years ago
&quot;FreeBSD and OpenBSD don&#x27;t ship GNU&#x27;s bash in their base, and I like to write scripts that &quot;just work&quot;TM. Using only POSIX-ish shell is usually how I achieve this goal but this time it wasn&#x27;t possible:&quot;<p>&quot;The output file was around 2 million lines, and OpenBSD&#x27;s sh(1) obviously had serious issues looping over that many lines (while IFS= read -r _first _second _rest; do ...; done &lt; input). Linux&#x27; bash didn&#x27;t (it completed the run in less than 3 minutes).&quot;<p>GNU&#x2F;Linux generally does not use bash as a scripting shell.^1 Bash is provided as an interactive shell.<p>Most distributions use dash as the scripting shell, which is a slightly modified version of NetBSD&#x27;s sh, which is a modified version of the Almquist shell.<p>This is available on OpenBSD, e.g.,<p><a href="https:&#x2F;&#x2F;ftp.fr.openbsd.org&#x2F;pub&#x2F;OpenBSD&#x2F;7.2&#x2F;packages&#x2F;amd64&#x2F;dash-0.5.11.5-static.tgz" rel="nofollow">https:&#x2F;&#x2F;ftp.fr.openbsd.org&#x2F;pub&#x2F;OpenBSD&#x2F;7.2&#x2F;packages&#x2F;amd64&#x2F;da...</a><p>1. Because dash is significantly faster than bash for scripting