code: def check_shell_redirection(cmd):
      
      curly_brackets = True
      while curly_brackets:
          SRE_match_obj = re.search(r'\{(.*?)}',cmd)
          if SRE_match_obj is not None:
              cmd = cmd[:SRE_match_obj.start()] + cmd[(SRE_match_obj.end()+1):]
              if re.search(r'\{(.*?)}',cmd) is None:
                  curly_brackets = False
          else:
              curly_brackets = False
      return ">" in cmd
docs: Determine whether a command appears to contain shell redirection symbol outside of curly brackets
  
      :param str cmd: Command to investigate.
      :return bool: Whether the command appears to contain shell redirection.