From 40955d74b599c076aab2b6c3aafdf8ab14d06db9 Mon Sep 17 00:00:00 2001 From: koalaman Date: Sat, 16 Aug 2014 10:52:06 -0700 Subject: [PATCH] Updated SC2033 (markdown) --- SC2033.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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