diff --git a/SC2033.md b/SC2033.md index 8b2a70c..9c81f89 100644 --- a/SC2033.md +++ b/SC2033.md @@ -19,6 +19,7 @@ Instead, the function contents can be executed in a shell, either through `sh -c If you're intentionally passing a word that happens to have the same name as a declared function, you can quote it to make shellcheck ignore it, e.g. - apt-get() { - sudo "apt-get" "$@" - } \ No newline at end of file + nobody() { + sudo -u "nobody" "$@" + } + \ No newline at end of file