fix(autocomplete): correct GNU wording and add local specs

Follow-up review of batch 4 found wording that would show up in the popup and
two upstream spec defects. Local specs already override @withfig/autocomplete,
so the wrong option sets are replaced rather than translated around.

- Add electron/specs/{dig,readlink,base64,htop}.js:
  dig fixes the NS label and drops the bogus TTL type; readlink replaces the
  stat wording with the real GNU options; base64 moves from BSD -b/-i/-o to
  GNU -w and --ignore-garbage; htop documents the -H delay in seconds.
- Correct awk -c (traditional mode) and -t (--lint-old) to match gawk, with
  the dictionary keys migrated alongside -n.
- Reword review findings: htop -H highlights exited processes, split -a uses
  characters and -b uses KiB/MiB/GiB, dd cbs is a conversion record length,
  join -a/-v name the file index and -o covers unpaired lines, basename -a
  accepts multiple paths, env -0 ends records with NUL, dig ANY notes RFC 8482,
  su -f/-m keep the BSD behavior without hardcoded environment claims, and
  uname uses one verb for the kernel fields.
- Extend the zh-TW generator with documented post-conversion fixes (number
  bases, extended, instance, header, TLS extension, data) and regenerate.
- Update the batch 2 and batch 4 research notes, and resolve local specs first
  in the batch 4 test so it exercises what the app loads.
This commit is contained in:
csr588 committed 2026-11-08 12:51:14 +08:00
1 parent 39d86adaed
commit 192d5ca8a1
13 files changed
+565 -260

No files matched your search

