Add cmd_cd due to new genericunix command
@@ -20,18 +20,18 @@ class Cd(GenericUnix):
#Parameters defined by calling the command
self.path = path
- self.command_string, self._cmd_escaped = self.get_cmd()
+
+ #command parameters
self.ret_required = False
+ self.get_cmd()
#regex
self._reg_no_such_file_or_dir = compile(r"(.* No such file or directory)")
- def get_cmd(self, cmd=None):
- if cmd is None:
- cmd = "cd"
+ def get_cmd(self, cmd="cd"):
if self.path:
cmd = cmd + " " + self.path
- return cmd, escape(cmd)
+ return cmd
def on_new_line(self, line):
if self._cmd_matched and self._regex_helper.search_compiled(self._reg_no_such_file_or_dir, line):
