<div dir="ltr">Thanks. I grep'd all the tests and found a few cases using xargs, i.e., "cat %t | xargs". They don't set windows as unsupported, so I'm going to try that.<div><br></div><div>thanks again...</div><div>don</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 2, 2017 at 4:28 PM, Matthias Braun <span dir="ltr"><<a href="mailto:mbraun@apple.com" target="_blank">mbraun@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>lit run lines are written in posix shell. However as you suspect the situation on windows is special, lit comes with its own shell parser/interpreter which doesn't support the full range of posix shell features. Glancing at the code in llvm/utils/lit/lit/ShUtils.sh I don't see anything supporting command substitution.</div><div><br></div><div>- Matthias</div><br><div><blockquote type="cite"><div><div class="h5"><div>On Aug 2, 2017, at 4:22 PM, don hinton via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="m_-7207878130871366057Apple-interchange-newline"></div></div><div><div><div class="h5"><div dir="ltr">Btw, this works on *nix type systems, but I'm not sure about Windows.<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 2, 2017 at 4:06 PM, don hinton <span dir="ltr"><<a href="mailto:hintonda@gmail.com" target="_blank">hintonda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Is there a way to do this with llvm-lit, i.e., use the equivalent of backticks?<div><br></div><div>foo takes a single argument, but doesn't read from stdin.</div><div><br></div><div>// RUN foo some_arg > %t; FileCheck %s < %t</div><div>// RUN foo `cat %t` | FileCheck --check-prefix=INVERSE</div><div><br></div><div>// CHECK: {{^[0-9]+$}}</div><div>// INVERSE: some_arg </div><div><br></div><div>thanks...</div><span class="m_-7207878130871366057HOEnZb"><font color="#888888"><div>don</div></font></span></div>
</blockquote></div><br></div></div></div>
______________________________<wbr>_________________<br>LLVM Developers mailing list<br><a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br></div></blockquote></div><br></div></blockquote></div><br></div>