package se.vidstige.jadb.managers;

public class Bash {
    public static String quote(String s) {
        // TODO: Should also check other whitespace
        if (!s.contains(" ")) {
            return s;
        }
        return "'" + s.replace("'", "'\\''") + "'";
    }
}

@@ -107,37 +107,32 @@
  // 
-TODO: Should also check other
+Check that s contains no
  whi
@@ -155,22 +155,23 @@
 if (
-!
 s.
-contains(%22 
+matches(%22%5C%5CS+
 %22)) 

Check other whitespace characters, e.g. tabs