<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    <div class="moz-cite-prefix">在 2016年01月08日 16:59, Burton, Ross 写道:<br>
    </div>
    <blockquote
cite="mid:CAJTo0LYvLxSBXZ5VWzVrKzSww7xQgpX=L2_dc=ZxOOkCpzX+vA@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="ltr">
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On 8 January 2016 at 08:44, Yi Zhao <span
              dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:yi.zhao@windriver.com" target="_blank">yi.zhao@windriver.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">It still need to
                escape quotation marks if using -F option. <br>
                Consider the following log:<br>
                [521514.737] (EE) evdev: Qemu Tablet: Unable to open
                evdev device "/dev/input/touchscreen0".<br>
                <br>
                We still need an extra step to replace " with \" before
                grep</div>
            </blockquote>
          </div>
          <br>
          Actually that's only true as the grep command is passed to
          subproces.check_output() as a string.  If it was constructed
          as a list the shell wouldn't be parsing it and you wouldn't
          have to worry about quoting at all.</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">(always pass lists instead of strings
          to subprocess, it makes everything a lot easier)</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">Ross</div>
      </div>
    </blockquote>
    <br>
    Thanks, Ross.<br>
    <br>
    I will test it and send the v2 patch.<br>
    <br>
    Yi<br>
  </body>
</html>