cp: -r or -R?
Summary
一篇探讨 `cp` 命令中 `-r` 与 `-R` 选项历史差异的博文:两者在现代 GNU coreutils 中已无区别(2002 年合并),但 OpenBSD/NetBSD 仍保留行为差异,POSIX 推荐使用更一致的 `-R`。
View Cached Full Text
Cached at: 10/03/26, 11:25 AM
Similar Articles
@xiaofeilong99: Windows users, take note: Microsoft has released its own Coreutils. Commands like cat, cp, ls, mkdir, pwd, rm, sort, tee — which work perfectly on Linux/macOS but feel awkward on Windows — now have a native solution.
Microsoft has released Coreutils for Windows, a set of native Unix-style core tools (such as cat, cp, ls, etc.), aimed at reducing cross-platform script and development environment differences. It can be installed via WinGet and is currently in preview.
Replacing Ctrl-R in Bash without TIOCSTI
The article details a method to replace Bash's Ctrl-R history search using a custom tool, adapting to recent Linux kernel security changes that restrict TIOCSTI usage.
OpenBSD's ports tree keeps GPL coreutils and rejects uutils (Rust rewrite)
OpenBSD's ports tree rejects the inclusion of uutils-coreutils, a Rust rewrite of GNU coreutils, citing concerns about compatibility and licensing, while maintaining the existing GPL-based GNU coreutils.
rsync and outrage
Rsync maintainer Andrew Tridgell defends his use of AI tools (Claude, Codex, Gemini) to improve security and rewrite the test suite, addressing backlash from the open-source community.
@auspiceshirley: 已严肃安装 Coreutils for Windows,这下Codex应该能在Windows上跑通大部分Linux命令了
微软发布了Coreutils for Windows,为Windows提供原生Unix核心工具,使得Codex等工具可以在Windows上运行大多数Linux命令。