TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Setting Up a Gaslighting DNS

1 点作者 moviuro超过 2 年前

1 comment

1vuio0pswjnm7超过 2 年前
&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