<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Spaces in paths from llvm-config should be quoted"
   href="https://llvm.org/bugs/show_bug.cgi?id=27743">27743</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Spaces in paths from llvm-config should be quoted
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>llvm-config
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>taricorp@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When LLVM is installed in a path containing spaces, paths output from
llvm-config have no way to indicate breaks between parameters and spaces within
paths. For example, --cflags on Windows for MSVC might include "-IC:\Program
Files\LLVM\include" which parses as "-IC:\Program" "Files\LLVM\include".

This could be fixed with escaping or quoting by llvm-config, perhaps as simple
as quoting each individual element it emits. I believe quoting paths is
portable to all major shells, though this would involve trading one error case
(space in path) for another (quote in path) unless shell escaping logic were
added.

Adding quotes to the output might break some existing tools, but given the
usual use case is feeding the output to a shell it may not be worth worrying
about.

Source issue:
<a href="https://bitbucket.org/tari/llvm-sys.rs/issues/9/include-path-for-llvm-headers-on-windows">https://bitbucket.org/tari/llvm-sys.rs/issues/9/include-path-for-llvm-headers-on-windows</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>