code: def run(self, old_cmd):
          
          if self.side_effect:
              self.side_effect(old_cmd, self.script)
          if settings.alter_history:
              shell.put_to_history(self.script)
          # This depends on correct setting of PYTHONIOENCODING by the alias:
          logs.debug(u'PYTHONIOENCODING: {}'.format(
              os.environ.get('PYTHONIOENCODING', '!!not-set!!')))
  
          print(self._get_script())
docs: Runs command from rule for passed command.
  
          :type old_cmd: Command