Skip to content
  • illiliti's avatar
    copy-builtin: posix conformance · 36e8abee
    illiliti authored
    
    
    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: default avatarBrian Behlendorf <behlendorf1@llnl.gov>
    Signed-off-by: default avatarilliliti <illiliti@protonmail.com>
    Closes #12004
    36e8abee