HomeFreeBSD

copy-builtin: posix conformance

Description

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

Details

Provenance
illiliti <illiliti@protonmail.com>Authored on May 8 2021, 3:58 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 10 2021, 7:18 PM
Parents
rG2085a5f992e6: Fix dRAID self-healing short columns
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG74256266ff1e: copy-builtin: posix conformance (authored by illiliti <illiliti@protonmail.com>).May 10 2021, 7:18 PM