<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/102380>102380</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[llvm-lit] lit internal shell failing to parse and execute for-loop syntax
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
connieyzhu
</td>
</tr>
</table>
<pre>
lit’s internal shell cannot recognize and execute for loop syntax, which is used in tests across compiler-rt.
Example error message:
```
FAIL: libFuzzer-i386-libcxx-Linux :: features_dir.test (14 of 9570)
******************** TEST 'libFuzzer-i386-libcxx-Linux :: features_dir.test' FAILED ********************
Exit Code: 127
Command Output (stdout):
# RUN: at line 7
for c in /usr/local/google/home/harinidonthula/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/fuzzer/I386LibcxxLinuxConfig/Output/features_dir.test.tmp-C/*; do f=/usr/local/google/home/harinidonthula/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/fuzzer/I386LibcxxLinuxConfig/Output/features_dir.test.tmp-F/$(basename $c); echo looking for $f; [ -a $f ]; done
# executed command: for c in '/usr/local/google/home/harinidonthula/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/fuzzer/I386LibcxxLinuxConfig/Output/features_dir.test.tmp-C/*'
# .---command stderr------------
# | 'for': command not found
# `-----------------------------
# error: command failed with exit status: 127
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUlU1v4zYTxz8NdRnIkIeyJR10cOwIWCB4HqDdngtKGklsKdLgy8bJpy_IOI2aBXrYnlYgbBMcj2Z-_xmOcE7Omqhlhwd2uGQi-MXYdjBaS3p5XULWm_GlVdKzR2R1wZrGgdSerBYK3EJKwSC0Nh4sDWbW8pVA6BHoRkPwBJOxoIy5gnvRXtwYnuF5kcMC0kFwNILU4Ml5B2KwxjkYzHqVimxu_Y4VF1ac3j4fb2K9KgKy1lhYyTkxE-OnrQ07FveVtt3pyxPjJ1Cy78LrK9lc8vqYK9kPt1v-JHW4QfTATzCR8MGS-32UdhfjAYb1vgQzQXOoCobN_Q344wu-Pv76FRhWPxIPwwpiPo8X-C8xvLOUHs5mjPxgj9WW4dmsaxTw_8FfQ8Lg_GiCjwg-0UYOv_z2v-hDeFBSE9w9RdGHqCzDLjjLsFNmEIphNxszK2LYLWZNX8JKLUej_RKUiIbq25pfrfmDBs-w64NUI8POBu3lSm7zM--ljvtNwTDs3lh1U-LLsPvC6-NTApz4no2e5Mywe0svWn4mvfPrNT8z7CIu_gCjgYnxy0-bSpdSKRnWvXCkxUrAsBySng9Aw2Jig_4p9ZyalWE5xQN2eIBcpC2ww-WNhKYP6e8dPsaOjRWTyvZD-OqnBfau_d99gRx2eZ7f8wTnR7I23zwfdqw6x9wnY-Pf-ekdDsQbcjJBjxvbY5H_27NBHe-8rbdJSEUjPEu_AMVmdl744P7Zzu-XYTa2fGx4IzJq9xXy4ljxqsyWdl9XdXM8lD2fqChF0TcDYr-nat_3kxjHTLZYYFnURYX7suHlruRDOfG-P1RYEh8mVha0Cql2UbqdsXMmnQvU7gvkdZEp0ZNyabYganqGdMoQ46ixbdK7D7NjZaGk8-7DjZdepaGUbOL4OVxASf959kQQsXK9gauw7rvZk29mTxasahfvr5FT0ribpV9CvxvMei-_76swhRxr7Z7Ttxb_CgAA__-xLzyB">