feat: add unix functions to coreutils

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
2026-06-25 05:57:11 +08:00
parent a3dbac2b67
commit f7242af3a9
+29 -1
View File
@@ -7,19 +7,24 @@ block_hook("autolink")
def build(): def build():
rust.build() rust.build(["--features", "unix"])
on_build(build) on_build(build)
functions = [ functions = [
"[", "[",
"arch",
"b2sum", "b2sum",
"base32", "base32",
"base64", "base64",
"basename", "basename",
"basenc", "basenc",
"cat", "cat",
"chgrp",
"chmod",
"chown",
"chroot",
"cksum", "cksum",
"comm", "comm",
"cp", "cp",
@@ -40,21 +45,34 @@ functions = [
"false", "false",
"fmt", "fmt",
"fold", "fold",
"groups",
"head", "head",
"hostid",
"hostname",
"id",
"install",
"join", "join",
"kill",
"link", "link",
"ln", "ln",
"logname",
"ls", "ls",
"md5sum", "md5sum",
"mkdir", "mkdir",
"mkfifo",
"mknod",
"mktemp", "mktemp",
"more", "more",
"mv", "mv",
"nice",
"nl", "nl",
"nohup",
"nproc",
"numfmt", "numfmt",
"od", "od",
"paste", "paste",
"pathchk", "pathchk",
"pinky",
"pr", "pr",
"printenv", "printenv",
"printf", "printf",
@@ -75,22 +93,32 @@ functions = [
"sleep", "sleep",
"sort", "sort",
"split", "split",
"stat",
"stdbuf",
"stty",
"sum", "sum",
"sync",
"tac", "tac",
"tail", "tail",
"tee", "tee",
"test", "test",
"timeout",
"touch", "touch",
"tr", "tr",
"true", "true",
"truncate", "truncate",
"tsort", "tsort",
"tty", "tty",
"uname",
"unexpand", "unexpand",
"uniq", "uniq",
"unlink", "unlink",
"uptime",
"users",
"vdir", "vdir",
"wc", "wc",
"who",
"whoami",
"yes", "yes",
] ]