set-option

privileged mode

Suppresses selected inherited startup inputs. Not a sandbox or privilege escalation mechanism. This test uses same-UID child behavior.

Formal Syntax & Structure

bash syntaxbash
bash -p

Return Value

exit status

Suppresses selected inherited startup inputs. Not a sandbox or privilege escalation mechanism. This test uses same-UID child behavior.

Working Example

Example Snippetbash
printf '%s\n' 'printf "startup\n"' > initBASH_ENV="$PWD/init" /bin/bash -p -c 'printf "body\n"'
Bash Reference