Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion DOCS/gnu-coreutils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
- [shred](shred.md) - 安全删除文件

### 特殊文件类型 (Special file types)
- [link](link.md) - 通过 link 系统调用创建硬链接
- [ln](ln.md) - 创建文件链接
- [mkdir](mkdir.md) - 创建目录
- [readlink](readlink.md) - 打印符号链接值或规范文件名
Expand Down
3 changes: 1 addition & 2 deletions DOCS/gnu-coreutils/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## 文档统计

- **总文档数**: 102 个命令文档 + 1 个 README;文档数量不等于行为兼容数量
- **总文档数**: 101 个命令文档 + 1 个 README;文档数量不等于行为兼容数量
- **文档格式**: Markdown
- **参考版本**: GNU Coreutils 9.11

Expand Down Expand Up @@ -124,7 +124,6 @@
### 特殊文件类型 (Special file types)
| 命令 | 参数数 | 状态 | 文档 |
|------|--------|------|------|
| link | 0 | 已实现 | [link.md](link.md) |
| ln | 12 | 已实现 | [ln.md](ln.md) |
| mkdir | 3 | 已实现 | [mkdir.md](mkdir.md) |
| readlink | 7 | 已实现 | [readlink.md](readlink.md) |
Expand Down
57 changes: 0 additions & 57 deletions DOCS/gnu-coreutils/link.md

This file was deleted.

1 change: 0 additions & 1 deletion scripts/audit-command-compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
"install",
"join",
"kill",
"link",
"ln",
"logname",
"ls",
Expand Down
1 change: 0 additions & 1 deletion scripts/benchmark-command-parity.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,6 @@ class ProbeResult:
Probe("du", "apparent bytes single file", ["-b", "du-file.txt"], "fileops", isolated=True),
Probe("du", "files0 total bytes", ["-b", "-c", "--files0-from", "du-list0.bin"], "fileops", isolated=True),
Probe("truncate", "shrink existing file state", ["-s", "1024", "du-file.txt"], "fileops", compare_stdout=False, isolated=True),
Probe("link", "hard link file state", ["link-src.txt", "link-created.txt"], "fileops", isolated=True),
Probe("cp", "recursive directory copy", ["-R", "copy-src", "copy-out"], "fileops", isolated=True),
Probe("cp", "no-clobber keeps destination", ["-n", "copy-new.txt", "copy-existing.txt"], "fileops", isolated=True),
Probe("cp", "update skips older source", ["-u", "copy-old-src.txt", "copy-newer-dst.txt"], "fileops", isolated=True),
Expand Down
134 changes: 0 additions & 134 deletions src/commands/link.cpp

This file was deleted.

5 changes: 3 additions & 2 deletions src/commands/wpm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,9 @@ auto command_names() -> std::vector<std::string> {

auto legacy_link_names() -> std::vector<std::string> {
// Removed built-in commands that may still exist as hardlinks in old
// installs.
return {"jq"};
// installs. 'link' was removed because its hardlink shadows the MSVC
// toolchain linker link.exe on PATH.
return {"jq", "link"};
}

auto is_legacy_link_name(std::string_view name) -> bool {
Expand Down
Loading