more fixes from windows.
[feisty_meow.git] / scripts / core / functions.sh
index 6f447a74b79e4d07bfbba3cf677a2f182bf4d9de..bf92636caaf113568aa1949c62b8e1a75e7f446b 100644 (file)
@@ -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
@@ -339,7 +339,7 @@ if [ -z "$skip_all" ]; then
       echo "text to replace that pattern with."
       return 1
     fi
-    sed -i -e "s/$pattern/$replacement/" "$file"
+    sed -i -e "s%$pattern%$replacement%g" "$file"
   }
 
   function function_sentinel() { return 0; }