<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">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 class=""><br class=""></div><div class="">- Matthias</div><br class=""><div><blockquote type="cite" class=""><div class="">On Aug 2, 2017, at 4:22 PM, don hinton via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Btw, this works on *nix type systems, but I'm not sure about Windows.<div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Aug 2, 2017 at 4:06 PM, don hinton <span dir="ltr" class=""><<a href="mailto:hintonda@gmail.com" target="_blank" class="">hintonda@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Is there a way to do this with llvm-lit, i.e., use the equivalent of backticks?<div class=""><br class=""></div><div class="">foo takes a single argument, but doesn't read from stdin.</div><div class=""><br class=""></div><div class="">// RUN foo some_arg > %t; FileCheck %s < %t</div><div class="">// RUN foo `cat %t` | FileCheck --check-prefix=INVERSE</div><div class=""><br class=""></div><div class="">// CHECK: {{^[0-9]+$}}</div><div class="">// INVERSE: some_arg </div><div class=""><br class=""></div><div class="">thanks...</div><span class="HOEnZb"><font color="#888888" class=""><div class="">don</div></font></span></div>
</blockquote></div><br class=""></div>
_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></body></html>