diff --git a/lib/modules/Process.pmod b/lib/modules/Process.pmod
index 1cf7c5e34cc622aa64f5fe08d1784b26fe0c8465..d66d2a1d844bd957eb0e2ce31190a16a286a5975 100644
--- a/lib/modules/Process.pmod
+++ b/lib/modules/Process.pmod
@@ -25,6 +25,13 @@ int exec(string file,string ... foo)
   return 69;
 }
 
+string sh_quote(string s)
+{
+  return replace(s,
+	({"\\", "'", "\"", " "}),
+	({"\\\\", "\\'", "\\\"","\\ "}));
+}
+
 string *split_quoted_string(string s)
 {
   s=replace(s, ({"\"","'","\\"," "}), ({"\0\"","\0'","\0\\","\0 "}));