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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Why is /usr/bin/test 4kiB smaller than /usr/bin/[?

5 点作者 fomine311 个月前

2 条评论

pixelbeat11 个月前
One might be wondering why 'test' and '[' are separate binaries at all. This is to give maximum flexibility wrt copying binaries etc. Note one can build coreutils like busybox as a single binary, by just `./configure --enable-single-binary` at build time. This is already available as an option on Fedora at least through the coreutils-single (1.2MB) package.
sandywaffles11 个月前
I won't spoil the reason, but I have to say it's answers like the one given that make me feel like GNU coreutils is essentially decades of hacks thrown together haphazardly in a bunch of loosely related and begrudgingly coordinating pieces of software. I enjoy these code spelunking articles though!