]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
copy-builtin: posix conformance
authorilliliti <illiliti@protonmail.com>
Sat, 8 May 2021 15:58:26 +0000 (15:58 +0000)
committerGitHub <noreply@github.com>
Sat, 8 May 2021 15:58:26 +0000 (08:58 -0700)
commit36e8abee95576de588802afadd2c44c674e00acb
tree2212380e07434d4f9d147b0b1aa1214c54d8a5ce
parent93c8e91fe7f5c55612131db64297106d7e5d1cdd
copy-builtin: posix conformance

This commits contains changes to allow running `copy-builtin` without
bash + some minor improvements.

changed shebang to /bin/sh
added -f option to `set` to globally disable unneeded globbing
replaced all `echo` commands within add_after() with `printf`
alternative to avoid possible issues with options (-neE)
dropped non-portable superfluous `readlink` command
replaced superfluous `true` command with `:` builtin alternative
replaced non-portable `--recursive` option of `cp` command with `-R`
alternative
dropped non-portable `local` keyword

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: illiliti <illiliti@protonmail.com>
Closes #12004
copy-builtin