From: Chris Koeritz Date: Wed, 30 Oct 2013 14:38:38 +0000 (-0400) Subject: attempting to get parms with spaces to still pass on through as single parameters... X-Git-Tag: 2.140.90~894 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=5bb11c517dd3803cdd9182683d13f5b7b05204d2;p=feisty_meow.git attempting to get parms with spaces to still pass on through as single parameters rather than being broken up. this has been afflicting sudo calls to add-apt-repository where the parameter is one string with spaces in it. --- diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index f6a9beb3..bf92636c 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -230,7 +230,7 @@ if [ -z "$skip_all" ]; then # label if they're doing an su with the sudo. function sudo() { local first_command="$1" - /usr/bin/sudo $* + /usr/bin/sudo "$@" if [ "$first_command" == "su" ]; then # yep, they were doing an su, but they're back now. bash $FEISTY_MEOW_SCRIPTS/tty/label_terminal_with_infos.sh