@@ -565,6 +565,7 @@
"Changes the list of branches tracked by the named remote. This can be used to track a subset of the available remote branches after the initial setup for a remote": "更改具名远程所跟踪的分支列表。这可用于在远程初始设置之后跟踪可用远程分支的一个子集",
"Character encoding the commit messages are converted to when running 'git log' and friends": "运行 'git log' 及其相关命令时,提交说明要转换到的字符编码",
"Character encoding the commit messages are stored in; Git itself does not care per se, but this information is necessary e.g. when importing commits from emails or in the gitk graphical history browser (and possibly at other places in the future or in other porcelains). See e.g. git-mailinfo[1]. Defaults to 'utf-8'": "提交说明存储所用的字符编码;Git 本身并不在意,但导入来自邮件的提交时,或在 gitk 图形历史浏览器中(以及将来其他地方或其他上层命令中)需要此信息。参见例如 git-mailinfo[1]。默认为 'utf-8'",
"Characters per line; 0 disables wrapping": "每行字符数;0 表示不换行",
"Check device numbers when creating incremental archives": "创建增量归档时检查设备号",
"Check for available package updates": "检查可用的软件包更新",
"Check for available package upgrades": "检查可用的软件包升级",
@@ -798,7 +799,7 @@
"Create new commit that undoes all of the changes made in <commit>, then apply it to the current branch": "创建新提交以撤销 <commit> 中的全部变更,然后将其应用到当前分支",
"Create new context": "创建新上下文",
"Create read-only bind mount": "创建只读绑定挂载",
"Create split files byte_count bytes in length. If k or K is appended to the number, the file is split into byte_count kilobyte pieces. If m or M is appended to the number, the file is split into byte_count megabyte pieces. If g or G is appended to the number, the file is split into byte_count gigabyte pieces": "按 byte_count 字节的长度拆分文件。数字后加 k 或 K 时,按 byte_count KB 拆分;加 m 或 M 时按 byte_count MB 拆分;加 g 或 G 时按 byte_count GB 拆分",
"Create split files byte_count bytes in length. If k or K is appended to the number, the file is split into byte_count kilobyte pieces. If m or M is appended to the number, the file is split into byte_count megabyte pieces. If g or G is appended to the number, the file is split into byte_count gigabyte pieces": "按 byte_count 字节的长度拆分文件。数字后加 k 或 K 时按 byte_count KiB 拆分;加 m 或 M 时按 byte_count MiB 拆分;加 g 或 G 时按 byte_count GiB 拆分",
"Create split files line_count lines in length": "按 line_count 行的长度拆分文件",
"Create swarm routing-mesh network": "创建 swarm 路由网格网络",
"Create temporary files in directory DIR": "在目录 DIR 中创建临时文件",
@@ -835,6 +836,7 @@
"DEPRECATED pull multiple images in parallel": "已弃用:并行拉取多个镜像",
"DEPRECATED! USE --project-directory INSTEAD. Specify an alternate working directory (default: the path of the, first specified, Compose file)": "已弃用!请改用 --project-directory。指定备用工作目录(默认:最先指定的 Compose 文件的路径)",
"DNF package manager (RHEL/Rocky/Alma/Fedora)": "DNF 软件包管理器(RHEL/Rocky/Alma/Fedora)",
"DNS lookup utility (Domain Information Groper)": "DNS 查询工具(Domain Information Groper)",
"DNS server addrs to use": "要使用的 DNS 服务器地址",
"Database table name prefix. Prepended to the names of any database tables used, allowing a single database to be used for several repositories. Supports variable substitution (see git-cvsserver[1] for details). Any non-alphabetic characters will be replaced with underscores": "数据库表名前缀。会加在所用任何数据库表名之前,以便单个数据库供多个仓库使用。支持变量替换(详情参见 git-cvsserver[1])。任何非字母字符都会替换为下划线",
"Database used by git-cvsserver to cache revision information derived from the Git repository. The exact meaning depends on the used database driver, for SQLite (which is the default driver) this is a filename. Supports variable substitution (see git-cvsserver[1] for details). May not contain semicolons (`;`). Default: '%Ggitcvs.%m.sqlite'": "git-cvsserver 用来缓存从 Git 仓库派生的修订信息的数据库。具体含义取决于所用数据库驱动;对 SQLite(默认驱动)而言这是一个文件名。支持变量替换(详情参见 git-cvsserver[1])。不得包含分号(`;`)。默认:'%Ggitcvs.%m.sqlite'",
@@ -842,7 +844,7 @@
"Date string to set the system clock to": "用于设置系统时钟的日期字符串",
"Date string, for example '2024-01-01 12:00:00' or 'next friday'": "日期字符串,例如 '2024-01-01 12:00:00' 或 'next friday'",
"Debugging mode": "调试模式",
"Decode incoming Base64 stream into binary data": "将输入的 Base64 流解码为二进制数据",
"Decode input instead of encoding it": "解码输入而不是编码",
"Decompress the bzip2(1) compressed file before looking for the text": "查找文本之前,先解压经 bzip2(1) 压缩的文件",
"Deepen or shorten the history of a shallow repository to exclude commits reachable from a specified remote branch or tag. This option can be specified multiple times": "加深或缩短浅仓库的历史,以排除从指定远程分支或标签可达的提交。此选项可多次指定",
"Deepen or shorten the history of a shallow repository to include all reachable commits after <date>": "加深或缩短浅仓库的历史,以包含 <date> 之后所有可达的提交",
@@ -872,7 +874,6 @@
"Delay between task rollbacks (ns|us|ms|s|m|h) (default 0s)": "任务回滚之间的延迟(ns|us|ms|s|m|h)(默认 0s)",
"Delay between updates (ns|us|ms|s|m|h)": "更新之间的延迟(ns|us|ms|s|m|h)",
"Delay between updates (ns|us|ms|s|m|h) (default 0s)": "更新之间的延迟(ns|us|ms|s|m|h)(默认 0s)",
"Delay between updates of highlights, in tenths of sec": "高亮更新间隔,单位为 0.1 秒",
"Delay between updates, in tenths of sec": "更新间隔,单位为 0.1 秒",
"Delay setting modification times and permissions of extracted directories until the end of extraction": "将已提取目录的修改时间和权限设置推迟到提取结束时",
"Delete all data out of the cache folder": "删除缓存文件夹中的全部数据",
@@ -943,7 +944,6 @@
"Disable all source packages": "禁用所有源码软件包",
"Disable all warning messages": "禁用所有警告消息",
"Disable any container-specified HEALTHCHECK": "禁用容器指定的任何 HEALTHCHECK",
"Disable automatic input record splitting (gawk)": "识别输入数据中的八进制和十六进制值,请谨慎使用(gawk)",
"Disable buffering of the output stream": "禁用输出流缓冲",
"Disable caching DNS lookups": "禁用 DNS 查找缓存",
"Disable cert revocation checks (Schannel)": "禁用证书吊销检查(Schannel)",
@@ -1125,7 +1125,7 @@
"Do not detect renames": "不检测重命名",
"Do not display a diagnostic message if chmod could not modify the mode for file, nor modify the exit status to reflect such failures": "若 chmod 无法修改文件的模式,则不显示诊断消息,也不因此修改退出状态",
"Do not display full ahead/behind values": "不显示完整的领先/落后值",
"Do not display the default output, but display a line for each unpairable line in file file_number. The options -v 1 and -v 2 may be specified at the same time": "不显示默认输出,只为 file_number 中无法配对的行各输出一行。-v 1 与 -v 2 可以同时指定",
"Do not display the default output, but display a line for each unpairable line in file file_number. The options -v 1 and -v 2 may be specified at the same time": "不显示默认输出,只为第 file_number 个文件中无法配对的行各输出一行。-v 1 与 -v 2 可以同时指定",
"Do not display untracked files in columns": "不以分列形式显示未跟踪文件",
"Do not download packages, attempt to use already downloaded packages": "不下载软件包,尝试使用已经下载的软件包",
"Do not enable the plugin on install": "安装时不启用该插件",
@@ -1149,6 +1149,7 @@
"Do not pipe Git output into a pager": "不把 Git 输出送入分页器",
"Do not pipe output into a pager": "不把输出送入分页器",
"Do not print ANSI control characters (DEPRECATED)": "不打印 ANSI 控制字符(已弃用)",
"Do not print a trailing newline": "不打印末尾换行",
"Do not print the trailing newline character": "不输出末尾的换行符",
"Do not prompt for confirmation": "不提示确认",
"Do not prompt for confirmation before overwriting the destination path": "覆盖目标路径之前不提示确认",
@@ -1195,7 +1196,6 @@
"Does everything a publish would do except actually publishing to the registry": "执行发布会做的一切,但并不真正发布到注册表",
"Doesn't check optionalDependencies": "不检查 optionalDependencies",
"Doesn't display branch listing in columns": "不以分列形式显示分支列表",
"Domain Information Groper": "域名信息查询工具(Domain Information Groper)",
"Don't add a Signed-off-by trailer by the committer at the end of the commit l": "不在提交说明末尾添加提交者的 Signed-off-by 尾注",
"Don't apply changes matching the given path": "不应用与给定路径匹配的变更",
"Don't ascend to the parent directory": "不上升到父目录",
@@ -1359,7 +1359,6 @@
"Enable the Plug'n'Play installation": "启用 Plug'n'Play 安装",
"Enable the reflog. Updates to a ref <ref> is logged to the file \"`$GIT_DIR/logs/<ref>`\", by appending the new and old SHA-1, the date/time and the reason of the update, but only when the file exists. If this configuration variable is set to `true`, missing \"`$GIT_DIR/logs/<ref>`\" file is automatically created for branch heads (i.e. under `refs/heads/`), remote refs (i.e. under `refs/remotes/`), note refs (i.e. under `refs/notes/`), and the symbolic ref `HEAD`. If it is set to `always`, then a missing reflog is automatically created for any ref under `refs/`": "启用 reflog。对引用 <ref> 的更新会追加记录到文件 \"`$GIT_DIR/logs/<ref>`\",内容包括新的和旧的 SHA-1、日期/时间以及更新原因,但仅当该文件存在时。若此配置变量设为 `true`,则会为分支头(即 `refs/heads/` 下)、远程引用(即 `refs/remotes/` 下)、注释引用(即 `refs/notes/` 下)以及符号引用 `HEAD` 自动创建缺失的 \"`$GIT_DIR/logs/<ref>`\" 文件。若设为 `always`,则为 `refs/` 下的任意引用自动创建缺失的 reflog",
"Enable the service site-wide per default": "默认在全站启用该服务",
"Enable type checking (gawk)": "对无法移植到原始 UNIX awk 的构造发出警告(gawk)",
"Enable username/password auth for SOCKS5 proxies": "为 SOCKS5 代理启用用户名/密码认证",
"Enable/disable PROTOCOLS": "启用/禁用 PROTOCOLS",
"Enable/disable PROTOCOLS on redirect": "在重定向时启用/禁用 PROTOCOLS",
@@ -1379,7 +1378,8 @@
"Enables warnings about unreadable files or directories": "启用关于不可读文件或目录的警告",
"Encode and decode using Base64 representation": "使用 Base64 表示法编码与解码",
"Encode email headers that have non-ASCII characters with \"Q-encoding\" (described in RFC 2047) for email transmission. Defaults to true": "使用 \"Q-encoding\"(见 RFC 2047)对含非 ASCII 字符的邮件头编码,以便邮件传输。默认为 true",
"End each output line with NUL, not newline": "每行输出以 NUL 而非换行符结尾",
"End each output line with NUL, not newline": "每条环境变量记录以 NUL 而非换行符结束",
"End each output path with NUL instead of a newline": "每个输出路径以 NUL 而非换行结尾",
"End lines with 0 byte, not newline": "以 0 字节而不是换行符结束每行",
"End of command options": "命令选项结束",
"End of subcommand options": "子命令选项结束",
@@ -1490,13 +1490,13 @@
"File or directory, local or remote ([user@]host:[path])": "文件或目录,本地或远程([user@]host:[path])",
"File to count in": "要统计的文件",
"File to move": "要移动的文件",
"File to read; standard input when omitted or '-'": "要读取的文件;省略或为 '-' 时读取标准输入",
"File to write the default report output to (default is STDOUT)": "写入默认报告输出的文件(默认为 STDOUT)",
"File whose modification time is displayed": "要显示其修改时间的文件",
"File with bundle of CRLs": "包含 CRL 捆绑的文件",
"File with one date string per line": "每行一个日期字符串的文件",
"File with pathspec": "包含 pathspec 的文件",
"File with the bundle of CAs": "包含 CA 捆绑的文件",
"File(s) to readlink": "要读取的符号链接文件",
"File(s) to stat": "要查看状态的文件",
"Filename, directory, or URL to files identifying the resource": "标识资源的文件名、目录或文件 URL",
"Filter by message content (PCRE2 regex)": "按消息内容过滤(PCRE2 正则表达式)",
@@ -1693,8 +1693,15 @@
"Help for use": "use 的帮助",
"Hibernate and suspend the system": "休眠并挂起系统",
"Hibernate the system": "休眠系统",
"Hide all sections except the ones requested explicitly": "隐藏所有区段,只显示显式请求的部分",
"Hide the additional section": "隐藏附加区段",
"Hide the authority section": "隐藏权威区段",
"Hide the comment lines": "隐藏注释行",
"Hide the question section": "隐藏问题区段",
"Hide the statistics block": "隐藏统计信息",
"Hides the message at the end of each npm install acknowledging the number of dependencies looking for funding": "隐藏每次 npm install 结束时关于正在寻求资助的依赖数量的提示",
"Highlight new and old processes": "高亮新进程和旧进程",
"Highlight duration in seconds": "高亮持续时间,单位为秒",
"Highlight new and old processes": "高亮新启动和已退出的进程",
"Highlight whitespace errors in the `context`, `old` or `new` lines of the diff. Multiple values are separated by comma, `none` resets previous values, `default` reset the list to `new` and `all` is a shorthand for `old,new,context`. The whitespace errors are colored with `color.diff.whitespace`. The command line option `--ws-error-highlight=<kind>` overrides this setting": "高亮差异中 `context`、`old` 或 `new` 行里的空白错误。多个值用逗号分隔,`none` 重置先前的值,`default` 将列表重置为 `new`,`all` 是 `old,new,context` 的简写。空白错误使用 `color.diff.whitespace` 着色。命令行选项 `--ws-error-highlight=<kind>` 会覆盖此设置",
"Homebrew Cask provides a friendly CLI workflow for the administration of macOS applications distributed as binaries": "Homebrew Cask 为以二进制形式分发的 macOS 应用程序管理提供友好的 CLI 工作流",
"Host and port to forward to": "要转发到的主机和端口",
@@ -1821,7 +1828,7 @@
"If the file is a symbolic link, change the times of the link itself rather than the file that the link points to": "如果文件是符号链接,则修改链接本身的时间,而不是链接所指向文件的时间",
"If the file is a symbolic link, change the user ID and/or the group ID of the link itself": "若文件是符号链接,则更改链接本身的用户 ID 和/或组 ID",
"If the fix argument is provided, then remediations will be applied to the package tree": "若提供了 fix 参数,则会对软件包树应用修复",
"If the invoked shell is csh(1), this option prevents it from reading the .cshrc file": "若调用的 shell 是 csh(1),该选项可阻止其读取 .cshrc 文件",
"If the invoked shell is csh(1), this option prevents it from reading the .cshrc file": "若目标 shell 是 csh/tcsh,阻止其读取 .cshrc 启动文件",
"If the number of objects fetched over the Git native transfer is below this limit, then the objects will be unpacked into loose object files. However if the number of received objects equals or exceeds this limit then the received pack will be stored as a pack, after adding any missing delta bases. Storing the pack from a push can make the push operation complete faster, especially on slow filesystems. If not set, the value of `transfer.unpackLimit` is used instead": "若通过 Git 原生传输获取的对象数低于此限制,则这些对象会解包为松散对象文件。若接收的对象数达到或超过此限制,则在补上缺失的 delta 基对象后,将接收到的包存储为包。存储来自推送的包可使推送更快完成,尤其是在较慢的文件系统上。若未设置,则改用 `transfer.unpackLimit` 的值",
"If the number of objects imported by git-fast-import[1] is below this limit, then the objects will be unpacked into loose object files. However if the number of imported objects equals or exceeds this limit then the pack will be stored as a pack. Storing the pack from a fast-import can make the import operation complete faster, especially on slow filesystems. If not set, the value of `transfer.unpackLimit` is used instead": "若 git-fast-import[1] 导入的对象数低于此限制,则这些对象会解包为松散对象文件。若导入的对象数达到或超过此限制,则将包存储为包。存储来自 fast-import 的包可使导入更快完成,尤其是在较慢的文件系统上。若未设置,则改用 `transfer.unpackLimit` 的值",
"If the number of objects received in a push is below this limit then the objects will be unpacked into loose object files. However if the number of received objects equals or exceeds this limit then the received pack will be stored as a pack, after adding any missing delta bases. Storing the pack from a push can make the push operation complete faster, especially on slow filesystems. If not set, the value of `transfer.unpackLimit` is used instead": "若推送中接收的对象数低于此限制,则这些对象会解包为松散对象文件。若接收的对象数达到或超过此限制,则在补上缺失的 delta 基对象后,将接收到的包存储为包。存储来自推送的包可使推送更快完成,尤其是在较慢的文件系统上。若未设置,则改用 `transfer.unpackLimit` 的值",
@@ -1964,7 +1971,7 @@
"In addition to branch names, populate the log message with at most the specified number of one-line descriptions from the actual commits that are being merged. Defaults to false, and true is a synonym for 20": "除分支名外,在日志消息中最多填入指定数量的、来自正在合并的实际提交的单行描述。默认为 false,true 等同于 20",
"In addition to branch names, populate the log message with one-line descriptions from at most <n> actual commits that are being merged. See also git-fmt-merge-msg[1]": "除分支名外,在日志消息中填入最多 <n> 条来自正在合并的实际提交的单行描述。另见 git-fmt-merge-msg[1]",
"In addition to branch names, populate the log message with the branch description text associated with them. Defaults to false": "除分支名外,在日志消息中填入与这些分支关联的分支描述文本。默认为 false",
"In addition to the default output, produce a line for each unpairable line in file file_number": "除默认输出外,还为 file_number 中无法配对的行各输出一行",
"In addition to the default output, produce a line for each unpairable line in file file_number": "除默认输出外,还为第 file_number 个文件中无法配对的行各输出一行",
"In case of failure in the output of git-rm[1], show directions on how to proceed from the current state": "若 git-rm[1] 的输出失败,显示如何从当前状态继续的指引",
"In interactive commands, allow the user to provide one-letter input with a single key (i.e., without hitting enter). Currently this is used by the `--patch` mode of git-add[1], git-checkout[1], git-restore[1], git-commit[1], git-reset[1], and git-stash[1]. Note that this setting is silently ignored if portable keystroke input is not available; requires the Perl module Term::ReadKey": "在交互命令中,允许用户用单个按键提供单字母输入(即无需按回车)。目前 git-add[1]、git-checkout[1]、git-restore[1]、git-commit[1]、git-reset[1] 和 git-stash[1] 的 `--patch` 模式会使用此设置。若无法进行可移植的按键输入,此设置会被静默忽略;需要 Perl 模块 Term::ReadKey",
"In no-overlay mode, tracked files that do not appear in the --source tree are removed, to make them match <tree> exactly": "在非覆盖模式下,会移除 --source 树中未出现的已跟踪文件,使其与 <tree> 完全一致",
@@ -2007,7 +2014,6 @@
"Initialize, update or inspect submodules": "初始化、更新或检查子模块",
"Input file(s)": "输入文件",
"Insert STRING among the headers": "在头中插入 STRING",
"Insert line breaks every count characters. Default is 0, which generates an unbroken stream": "每 count 个字符插入换行。默认值为 0,即生成不中断的连续流",
"Insert text before a line": "在行前插入文本",
"Inspect and manage pip's wheel cache": "检查并管理 pip 的 wheel 缓存",
"Inspect authorization": "检查授权",
@@ -2129,7 +2135,7 @@
"Last number in sequence": "序列的结束数字",
"Launch an interactive session": "启动交互式会话",
"Leave high-bit chars unescaped in output": "在输出中保留高位字符不转义",
"Leave the environment unmodified. The invoked shell is your login shell, and no directory changes are made. As a security precaution, if the target user's shell is a non-standard shell (as defined by getusershell(3)) and the caller's real uid is non-zero, su will fail": "保持环境不变。调用的 shell 是你的登录 shell,且不切换目录。作为安全措施,若目标用户的 shell 是非标准 shell(按 getusershell(3) 定义),且调用者的真实 uid 非零,su 将失败",
"Leave the environment unmodified. The invoked shell is your login shell, and no directory changes are made. As a security precaution, if the target user's shell is a non-standard shell (as defined by getusershell(3)) and the caller's real uid is non-zero, su will fail": "保持当前环境变量不变,使用目标用户的登录 shell,且不切换目录。作为安全措施,若目标用户的 shell 是非标准 shell(按 getusershell(3) 定义)且调用者的真实 uid 非零,su 将失败",
"Leave the rejected hunks in corresponding *.rej files": "将遭拒绝的差异块留在对应的 *.rej 文件中",
"Leave the swarm": "离开 swarm",
"Like --allow-empty this command is primarily for use by foreign SCM interface": "与 --allow-empty 类似,此命令主要供外部 SCM 接口使用",
@@ -2879,7 +2885,7 @@
"Print a set of API resources generated from instructions in a kustomization.yaml file": "打印根据 kustomization.yaml 文件中的指令生成的一组 API 资源",
"Print a short description of all command line options": "显示所有命令行选项的简要说明",
"Print a usage message briefly summarizing these command-line options and the bug-reporting address, then exit": "打印简要概括这些命令行选项和错误报告地址的用法消息,然后退出",
"Print all available system information": "打印所有可用的系统信息",
"Print all available system information": "显示所有可用的系统信息",
"Print all duplicate lines. Delimiting is done with blank lines": "输出所有重复行,并用空行分隔各组",
"Print all numbers using format": "使用格式打印所有数字",
"Print copyright information": "显示版权信息",
@@ -2902,7 +2908,7 @@
"Print only branches that are merged": "仅打印已合并的分支",
"Print only branches that are not merged": "仅打印未合并的分支",
"Print only the matched (non-empty) parts of a matching line, with each such part on a separate output line": "仅打印匹配行中匹配到的(非空)部分,每个部分单独占一行输出",
"Print operating system name": "打印操作系统名称",
"Print operating system name": "显示系统信息(无选项时输出内核名称)",
"Print out every cached package": "打印每个已缓存的软件包",
"Print out the previously obtained statistics": "打印先前获得的统计信息",
"Print out the ref names of any commits that are shown by the log command. If 'short' is specified, the ref name prefixes 'refs/heads/', 'refs/tags/' and 'refs/remotes/' will not be printed. If 'full' is specified, the full ref name (including prefix) will be printed. If 'auto' is specified, then if the output is going to a terminal, the ref names are shown as if 'short' were given, otherwise no ref names are shown. This is the same as the `--decorate` option of the `git log`": "打印 log 命令所显示的任何提交的引用名称。若指定 'short',则不打印引用名前缀 'refs/heads/'、'refs/tags/' 和 'refs/remotes/'。若指定 'full',则打印完整引用名(含前缀)。若指定 'auto',则当输出到终端时按 'short' 显示引用名,否则不显示引用名。这与 `git log` 的 `--decorate` 选项相同",
@@ -2911,8 +2917,9 @@
"Print outdated casks with auto_updates or version :latest": "打印带有 auto_updates 或 version :latest 的过时 cask",
"Print output in JSON format": "以 JSON 格式打印输出",
"Print program version and copyright information and exit": "打印程序版本和版权信息并退出",
"Print resolved symbolic links or canonical file names": "打印解析后的符号链接或规范文件名",
"Print result of information request (e.g., outline, targets) [experimental]": "打印信息请求的结果(例如 outline、targets)[实验性]",
"Print sequences of numbers. (Defaults to increments of 1)": "打印数字序列(默认增量为 1)",
"Print sequences of numbers. (Defaults to increments of 1)": "打印数字序列(默认按 1 递增;BSD/macOS 在起始值大于结束值时按 -1 递减)",
"Print server response": "打印服务器响应",
"Print sizes and dates in human readable format (default true)": "以人类可读格式打印大小和日期(默认 true)",
"Print some extra information about the sorting process to the standard output": "将排序过程的一些额外信息输出到标准输出",
@@ -2935,12 +2942,12 @@
"Print the information in a human friendly format": "以人类友好的格式打印信息",
"Print the logs for a container in a pod or specified resource. If the pod has only one container, the container name is optional": "打印 Pod 或指定资源中某个容器的日志。若 Pod 只有一个容器,则容器名可选",
"Print the logs of this container": "打印此容器的日志",
"Print the machine hardware name": "打印机器硬件名称",
"Print the machine processor architecture name": "打印机器处理器架构名称",
"Print the machine hardware name": "显示机器硬件名称",
"Print the machine processor architecture name": "显示机器处理器架构名称",
"Print the manpath for this version of Git": "打印此 Git 版本的 manpath",
"Print the operating system name": "打印内核名称",
"Print the operating system release": "打印内核发行版本",
"Print the operating system version": "打印内核版本",
"Print the operating system name": "显示内核名称",
"Print the operating system release": "显示内核发行版本",
"Print the operating system version": "显示内核版本",
"Print the options without building": "打印选项而不进行构建",
"Print the output to the output file instead of the standard output": "将输出写入输出文件而不是标准输出",
"Print the peer dependencies that match the specified name": "打印与指定名称匹配的对等依赖",
@@ -2951,7 +2958,7 @@
"Print the service names, one per line": "打印服务名称,每行一个",
"Print the supported API resources on the server": "打印服务器上支持的 API 资源",
"Print the supported API versions on the server, in the form of \"group/version\"": "以 \"group/version\" 形式打印服务器上支持的 API 版本",
"Print the system hostname": "打印系统主机名",
"Print the system hostname": "显示系统主机名",
"Print the value for a given key": "打印给定键的值",
"Print the verification and postinstall steps": "打印验证和 postinstall 步骤",
"Print the version number of make and exit": "显示 make 版本号并退出",
@@ -3062,15 +3069,21 @@
"Put all updated files into place at transfer's end": "在传输结束时将所有已更新文件就位",
"Put the post data in the URL and use GET": "将 POST 数据放入 URL 并使用 GET",
"Python package manager": "Python 软件包管理器",
"Query A records (IPv4 address)": "查询 A 记录(IPv4 地址)",
"Query AAAA records (IPv6 address)": "查询 AAAA 记录(IPv6 地址)",
"Query ALL DNS Records": "查询所有 DNS 记录",
"Query CNAME records (canonical name)": "查询 CNAME 记录(规范名称)",
"Query Domain A Record": "查询域名的 A 记录",
"Query Domain CNAME Record": "查询域名的 CNAME 记录",
"Query Domain MX Record": "查询域名的 MX 记录",
"Query Domain TXT Record": "查询域名的 TXT 记录",
"Query MX Record": "查询 NS 记录(上游英文描述误写为 MX)",
"Query MX records (mail exchangers)": "查询 MX 记录(邮件交换服务器)",
"Query NS records (authoritative name servers)": "查询 NS 记录(权威名称服务器)",
"Query SOA Record": "查询 SOA 记录",
"Query TTL Record": "查询 TTL 记录",
"Query TXT records": "查询 TXT 记录",
"Query only answer section": "只查询 answer 区段",
"Query the SOA record (start of authority)": "查询 SOA 记录(起始授权机构)",
"Query the registry to resolve image digest and supported platforms (\"always\"|\"changed\"|\"never\") (default \"always\")": "查询注册表以解析镜像摘要和支持的平台(\"always\"|\"changed\"|\"never\")(默认 \"always\")",
"Query the systemd journal": "查询 systemd 日志",
"Queue a line of filename to be read and inserted into the output stream at the end of the current cycle, or when the next input line is read": "排队读取 filename 的一行,并在当前循环结束或读取下一行输入时插入输出流",
@@ -3105,7 +3118,6 @@
"Read in a file of environment variables": "读入环境变量文件",
"Read in a line delimited file of labels": "读入以行分隔的标签文件",
"Read include patterns from FILE": "从 FILE 读取包含模式",
"Read input from input_file. Default is stdin; passing - also represents stdin": "从 input_file 读取输入。默认为标准输入;传入 - 也表示标准输入",
"Read list of source-file names from FILE": "从 FILE 读取源文件名列表",
"Read owner translation map from FILE": "从 FILE 读取所有者转换映射",
"Read refspecs, one per line, from stdin in addition to those provided as arguments. The \"tag <name>\" format is not supported": "除作为参数提供的引用规格外,还从标准输入读取引用规格,每行一个。不支持 \"tag <name>\" 格式",
@@ -3122,6 +3134,7 @@
"Receiver deletes after transfer, not during": "接收方在传输之后删除,而不是传输期间",
"Receiver deletes before transfer, not during": "接收方在传输之前删除,而不是传输期间",
"Receiver deletes during the transfer": "接收方在传输期间删除",
"Recognize octal and hexadecimal values in input data (gawk)": "识别输入数据中的八进制和十六进制值,请谨慎使用(gawk)",
"Reconciles rules for RBAC Role, RoleBinding, ClusterRole, and ClusterRole binding objects": "调和 RBAC 的 Role、RoleBinding、ClusterRole 和 ClusterRole 绑定对象的规则",
"Record changes to the repository": "记录对仓库的更改",
"Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists": "在资源注解中记录当前 kubectl 命令。若设为 false,则不记录该命令。若设为 true,则记录该命令。若未设置,则默认仅在已存在注解值时更新它",
@@ -3294,6 +3307,7 @@
"Report a snapshot of the current processes": "报告当前进程的快照",
"Report archived files on stderr": "在标准错误上报告已归档文件",
"Report bugs for a package in a web browser": "在网页浏览器中报告软件包的缺陷",
"Report every resolved path on standard error": "在标准错误上报告每个已解析的路径",
"Report or omit repeated line": "报告或省略重复行",
"Report output format": "报告输出格式",
"Report the names of files as they are moved": "在移动文件时报告文件名",
@@ -3327,9 +3341,12 @@
"Reset failed state for all, one, or more units": "重置全部、一个或多个单元的失败状态",
"Reset module state": "重置模块状态",
"Resets the index and updates the files in the working tree that are different between 'commit' and HEAD": "重置暂存区,并更新工作区中在 'commit' 与 HEAD 之间有差异的文件",
"Resolve every symbolic link in the given path and print the canonical path (all but the last component must exist)": "解析路径中的每个符号链接并打印规范路径(除最后一段外都必须存在)",
"Resolve host names over DOH": "通过 DOH 解析主机名",
"Resolve names to IPv4 addresses": "将名称解析为 IPv4 地址",
"Resolve names to IPv6 addresses": "将名称解析为 IPv6 地址",
"Resolve symbolic links and print the canonical path even if components are missing": "解析符号链接,即使路径组件缺失也打印规范路径",
"Resolve symbolic links and print the canonical path only if all components exist": "解析符号链接,仅当所有路径组件都存在时才打印规范路径",
"Resolve the host+port to this address": "将 host+port 解析到此地址",
"Resolve the merge as a fast-forward when possible. When not possible, refuse to merge and exit with a non-zero status": "尽可能以快进方式完成合并。无法快进时拒绝合并,并以非零状态退出",
"Resolves HTML input-file links (-i -F) relative to URL": "相对于 URL 解析 HTML 输入文件链接(-i -F)",
@@ -3418,7 +3435,7 @@
"Run container in background and print container ID": "在后台运行容器并打印容器 ID",
"Run entirely from system cache": "完全从系统缓存运行",
"Run git maintenance run --auto at the end to perform automatic repository maintenance if": "最后运行 git maintenance run --auto,以便执行自动仓库维护,如果",
"Run in POSIX compatibility mode (gawk)": "以传统兼容模式运行,行为等同 Brian Kernighan 的 awk(gawk)",
"Run in traditional compatibility mode (gawk)": "以传统兼容模式运行,行为等同 Brian Kernighan 的 awk(gawk)",
"Run install without checking if node_modules is installed": "运行 install 时不检查 node_modules 是否已安装",
"Run no commands; exit status says if up to date": "不运行任何命令;退出状态表示目标是否最新",
"Run on auto-updates (e.g. before brew install). Skips some slower steps": "在自动更新时运行(例如在 brew install 之前)。跳过一些较慢的步骤",
@@ -3575,6 +3592,7 @@
"Send PRET before PASV": "在 PASV 之前发送 PRET",
"Send STRING as data. --method MUST be set": "将 STRING 作为数据发送。必须设置 --method",
"Send User-Agent <name> to server": "向服务器发送 User-Agent <name>",
"Send an ANY query; the response may be incomplete (RFC 8482)": "发起 ANY 查询;响应可能不完整(RFC 8482)",
"Send command(s) to server before transfer": "在传输之前向服务器发送命令",
"Send contents of FILE. --method MUST be set": "发送 FILE 的内容。必须设置 --method",
"Send cookies from string/file": "从字符串/文件发送 cookie",
@@ -3682,7 +3700,7 @@
"Set the accuracy for mod-time comparisons": "设置修改时间比较的精度",
"Set the commit message to be used for the merge commit (in case one is created). If --log is specified, a shortlog of the commits being merged will be appended to the specified message. The git fmt-merge-msg command can be used to give a good default for automated git merge invocations. The automated message can include the branch description": "设置合并提交所使用的提交消息(如果会创建合并提交)。若指定了 --log,正在合并的提交的 shortlog 会附加到指定消息之后。git fmt-merge-msg 命令可为自动化的 git merge 调用提供良好的默认消息。自动生成的消息可以包含分支描述",
"Set the connect timeout to SECS": "将连接超时设为 SECS",
"Set the conversion record size": "设置转换记录大小(cbs,每次转换的字节数)",
"Set the conversion record size": "设置转换记录长度(字节),供 block/unblock 等记录转换使用",
"Set the current builder instance": "设置当前的 builder 实例",
"Set the default context": "设置默认上下文",
"Set the default date-time mode for the 'log' command. Setting a value for log.date is similar to using 'git log''s `--date` option. See git-log[1] for details": "设置 'log' 命令的默认日期时间模式。为 log.date 设置值类似于使用 'git log' 的 `--date` 选项。详情见 git-log[1]",
@@ -3850,7 +3868,7 @@
"Show newest entries first": "最新条目优先显示",
"Show number of added and deleted lines in decimal notation": "以十进制显示新增和删除的行数",
"Show only names of changed files": "仅显示已更改文件的名称",
"Show only processes for a given user (or $USER)": "只显示指定用户(或 $USER)的进程",
"Show only processes of the given user": "只显示给定用户的进程",
"Show only properties by this name": "仅显示此名称的属性",
"Show only the given PIDs": "只显示指定的 PID",
"Show only unmerged branches in the 'revPrompt' subdialog. This is useful for tools similar to merge or rebase, but not for things like checkout or reset": "仅在 'revPrompt' 子对话框中显示未合并的分支。适用于类似合并或变基的工具,不适用于检出或 reset",
@@ -3876,6 +3894,7 @@
"Show status in long format (default)": "以长格式显示状态(默认)",
"Show the Docker Compose version information": "显示 Docker Compose 版本信息",
"Show the Docker version information": "显示 Docker 版本信息",
"Show the answer section": "显示答案区段",
"Show the author email instead of author name in git-blame[1]. This option defaults to false": "在 git-blame[1] 中显示作者邮箱而非作者名。此选项默认为 false",
"Show the branch and tracking info even in short-format": "即使在短格式中也显示分支和跟踪信息",
"Show the changelog for a package": "显示软件包的更新日志",
@@ -3953,7 +3972,7 @@
"Similar to --show-origin in that it augments the output of all queried config": "类似于 --show-origin,会为所有已查询配置的输出补充信息",
"Similar to `error` but shows all errors": "类似于 `error`,但显示所有错误",
"Simple username/groupname mapping": "简单的用户名/组名映射",
"Simulate a full login. The environment is discarded except for HOME, SHELL, PATH, TERM, and USER. HOME and SHELL are modified as above. USER is set to the target login. PATH is set to ``/bin:/usr/bin''. TERM is imported from your current environment. The invoked shell is the target login's, and su willchange directory to the target login's home directory": "模拟完整登录。除 HOME、SHELL、PATH、TERM 和 USER 外,环境变量全部丢弃。HOME 和 SHELL 按上述方式修改;USER 设为目标登录用户;PATH 设为 ``/bin:/usr/bin'';TERM 从当前环境导入。调用的 shell 为目标登录用户的 shell,su 会切换到目标登录用户的主目录",
"Simulate a full login. The environment is discarded except for HOME, SHELL, PATH, TERM, and USER. HOME and SHELL are modified as above. USER is set to the target login. PATH is set to ``/bin:/usr/bin''. TERM is imported from your current environment. The invoked shell is the target login's, and su willchange directory to the target login's home directory": "模拟完整登录:切换到目标用户的主目录,并按登录会话重建环境(具体保留或重置哪些变量由实现与 PAM 配置决定)",
"Simulate running this command and show it's output, without actually changing anything": "模拟运行此命令并显示其输出,不实际更改任何内容",
"Size of /dev/shm": "/dev/shm 的大小",
"Skip Yarn console logs": "跳过 Yarn 控制台日志",
@@ -3978,11 +3997,11 @@
"Skip warning for input/output not being a terminal": "跳过输入/输出不是终端的警告",
"Some commands (e.g. svn and http interfaces) that interactively ask for a password can be told to use an external program given via the value of this variable. Can be overridden by the `GIT_ASKPASS` environment variable. If not set, fall back to the value of the `SSH_ASKPASS` environment variable or, failing that, a simple password prompt. The external program shall be given a suitable prompt as command-line argument and write the password on its STDOUT": "某些以交互方式询问密码的命令(例如 svn 和 http 接口)可使用此变量所给值指定的外部程序。可被环境变量 `GIT_ASKPASS` 覆盖。若未设置,则回退到环境变量 `SSH_ASKPASS` 的值;若仍不可用,则使用简单的密码提示。外部程序会收到合适的提示作为命令行参数,并将密码写入其 STDOUT",
"Somewhat quiet output. Don't display ICMP error messages that are in response to our query messages. Originally, the -v flag was required to display such errors, but -v displays all ICMP error messages. On a busy machine, this output can be overbear- ing. Without the -Q flag, ping prints out any ICMP error mes- sages caused by its own ECHO_REQUEST messages": "较为安静的输出。不显示响应本方查询消息的 ICMP 错误消息。最初需要 -v 标志才显示此类错误,但 -v 会显示所有 ICMP 错误消息。在繁忙的机器上,这些输出可能过于冗长。若没有 -Q 标志,ping 会打印由其自身 ECHO_REQUEST 消息引起的任何 ICMP 错误消息",
"Sort by COLUMN in list view": "在列表视图中按 COLUMN 排序",
"Sort by a random order": "按随机顺序排序",
"Sort by general numerical value": "按通用数值排序",
"Sort by month abbreviations. Unknown strings are considered smaller than the month names": "按月份缩写排序。未知字符串视为小于月份名称",
"Sort by numerical value, but take into account the SI suffix, if present": "按数值排序,但考虑存在的 SI 后缀",
"Sort by the given column": "按给定列排序",
"Sort by time modified (most recently modified first) before sorting the operands by lexicographical order": "先按修改时间排序(最近修改的在前),再按字典序排序操作数",
"Sort fields numerically by arithmetic value": "按算术值对字段进行数值排序",
"Sort files by size": "按大小对文件排序",
@@ -4202,6 +4221,7 @@
"String(s) `receive-pack` and `upload-pack` use to decide which refs to omit from their initial advertisements. Use more than one definition to specify multiple prefix strings. A ref that is under the hierarchies listed in the value of this variable is excluded, and is hidden when responding to `git push` or `git fetch`. See `receive.hideRefs` and `uploadpack.hideRefs` for program-specific versions of this config": "`receive-pack` 和 `upload-pack` 用来决定在初始通告中省略哪些引用的字符串。使用多个定义可指定多个前缀字符串。位于此变量所列层次下的引用会被排除,并在响应 `git push` 或 `git fetch` 时隐藏。程序专用版本参见 `receive.hideRefs` 和 `uploadpack.hideRefs`",
"Strip NUMBER leading components from file names on extraction": "提取时从文件名中去除 NUMBER 个前导组成部分",
"Strip leading and trailing empty lines, trailing whitepace, commentary and collapse consecutive empty lines": "去除首尾空行、尾部空白、注释,并合并连续空行",
"Strip the last component from the path before resolving": "解析前去掉路径的最后一段",
"SubResource such as pod/log or deployment/scale": "子资源,例如 pod/log 或 deployment/scale",
"Submit audit reports alongside the current npm command to the default registry and all registries configured for scopes": "将审计报告与当前 npm 命令一起提交到默认注册表以及为作用域配置的所有注册表",
"Submodules working trees will not be updated": "不会更新子模块的工作区",
@@ -4247,6 +4267,7 @@
"Switch to the home directory": "切换到主目录",
"Switch to the last used branch": "切换到上次使用的分支",
"Switch to the last used folder": "切换到上次使用的文件夹",
"Symbolic link or path to resolve": "要解析的符号链接或路径",
"Symbolic links on the command line and in file hierarchies are followed": "跟随命令行上和文件层次中的符号链接",
"Symbolic links on the command line are followed, symbolic links in file hierarchies are not followed": "跟随命令行上的符号链接,不跟随文件层次中的符号链接",
"Symbolic links on the command line are followed. This option is assumed if none of the -F, -d, or -l options are specified": "跟随命令行上的符号链接。若未指定 -F、-d 或 -l 中的任一选项,则假定使用此选项",
@@ -4323,7 +4344,7 @@
"The -G option suppresses all highlighting of strings found by\nsearch commands": "-G 选项抑制搜索命令找到的所有字符串高亮",
"The -O option is like -o, but it will overwrite an existing file\nwithout asking for confirmation.\nIf no log file has been specified, the -o and -O options can be\nused from within less to specify a log file. Without a file\nname, they will simply report the name of the log file. The \"s\"\ncommand is equivalent to specifying -o from within less": "-O 选项类似于 -o,但会覆盖已有文件而不请求确认。若未指定日志文件,可在 less 内部使用 -o 和 -O 选项来指定日志文件。若没有文件名,它们只会报告日志文件的名称。\"s\" 命令等同于在 less 内部指定 -o",
"The -d option suppresses the error message normally displayed if\nthe terminal is dumb; that is, lacks some important capability,\nsuch as the ability to clear the screen or scroll backward. The\n-d option does not otherwise change the behavior of less on a\ndumb terminal": "-d 选项抑制终端为哑终端时通常显示的错误消息;也就是缺少某些重要能力,例如清屏或向后滚动。除此之外,-d 选项不会改变 less 在哑终端上的行为",
"The -o option specifies the fields that will be output from each file for each line with matching join fields. Each element of list has either the form file_number.field, where file_number is a file number and field is a field number, or the form ‘0’ (zero), representing the join field. The elements of list must be either comma (',') or whitespace separated. (The latter requires quoting to protect it from the shell, or, a simpler approach is to use multiple -o options.)": "-o 选项指定在连接字段匹配的每一行中,各文件要输出的字段。list 的每个元素形如 file_number.field(file_number 为文件序号,field 为字段序号),或为 '0'(零),代表连接字段。list 的元素须以逗号(',')或空白分隔(后者需要加引号以免被 shell 解释,更简单的做法是多次使用 -o 选项)",
"The -o option specifies the fields that will be output from each file for each line with matching join fields. Each element of list has either the form file_number.field, where file_number is a file number and field is a field number, or the form ‘0’ (zero), representing the join field. The elements of list must be either comma (',') or whitespace separated. (The latter requires quoting to protect it from the shell, or, a simpler approach is to use multiple -o options.)": "-o 选项指定每条输出记录要包含各文件的哪些字段。list 的每个元素形如 file_number.field(file_number 为文件序号,field 为字段序号),或为 '0'(零),代表连接字段。list 的元素须以逗号(',')或空白分隔(后者需要加引号以免被 shell 解释,更简单的做法是多次使用 -o 选项)",
"The -p option on the command line is equivalent to specifying\n+/pattern; that is, it tells less to start at the first\noccurrence of pattern in the file": "命令行上的 -p 选项等同于指定 +/pattern;也就是告诉 less 从文件中模式的第一次出现处开始",
"The -t option, followed immediately by a TAG, will edit the file\ncontaining that tag. For this to work, tag information must be\navailable; for example, there may be a file in the current\ndirectory called \"tags\", which was previously built by ctags(1)\nor an equivalent command. If the environment variable\nLESSGLOBALTAGS is set, it is taken to be the name of a command\ncompatible with global(1), and that command is executed to find\nthe tag. (See http://www.gnu.org/software/global/global.html).\nThe -t option may also be specified from within less (using the\n- command) as a way of examining a new file. The command \":t\"\nis equivalent to specifying -t from within less": "-t 选项紧接一个 TAG,将编辑包含该标签的文件。为此必须有标签信息可用;例如当前目录中可能有一个由 ctags(1) 或等效命令先前生成的名为 \"tags\" 的文件。若设置了环境变量 LESSGLOBALTAGS,则将其视为与 global(1) 兼容的命令名,并执行该命令来查找标签。(参见 http://www.gnu.org/software/global/global.html)。也可在 less 内部指定 -t 选项(使用 - 命令)来查看新文件。命令 \":t\" 等同于在 less 内部指定 -t",
"The Docker image to use": "要使用的 Docker 镜像",
@@ -4587,7 +4608,7 @@
"Treat all named arguments as formulae. If no named arguments are specified, upgrade only outdated formulae": "将所有具名参数视为 formula。若未指定具名参数,则只升级过时的 formula",
"Treat each line obtained from a file list as a file name, even if it starts with a dash": "将从文件列表取得的每一行都视为文件名,即使它以连字符开头",
"Treat each line read from a file list as if it were supplied in the command line": "将从文件列表读取的每一行视为在命令行中提供",
"Treat every argument as a string": "把每个参数都当作字符串",
"Treat every argument as a string": "支持多个路径名,将每个参数作为路径名处理",
"Treat input file as HTML": "将输入文件视为 HTML",
"Treat non-zero exit codes of children as error": "将子进程的非零退出码视为错误",
"Treat symlinked dir on receiver as dir": "将接收端的符号链接目录视为目录",
@@ -4804,7 +4825,7 @@
"Use staging as the restore location": "使用暂存区作为恢复位置",
"Use stat(2) instead of lstat(2). The information reported by stat will refer to the target of file, if file is a symbolic link, and not to file itself. If the link is broken or the target does not exist, fall back on lstat(2) and report information about the link": "使用 stat(2) 而非 lstat(2)。若 file 是符号链接,报告的是其目标而不是链接本身;若链接损坏或目标不存在,则回退到 lstat(2) 并报告链接自身的信息",
"Use string to terminate sequence of numbers": "用 string 终止数字序列",
"Use suffix_length letters to form the suffix of the file name": "使用 suffix_length 个字母构成文件名后缀",
"Use suffix_length letters to form the suffix of the file name": "使用 suffix_length 个字符构成文件名后缀",
"Use the POST method; send STRING as the data": "使用 POST 方法;将 STRING 作为数据发送",
"Use the POST method; send contents of FILE": "使用 POST 方法;发送 FILE 的内容",
"Use the TCP_NODELAY option": "使用 TCP_NODELAY 选项",
@@ -4902,6 +4923,7 @@
"Wait time between retries": "重试之间的等待时间",
"Wait wait seconds between sending each packet. The default is to wait for one second between each packet. The wait time may be fractional, but only the super-user may specify values less than 0.1 second. This option is incompatible with the -f option": "在发送每个数据包之间等待 wait 秒。默认在每个数据包之间等待一秒。等待时间可以是小数,但只有超级用户可以指定小于 0.1 秒的值。此选项与 -f 选项不兼容",
"Walk a file hierarchy": "遍历文件层次结构",
"Warn about constructs not portable to the original Unix awk (gawk)": "对无法移植到原始 UNIX awk 的构造发出警告(gawk)",
"Warn when an undefined variable is referenced": "引用未定义变量时发出警告",
"Warning control. Python’s warning machinery by default prints warning messages to sys.stderr": "警告控制。Python 的警告机制默认将警告消息输出到 sys.stderr",
"Watch for changes to the requested object(s), without listing/getting first": "监视所请求对象的更改,而不先列出或获取",
@@ -4927,6 +4949,7 @@
"When copying notes during a rewrite, specifies the (fully qualified) ref whose notes should be copied. The ref may be a glob, in which case notes in all matching refs will be copied. You may also specify this configuration several times": "在重写期间复制注释时,指定应复制其注释的(完全限定)引用。该引用可以是通配模式,此时将复制所有匹配引用中的注释。也可多次指定此配置",
"When creating a new branch, set up 'upstream' configuration": "创建新分支时,设置 'upstream' 配置",
"When creating an archive, sort directory entries according to ORDER": "创建归档时,按 ORDER 对目录条目排序",
"When decoding, ignore non-alphabet characters": "解码时忽略不属于字母表的字符",
"When doing a dry-run, give the output in a porcelain-ready format. See git-st": "试运行时,以可供脚本解析的格式给出输出。参见 git-status[1]",
"When doing a dry-run, give the output in the long-format. Implies --dry-run": "试运行时,以长格式给出输出。隐含 --dry-run",
"When doing a dry-run, give the output in the short-format. See git-status[1]": "试运行时,以短格式给出输出。参见 git-status[1]",
@@ -5049,6 +5072,7 @@
"Working trees can be identified by path, either relative or absolute": "工作区可通过相对或绝对路径标识",
"Works just like format.signature except the contents of the file specified by this variable will be used as the signature": "与 format.signature 相同,只是将使用此变量指定的文件内容作为签名",
"World, line, character, and byte count": "统计单词数、行数、字符数和字节数",
"Wrap encoded lines after the given number of characters (0 disables wrapping)": "按给定字符数对编码输出换行(0 表示不换行)",
"Write a batched update to FILE": "将批量更新写入 FILE",
"Write a commit-graph after fetching. This overrides the config setting fetch.writeCommitGraph": "获取后写入 commit-graph。这会覆盖配置设置 fetch.writeCommitGraph",
"Write a debug trace to FILE": "将调试跟踪写入 FILE",
@@ -5059,7 +5083,6 @@
"Write cookies to <filename> after operation": "操作后将 cookie 写入 <filename>",
"Write documents to FILE": "将文档写入 FILE",
"Write output to a file named as the remote file": "将输出写入以远程文件命名的文件",
"Write output to output_file. Default is stdout; passing - also represents stdout": "将输出写入 output_file。默认为标准输出;传入 - 也表示标准输出",
"Write startup timing messages to <file>": "将启动计时消息写入 <file>",
"Write the archive to this file": "将归档写入此文件",
"Write the container ID to the file": "将容器 ID 写入该文件",
File diff suppressed because it is too large. Load diff
@@ -110,7 +110,7 @@ test("batch zh-TW spot checks cover corrected semantics", () => {
);
assert.equal(
traditional["Turn on value of next option"],
"啟用指定的 NeXT 相容選項(Apple 擴充套件)",
"啟用指定的 NeXT 相容選項(Apple 擴充)",
);
});
@@ -116,12 +116,12 @@ test("batch zh-TW spot checks cover generated terminology", () => {
"未停用自動列印時,先列印模式空間;隨後用下一行輸入替換模式空間。若無更多輸入則退出。",
);
assert.equal(
traditional["Run in POSIX compatibility mode (gawk)"],
traditional["Run in traditional compatibility mode (gawk)"],
"以傳統相容模式執行,行為等同 Brian Kernighan 的 awk(gawk)",
);
assert.equal(
traditional["Interprets regular expressions as extended (modern) regular expressions rather than basic regular expressions"],
"將正規表示式解釋為擴充套件(現代)正規表示式,而不是基本正規表示式",
"將正規表示式解釋為擴充(現代)正規表示式,而不是基本正規表示式",
);
});
@@ -202,19 +202,19 @@ test("python, node, vim, sort, awk, and sed options localize without changing in
{
input: "awk -",
option: "-c",
key: "Run in POSIX compatibility mode (gawk)",
key: "Run in traditional compatibility mode (gawk)",
zhCn: "以传统兼容模式运行,行为等同 Brian Kernighan 的 awk(gawk)",
},
{
input: "awk -",
option: "-n",
key: "Disable automatic input record splitting (gawk)",
key: "Recognize octal and hexadecimal values in input data (gawk)",
zhCn: "识别输入数据中的八进制和十六进制值,请谨慎使用(gawk)",
},
{
input: "awk -",
option: "-t",
key: "Enable type checking (gawk)",
key: "Warn about constructs not portable to the original Unix awk (gawk)",
zhCn: "对无法移植到原始 UNIX awk 的构造发出警告(gawk)",
},
{
@@ -151,18 +151,64 @@ test("batch 4 spot checks preserve verified semantics, placeholders and upstream
"返回路径名的文件名部分",
);
assert.equal(
simplified["File(s) to readlink"],
"要读取的符号链接文件",
simplified["Symbolic link or path to resolve"],
"要解析的符号链接或路径",
);
assert.equal(
simplified["Resolve every symbolic link in the given path and print the canonical path (all but the last component must exist)"],
"解析路径中的每个符号链接并打印规范路径(除最后一段外都必须存在)",
);
// Review fixes: platform, units and scope wording.
assert.equal(simplified["Highlight new and old processes"], "高亮新启动和已退出的进程");
assert.equal(simplified["Highlight duration in seconds"], "高亮持续时间,单位为秒");
assert.equal(
simplified["Use suffix_length letters to form the suffix of the file name"],
"使用 suffix_length 个字符构成文件名后缀",
);
assert.ok(
simplified["Create split files byte_count bytes in length. If k or K is appended to the number, the file is split into byte_count kilobyte pieces. If m or M is appended to the number, the file is split into byte_count megabyte pieces. If g or G is appended to the number, the file is split into byte_count gigabyte pieces"].includes("KiB"),
);
assert.equal(
simplified["Set the conversion record size"],
"设置转换记录长度(字节),供 block/unblock 等记录转换使用",
);
assert.equal(
simplified["In addition to the default output, produce a line for each unpairable line in file file_number"],
"除默认输出外,还为第 file_number 个文件中无法配对的行各输出一行",
);
assert.equal(
simplified["Treat every argument as a string"],
"支持多个路径名,将每个参数作为路径名处理",
);
assert.equal(
simplified["End each output line with NUL, not newline"],
"每条环境变量记录以 NUL 而非换行符结束",
);
assert.equal(simplified["Decode input instead of encoding it"], "解码输入而不是编码");
assert.equal(
simplified["When decoding, ignore non-alphabet characters"],
"解码时忽略不属于字母表的字符",
);
assert.ok(
simplified["Leave the environment unmodified. The invoked shell is your login shell, and no directory changes are made. As a security precaution, if the target user's shell is a non-standard shell (as defined by getusershell(3)) and the caller's real uid is non-zero, su will fail"].includes("getusershell(3)"),
);
assert.equal(simplified["Show the answer section"], "显示答案区段");
assert.equal(
simplified["Send an ANY query; the response may be incomplete (RFC 8482)"],
"发起 ANY 查询;响应可能不完整(RFC 8482)",
);
assert.equal(
simplified["Count logical lines, rather than screen lines"],
"按逻辑行计数,而不是按屏幕行",
);
// Upstream dig spec labels the NS type as "Query MX Record"; the translation
// keeps the correct meaning and records the upstream wording error.
// The local dig spec fixes the upstream NS label and drops the bogus TTL type.
assert.equal(
simplified["Query MX Record"],
"查询 NS 记录(上游英文描述误写为 MX)",
simplified["Query NS records (authoritative name servers)"],
"查询 NS 记录(权威名称服务器)",
);
assert.equal(
simplified["Query the SOA record (start of authority)"],
"查询 SOA 记录(起始授权机构)",
);
// The local GNU date spec replaces the bundled BSD option set.
assert.equal(
@@ -187,7 +233,7 @@ test("batch 4 descriptions localize without changing insertion text", async () =
{ command: "which", option: "-a", key: "List all instances of executables found, instead of just the first", zhCn: "列出找到的所有可执行文件实例,而不只是第一个" },
{ command: "pwd", option: "-P", key: "Display the physical current working directory", zhCn: "显示物理当前工作目录" },
{ command: "seq", option: "-w", key: "Equalize the widths of all numbers by padding with zeros as necessary", zhCn: "必要时用零填充,使所有数字宽度一致" },
{ command: "basename", option: "-a", key: "Treat every argument as a string", zhCn: "把每个参数都当作字符串" },
{ command: "basename", option: "-a", key: "Treat every argument as a string", zhCn: "支持多个路径名,将每个参数作为路径名处理" },
{ command: "more", option: "-s", key: "Squeeze multiple blank lines into one", zhCn: "把多个空行压缩为一行" },
{ command: "clear", option: "-T", key: "Indicates the type of terminal", zhCn: "指定终端类型" },
{ command: "date", option: "-u", key: "Display or set the date in UTC (Coordinated Universal) time", zhCn: "以 UTC(协调世界时)显示或设置日期" },
@@ -224,10 +270,35 @@ test("batch 4 zh-TW uses Taiwan terminology and mirrors zh-CN keys", () => {
traditional["Return filename portion of pathname"],
"返回路徑名的檔名部分",
);
assert.equal(traditional["File(s) to readlink"], "要讀取的符號連結檔案");
assert.equal(traditional["Symbolic link or path to resolve"], "要解析的符號連結或路徑");
assert.equal(traditional["Join on the field'th field of file1"], "按 file1 的第 field 個欄位聯結");
assert.equal(traditional["Use a numeric suffix instead of a alphabetic suffix"], "使用數字字尾而不是字母字尾");
assert.equal(
traditional["Query MX Record"],
"查詢 NS 記錄(上游英文描述誤寫為 MX)",
traditional["List all instances of executables found, instead of just the first"],
"列出找到的所有執行檔,而不只是第一個",
);
assert.equal(
traditional["Instead, clear the whole screen and then display the text"],
"改為清空整個螢幕後再顯示文字",
);
assert.ok(
traditional["The file is split whenever an input line matches pattern, which is interpreted as an extended regular expression. The matching line will be the first line of the next output file. This option is incompatible with the -b and -l options"].includes("擴充正規表示式"),
);
assert.ok(
traditional["Do not attempt to clear terminal's scrollback buffer using the extended E3 capability"].includes("擴充 E3"),
);
assert.equal(traditional["Decode input instead of encoding it"], "解碼輸入而不是編碼");
// s2twp merges 打印 + 机器 into 印表機 when the boundary is not guarded, so
// the zh-CN wording avoids that sequence instead of holding it out.
assert.equal(traditional["Print the machine hardware name"], "顯示機器硬體名稱");
assert.equal(
traditional["Print the machine processor architecture name"],
"顯示機器處理器架構名稱",
);
assert.equal(simplified["Print the machine hardware name"], "显示机器硬件名称");
assert.equal(
traditional["Query NS records (authoritative name servers)"],
"查詢 NS 記錄(權威名稱伺服器)",
);
assert.deepEqual(Object.keys(traditional).sort(), Object.keys(simplified).sort());
});
@@ -65,8 +65,9 @@ Total adopted: 177 unique English keys.
- **awk**: the local macOS `awk` is BSD awk, while the spec also exposes
gawk-specific options. The gawk manual confirms that `-c` is traditional
compatibility mode (not POSIX), `-n` is `--non-decimal-data`, and `-t` is
`--lint-old` (not type checking). The zh-CN text follows the gawk manual;
`electron/specs/awk.js` itself is left unchanged.
`--lint-old` (not type checking). The zh-CN text follows the gawk manual, and
`electron/specs/awk.js` now carries matching English for `-n`, `-c` and `-t`
instead of the earlier Fig wording; the dictionary keys moved with the spec.
- **sed**: the local macOS sed is BSD sed. Fig mixes BSD/Apple options
(`-a`, `-I`, `-i`, `-l`) with GNU extensions (`e`, `F`, `v`, `z`) and shared
options. In particular, BSD `-i` requires an extension while GNU `-i` treats
@@ -104,11 +105,11 @@ unique English strings.
| --- | --- | --- |
| awk | Assign a variable (var=value) | 赋值一个变量(var=value) |
| awk | AWK program text (e.g. '{print $1}') | AWK 程序文本(例如 '{print $1}') |
| awk | Disable automatic input record splitting (gawk) | 识别输入数据中的八进制和十六进制值,请谨慎使用(gawk) |
| awk | Recognize octal and hexadecimal values in input data (gawk) | 识别输入数据中的八进制和十六进制值,请谨慎使用(gawk) |
| awk | Dump variables to file (gawk) | 将变量转储到文件(gawk) |
| awk | e.g. ',' or '\t' | 例如 ',' 或 '\t' |
| awk | Enable pretty-printed output | 启用美化(pretty-print)输出 |
| awk | Enable type checking (gawk) | 对无法移植到原始 UNIX awk 的构造发出警告(gawk) |
| awk | Warn about constructs not portable to the original Unix awk (gawk) | 对无法移植到原始 UNIX awk 的构造发出警告(gawk) |
| awk | Include AWK source library | 包含 AWK 源库 |
| awk | Input file(s) | 输入文件 |
| awk | Load dynamic extension (gawk) | 加载动态扩展(gawk) |
@@ -119,7 +120,7 @@ unique English strings.
| awk | Profile execution and write to file (gawk) | 分析执行情况并写入文件(gawk) |
| awk | Read AWK program from file | 从文件读取 AWK 程序 |
| awk | Read AWK program from file (like -f but disables command-line variable assignments) | 从文件读取 AWK 程序(类似 -f,但禁用命令行变量赋值) |
| awk | Run in POSIX compatibility mode (gawk) | 以传统兼容模式运行,行为等同 Brian Kernighan 的 awk(gawk) |
| awk | Run in traditional compatibility mode (gawk) | 以传统兼容模式运行,行为等同 Brian Kernighan 的 awk(gawk) |
| awk | Sandbox mode — disable system(), I/O redirection (gawk) | 沙箱模式——禁用 system() 和 I/O 重定向(gawk) |
| awk | Set field separator | 设置字段分隔符 |
| awk | Specify AWK program text | 指定 AWK 程序文本 |
@@ -36,7 +36,7 @@ and were reviewed for wording that stays correct in every owner:
## Coverage
| Command | Adopted | Notes |
| Command | Descriptions | Notes |
| --- | ---: | --- |
| `echo` | 4 | newline suppression and escape handling |
| `which` | 3 | PATH lookup, `-a`, `-s` |
@@ -45,23 +45,23 @@ and were reviewed for wording that stays correct in every owner:
| `clear` | 4 | terminal type, ncurses version, E3 scrollback |
| `su` | 4 | BSD `-f`/`-l`/`-`/`-m` |
| `crontab` | 5 | maintain, edit, list, remove, `-u` |
| `env` | 8 | NUL-terminated output, `-i`, `-v`, `-u`, `-P`, `-S` |
| `env` | 9 | NUL-terminated output, `-i`, `-v`, `-u`, `-P`, `-S` |
| `uname` | 8 | `-a`, `-m`, `-n`, `-p`, `-r`, `-s`, `-v` |
| `base64` | 5 | encode/decode, line breaks, input/output files |
| `date` | 13 | local GNU spec: `-d`, `--debug`, `-f`, `-I`, `-R`, `--rfc-3339`, `-r`, `-s`, `-u` |
| `base64` | 8 | local GNU spec: `-d`, `-i`, `-w` and file operands |
| `date` | 17 | local GNU spec: `-d`, `--debug`, `-f`, `-I`, `-R`, `--rfc-3339`, `-r`, `-s`, `-u` |
| `id` | 10 | audit, full name, groups, MAC label, `-n`, `-p` |
| `split` | 9 | suffix length, `-b`, `-d`, `-l`, `-p`, file, prefix |
| `seq` | 11 | start/step/last, `-w`, `-s`, `-f`, `-t` |
| `join` | 11 | equality join, `-a`, `-e`, `-o`, `-t`, `-v`, file/field |
| `dig` | 11 | record types and output trimming |
| `dig` | 17 | local spec: record types and output filters |
| `dd` | 14 | block sizes, seek/skip, conversions |
| `htop` | 14 | delay, filter, highlight, sort, tree, user |
| `basename` | 4 | `-a`, `-s`, operand |
| `dirname` | 2 | operand |
| `readlink` | 1 | file operand |
| `readlink` | 11 | local GNU spec: canonicalize, strip, verbose, zero |
| `more` | 11 | `-d`, `-l`, `-f`, `-p`, `-c`, `-s`, `-u`, `-n` |
Total adopted: 159 unique English keys across 22 commands.
The 22 specs currently expose 182 descriptions; the four local GNU specs replaced the bundled option sets, so `date`, `dig`, `readlink` and `base64` counts reflect the new keys.
All 22 commands are added to `COVERED_COMMANDS` and `COMMON_FIG_SPECS`. They are
small, general-purpose utilities, so preloading them costs little and removes the
@@ -69,11 +69,10 @@ on-demand spec load for the most common shell sessions.
## Semantic notes
- **dig**: the upstream spec labels the `NS` type as “Query MX Record”, and the
`TTL` entry as “Query TTL Record” (TTL is not a DNS record type). The `NS`
translation states the correct meaning and marks the upstream wording error;
`TTL` is translated literally because the option name itself is what the spec
inserts.
- **dig**: the bundled spec labels the `NS` type as “Query MX Record” and offers
`TTL` as a record type. Both are spec defects rather than wording problems, so
`electron/specs/dig.js` replaces them: NS is described as authoritative name
servers, the bogus TTL shortcut is gone, and ANY carries the RFC 8482 caveat.
- **more**: the Fig spec maps `-l` to “Do not pause after any line containing a
^L (form feed)” and `-f` to “Count logical lines, rather than screen lines”.
This matches GNU `more`; the translations follow the option each description
@@ -85,17 +84,17 @@ on-demand spec load for the most common shell sessions.
`-f/--file`, `-I/--iso-8601`, `-R/--rfc-email`, `--rfc-3339`, `-r/--reference`,
`-s/--set` and `-u/--utc` instead, and the 13 BSD-only entries were removed
after a repository-wide scan showed no other spec used them.
- **su**: `-f` is the csh-specific `.cshrc` guard, `-l` performs a full login,
`-` alone equals `-l`, and `-m` keeps the environment. All four descriptions
follow the BSD assertions in the spec, including the `getusershell(3)`
security note.
- **su**: the four descriptions no longer hardcode BSD-only environment claims.
`-l` says it switches to the target home and rebuilds the login environment as
the implementation and PAM decide, `-m` keeps the current environment without
a directory change, and `-f` prevents a csh/tcsh login shell from reading
`.cshrc`.
- **env**: `-P` searches an alternate directory list instead of `PATH`, `-S`
splits a string into arguments, and the trailing “Utility to run” describes
the command operand. These are three separate keys and are not conflated.
- **readlink**: the Fig spec reuses `stat` wording for the command root and for
`-f`. Those shared keys already had translations from the `stat` batch, so the
batch only adds the `file` operand; the inherited `stat` wording is unchanged
upstream and is not re-translated here.
- **readlink**: the bundled spec reuses `stat` wording for the command root and
`-f` (“printf”, “struct stat”). `electron/specs/readlink.js` replaces it with
the GNU options (`-f/-e/-m/-n/-s/-v/-z`) and a plain path operand.
- **paste**: `-d` replaces newlines with characters drawn circularly from the
list; the translation keeps the “wrap around the list” behavior explicit.
- **split**: `-p` starts a new output file on each matching extended regular
@@ -107,44 +106,84 @@ on-demand spec load for the most common shell sessions.
## Platform coverage (GNU/Linux vs BSD/macOS)
Netcatty sessions usually target Linux hosts, so GNU semantics were checked
against `jaywcjlove/linux-command` (MIT, commit `master` at 2026-11-07) for every
against `jaywcjlove/linux-command` (MIT, `master` fetched 2026-11-07) for every
command in this batch that the reference covers (21 of 22; `readlink` is absent).
That review changed four entries, confirmed the rest, and produced the GNU
`date` spec below:
`date` spec described in the semantic notes.
- `uname -s/-r/-v`: the Fig text says “operating system name/release/version”,
but GNU `uname` prints the kernel name/release/version. The zh-CN text now says
内核名称 / 内核发行版本 / 内核版本, which matches what a Linux host prints and
is still accurate on macOS (`Darwin`).
- `dd cbs`: “Set the conversion record size” is now 设置转换记录大小(cbs,每次转换的字节数)
so the unit is explicit, matching GNU `dd` and the reference wording.
- No other wording diverged from the reference beyond synonyms (`制表符` vs
`跳格字符`, `块` vs `区块`); the existing glossary terms stay in place.
Local specs now cover five commands whose bundled Fig data was wrong or macOS-only. Local specs win over `@withfig/autocomplete` at runtime, so Linux hosts
see options that actually exist there:
`date` is no longer in this list: it now ships a GNU spec of its own (see the
semantic notes). The remaining specs in this batch expose options that do not
exist in GNU tools. Those
descriptions describe the option each spec actually inserts, so they are **not**
rewritten into GNU wording — doing so would label an item with behavior it does
not have on the host being connected to:
| Command | Local spec | Bundled spec problem |
| --- | --- | --- |
| `date` | `electron/specs/date.js` | `-j`, `-n`, `-t`, `-v`; `-d` meant DST, `-r` meant epoch seconds |
| `dig` | `electron/specs/dig.js` | `NS` labelled as an MX query, `TTL` offered as a record type |
| `readlink` | `electron/specs/readlink.js` | root and `-f` reused `stat` wording (`printf`, `struct stat`) |
| `base64` | `electron/specs/base64.js` | BSD `-b`/`-i`/`-o`; GNU uses `-w`, and `-i` means ignore garbage while decoding |
| `htop` | `electron/specs/htop.js` | `-H` delay described as tenths of a second; htop stores seconds |
macOS sessions therefore see the GNU option set for these four commands. That is
a deliberate Linux-first trade-off, not an oversight.
The remaining specs in this batch still expose options that do not exist in GNU
tools. Those descriptions describe the option each spec actually inserts, so
they are **not** rewritten into GNU wording — doing so would label an item with
behavior it does not have on the host being connected to:
| Command | Spec-only (BSD/macOS) options |
| --- | --- |
| `su` | `-f`, `-l`, `-m`, `-` |
| `id` | `-A`, `-F`, `-M`, `-P` |
| `base64` | `-b`, `-i`, `-o` |
| `split` | `-p` |
| `seq` | `-t` |
| `env` | `-P` |
| `more` | `-u` (GNU uses it for underlining; the spec follows BSD “ignored”) |
| `which` | `-s` |
Making those commands platform-correct needs per-OS spec selection (the loader
currently resolves one spec per command name and ignores `hostOs`), which is a
code change rather than a translation change. `dd` also carries an upstream
artifact: an operand named `files` with “Copy this many files before
terminating”, which real `dd` does not have; the literal translation is kept and
flagged here instead of inventing behavior.
`su` is a special case: its spec is close to util-linux, but the wording no
longer hardcodes `PATH=/bin:/usr/bin` or a fixed variable list, because Linux
`su -l` setup depends on the implementation and PAM configuration. The `-l`,
`-m` and `-f` descriptions now state the behavior without platform-specific
environment claims.
`dd` also carries an upstream artifact: an operand named `files` with “Copy this
many files before terminating”, which real `dd` does not have; the literal
translation is kept and flagged here instead of inventing behavior.
Making the remaining commands platform-correct needs per-OS spec selection (the
loader currently resolves one spec per command name and ignores `hostOs`), which
is a code change rather than a translation change.
## Review fixes (2026-11-08)
A second review pass over the 159 new entries found wording that would be
visible in the completion menu. Every item below was applied:
| Item | Resolution |
| --- | --- |
| `htop -H` “new and old processes” | 高亮新启动和已退出的进程 (old entries are processes that just exited and linger for highlighting) |
| `htop` highlight delay | The Fig text says “in tenths of sec”, but htop 3.2.2 compares `1000 * highlightDelaySecs`; `electron/specs/htop.js` corrects the English for every locale and the zh-CN text says seconds |
| `split -a` “letters” | 字符, because `-d` produces numeric suffixes |
| `split -b` units | KiB / MiB / GiB, matching GNU's 1024-based suffixes instead of KB |
| `dd cbs` | 转换记录长度(字节),供 block/unblock 等记录转换使用 |
| `join -a` / `-v` | 第 file_number 个文件中的行, because `file_number` is a file index |
| `join -o` | No longer limited to matched lines; `-o` also formats unpaired output from `-a`/`-v` |
| `basename -a` | 支持多个路径名,将每个参数作为路径名处理 |
| `env -0` | 每条环境变量记录以 NUL 而非换行符结束 |
| `dig` answer filter | Describes hiding comments, question, authority, additional and statistics instead of “query only the answer section” |
| `dig ANY` | 发起 ANY 查询;响应可能不完整(RFC 8482) |
| `dig TTL` | Removed with the local spec; TTL is a record field, not a record type |
| `readlink -f` | Fixed by the local spec; no longer shows `printf`/`struct stat` wording |
| `base64 -i` | Fixed by the GNU local spec (`--ignore-garbage`), documented above |
| `su -l` / `-m` / `-f` | Removed hardcoded environment claims; see the platform note |
| `seq` root | 默认按 1 递增;BSD/macOS 在起始值大于结束值时按 -1 递减 |
| `uname` root | 显示系统信息(无选项时输出内核名称) |
Taiwan wording that OpenCC s2twp could not resolve is handled by a documented
post-conversion table in the generator (not by hand-editing `zh-TW`):
`擴充套件正規表示式`→`擴充正規表示式`, `擴充套件 E3`→`擴充 E3`,
`欄位連線`→`欄位聯結`, `二進位制資料`→`二進位資料`, `后綴`→`字尾`,
`執行檔例項`→`執行檔`, `屏幕`→`螢幕`, `文本`→`文字`.
## Adopted entries (excerpt)
@@ -156,13 +195,13 @@ flagged here instead of inventing behavior.
| `seq -w` | Equalize the widths of all numbers by padding with zeros as necessary | 必要时用零填充,使所有数字宽度一致 |
| `basename` | Return filename portion of pathname | 返回路径名的文件名部分 |
| `dirname` | Return directory portion of pathname | 返回路径名的目录部分 |
| `readlink` | File(s) to readlink | 要读取的符号链接文件 |
| `readlink` | Symbolic link or path to resolve | 要解析的符号链接或路径 |
| `date -u` | Display or set the date in UTC (Coordinated Universal) time | 以 UTC(协调世界时)显示或设置日期 |
| `more -f` | Count logical lines, rather than screen lines | 按逻辑行计数,而不是按屏幕行 |
| `dig` (NS) | Query MX Record | 查询 NS 记录(上游英文描述误写为 MX) |
| `dig` (NS) | Query NS records (authoritative name servers) | 查询 NS 记录(权威名称服务器) |
| `split -p` | The file is split whenever an input line matches pattern, which is interpreted as an extended regular expression. The matching line will be the first line of the next output file. This option is incompatible with the -b and -l options | 每当输入行匹配 pattern(按扩展正则表达式解释)时就拆分成新文件。匹配行会成为下一个输出文件的第一行。该选项与 -b 和 -l 不兼容 |
| `dd bs` | Set input and output block size | 同时设置输入和输出块大小 |
| `htop -d` | Delay between updates, in tenths of sec | 更新间隔,单位为 0.1 秒 |
| `htop -H` delay | Highlight duration in seconds | 高亮持续时间,单位为秒 |
`zh-TW` is generated from these values with
`node scripts/generate-autocomplete-descriptions-zh-TW.mjs` (OpenCC s2twp), not
+3 -3
View File
@@ -12,19 +12,19 @@ const completionSpec = {
{ name: "-f", description: "Read AWK program from file", args: { name: "progfile", template: "filepaths" } },
{ name: "-o", description: "Enable pretty-printed output", args: { name: "file", isOptional: true, template: "filepaths" } },
{ name: "-b", description: "Treat all input data as single-byte characters (gawk)" },
{ name: "-c", description: "Run in POSIX compatibility mode (gawk)" },
{ name: "-c", description: "Run in traditional compatibility mode (gawk)" },
{ name: "-C", description: "Print copyright information" },
{ name: "-d", description: "Dump variables to file (gawk)", args: { name: "file", isOptional: true, template: "filepaths" } },
{ name: "-e", description: "Specify AWK program text", args: { name: "program" } },
{ name: "-E", description: "Read AWK program from file (like -f but disables command-line variable assignments)", args: { name: "file", template: "filepaths" } },
{ name: "-i", description: "Include AWK source library", args: { name: "source-file", template: "filepaths" } },
{ name: "-l", description: "Load dynamic extension (gawk)", args: { name: "ext" } },
{ name: "-n", description: "Disable automatic input record splitting (gawk)" },
{ name: "-n", description: "Recognize octal and hexadecimal values in input data (gawk)" },
{ name: "-N", description: "Use locale decimal point for parsing input data (gawk)" },
{ name: "-p", description: "Profile execution and write to file (gawk)", args: { name: "file", isOptional: true, template: "filepaths" } },
{ name: "-P", description: "POSIX compatibility mode (gawk)" },
{ name: "-S", description: "Sandbox mode — disable system(), I/O redirection (gawk)" },
{ name: "-t", description: "Enable type checking (gawk)" },
{ name: "-t", description: "Warn about constructs not portable to the original Unix awk (gawk)" },
{ name: "--help", description: "Show help" },
{ name: "--version", description: "Print version information" },
],
+24
View File
@@ -0,0 +1,24 @@
// base64 spec — GNU coreutils. The bundled Fig spec follows BSD flags
// (-b line length, -i input file, -o output file); GNU uses -w, -i for
// ignoring invalid bytes while decoding, and positional files.
const completionSpec = {
name: "base64",
description: "Encode and decode using Base64 representation",
options: [
{ name: ["-d", "--decode"], description: "Decode input instead of encoding it" },
{
name: ["-i", "--ignore-garbage"],
description: "When decoding, ignore non-alphabet characters",
},
{
name: ["-w", "--wrap"],
description: "Wrap encoded lines after the given number of characters (0 disables wrapping)",
args: { name: "cols", description: "Characters per line; 0 disables wrapping" },
},
{ name: "--help", description: "Display help text" },
{ name: "--version", description: "Display version information" },
],
args: { name: "file", description: "File to read; standard input when omitted or '-'", isOptional: true, isVariadic: true },
};
export default completionSpec;
+31
View File
@@ -0,0 +1,31 @@
// dig spec — corrects two upstream problems: the NS shortcut is labelled as an
// MX query, and "TTL" is offered as a record type even though TTL is a field.
const completionSpec = {
name: "dig",
description: "DNS lookup utility (Domain Information Groper)",
subcommands: [
{ name: "A", description: "Query A records (IPv4 address)" },
{ name: "AAAA", description: "Query AAAA records (IPv6 address)" },
{ name: "MX", description: "Query MX records (mail exchangers)" },
{ name: "CNAME", description: "Query CNAME records (canonical name)" },
{ name: "TXT", description: "Query TXT records" },
{ name: "NS", description: "Query NS records (authoritative name servers)" },
{ name: "SOA", description: "Query the SOA record (start of authority)" },
{
name: "ANY",
description: "Send an ANY query; the response may be incomplete (RFC 8482)",
},
],
options: [
{ name: "+short", description: "Only print meaningful results" },
{ name: "+noall", description: "Hide all sections except the ones requested explicitly" },
{ name: "+answer", description: "Show the answer section" },
{ name: "+nocomments", description: "Hide the comment lines" },
{ name: "+noquestion", description: "Hide the question section" },
{ name: "+noauthority", description: "Hide the authority section" },
{ name: "+noadditional", description: "Hide the additional section" },
{ name: "+nostats", description: "Hide the statistics block" },
],
};
export default completionSpec;
+36
View File
@@ -0,0 +1,36 @@
// htop spec — the bundled Fig spec says the -H delay is in tenths of a second,
// but htop stores it in seconds (Settings.c clamps highlightDelaySecs and
// ProcessList.c compares 1000 * highlightDelaySecs). Only that wording differs.
const completionSpec = {
name: "htop",
description: "Improved top (interactive process viewer)",
options: [
{ name: ["--help", "-h"], description: "Show help for htop" },
{ name: ["--no-color", "-C"], description: "Use a monochrome color scheme" },
{
name: ["--delay", "-d"],
description: "Delay between updates, in tenths of sec",
args: { name: "delay", suggestions: ["10", "1", "60"] },
},
{ name: ["--filter", "-F"], description: "Filter commands", args: { name: "filter" } },
{
name: ["--highlight-changes", "-H"],
description: "Highlight new and old processes",
args: {
name: "delay",
description: "Highlight duration in seconds",
isOptional: true,
suggestions: ["1", "10", "60"],
},
},
{ name: ["--no-mouse", "-M"], description: "Disable the mouse" },
{ name: ["--pid", "-p"], description: "Show only the given PIDs", args: { name: "PID", isVariadic: true } },
{ name: ["--sort-key", "-s"], description: "Sort by the given column", args: { name: "column" } },
{ name: ["--tree", "-t"], description: "Show the tree view" },
{ name: ["--user", "-u"], description: "Show only processes of the given user", args: { name: "user", isOptional: true, suggestions: ["$USER"] } },
{ name: ["--no-unicode", "-U"], description: "Do not use unicode but plain ASCII" },
{ name: ["--version", "-V"], description: "Print version info" },
],
};
export default completionSpec;
+29
View File
@@ -0,0 +1,29 @@
// readlink spec — GNU coreutils. The bundled Fig spec reuses stat wording for
// the command root and -f, so this local spec describes the real GNU options.
const completionSpec = {
name: "readlink",
description: "Print resolved symbolic links or canonical file names",
options: [
{
name: ["-f", "--canonicalize"],
description: "Resolve every symbolic link in the given path and print the canonical path (all but the last component must exist)",
},
{
name: ["-e", "--canonicalize-existing"],
description: "Resolve symbolic links and print the canonical path only if all components exist",
},
{
name: ["-m", "--canonicalize-missing"],
description: "Resolve symbolic links and print the canonical path even if components are missing",
},
{ name: ["-n", "--no-newline"], description: "Do not print a trailing newline" },
{ name: ["-s", "--strip"], description: "Strip the last component from the path before resolving" },
{ name: ["-v", "--verbose"], description: "Report every resolved path on standard error" },
{ name: ["-z", "--zero"], description: "End each output path with NUL instead of a newline" },
{ name: "--help", description: "Display help text" },
{ name: "--version", description: "Display version information" },
],
args: { name: "file", description: "Symbolic link or path to resolve", isVariadic: true },
};
export default completionSpec;
@@ -39,6 +39,30 @@ function printfTokens(text) {
// Private-use mark so s2twp cannot rewrite 进程 before it becomes 行程.
const PROCESS_MARK = "\u{E000}";
// s2twp picks the wrong Taiwan term where the zh-CN phrase is ambiguous at a
// word boundary or where OpenCC only has a mainland form. Each entry is a
// literal post-conversion fix, applied after the 进程 placeholder is restored.
const TAIWAN_PHRASE_FIXES = [
["擴充套件正規表示式", "擴充正規表示式"],
["擴充套件 E3", "擴充 E3"],
["欄位連線", "欄位聯結"],
["二進位制資料", "二進位資料"],
["后綴", "字尾"],
["執行檔例項", "執行檔"],
["屏幕", "螢幕"],
["文本", "文字"],
// Number bases and generic “extended” wording; Taiwan drops 制 and 套件.
["進位制", "進位"],
["擴充套件", "擴充"],
// “instance” in the cloud-resource sense.
["例項", "執行個體"],
// Side effects of the generic 擴充套件→擴充 rule.
["擴充頭", "擴充標頭"],
["ALPN TLS 擴充", "ALPN TLS 擴充功能"],
["NPN TLS 擴充", "NPN TLS 擴充功能"],
["數據", "資料"],
];
function toTraditionalTaiwan(text, convert) {
if (text.includes(PROCESS_MARK)) {
throw new Error("description already contains the 进程 placeholder");
@@ -48,7 +72,11 @@ function toTraditionalTaiwan(text, convert) {
if (converted.includes("进程") || (marked.includes(PROCESS_MARK) && !converted.includes(PROCESS_MARK))) {
throw new Error("OpenCC dropped the 进程 placeholder");
}
return converted.replaceAll(PROCESS_MARK, "行程");
let traditional = converted.replaceAll(PROCESS_MARK, "行程");
for (const [from, to] of TAIWAN_PHRASE_FIXES) {
traditional = traditional.replaceAll(from, to);
}
return traditional;
}
const source = JSON.parse(fs.readFileSync(sourcePath, "utf8"));