<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/102377>102377</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[llvm-lit] lit internal shell does not support -e option for cat commands
</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 currently does not support the `-e` option for `cat`, which gives an error when running the lldb test referenced below.
Error message:
```
FAIL: lldb-shell :: Driver/TestUseColor.test (1 of 2512)
******************** TEST 'lldb-shell :: Driver/TestUseColor.test' FAILED ********************
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 4
cat -e /usr/local/google/home/harinidonthula/llvm-project/build/tools/lldb/test/Shell/Driver/Output/TestUseColor.test.tmp | /usr/local/google/home/harinidonthula/llvm-project/build/bin/FileCheck /usr/local/google/home/harinidonthula/llvm-project/lldb/test/Shell/Driver/TestUseColor.test --check-prefix COLOR
# executed command: cat -e /usr/local/google/home/harinidonthula/llvm-project/build/tools/lldb/test/Shell/Driver/Output/TestUseColor.test.tmp
# .---command stderr------------
# | Unsupported: 'cat': option -e not recognized
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /usr/local/google/home/harinidonthula/llvm-project/build/bin/FileCheck /usr/local/google/home/harinidonthula/llvm-project/lldb/test/Shell/Driver/TestUseColor.test --check-prefix COLOR
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /usr/local/google/home/harinidonthula/llvm-project/build/bin/FileCheck /usr/local/google/home/harinidonthula/llvm-project/lldb/test/Shell/Driver/TestUseColor.test --check-prefix COLOR
# `-----------------------------
# error: command failed with exit status: 2
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzklt2O27YSx5-GvhnIkEeWtb7QxR7bAg4QdIFk9wEocWSxpUmBHK138_QFaW1sZNsUaVqgQATBBsXRfPz-9HhkCPpoiWpR_k-U-4WceHC-7py1ml4_D9Oideq1NprFAcVdLrbbANoyeSsNhIGMgW7yniybV1COAljHEKZxdJ6BBwKxyTMSmxzcyNpZ6J2PzzrJYpML3MF50N0AR_1MAaQF8t55OA9kwU_WantMboxRLTAFBk89ebIdKWjJuPNS5HuR318-D-ntE4UgjySK-WmMdLnTsrn__wdR3Cef2aWIaFrcw97rZ_ICm0cK_BRo54zzyxRW4N0KXA9YrlDgdnaMf_-Gx8OnRxBYfU8aAiuI6R_28COxZ1gvmmHnVAQFeItx504naRU8TDxOqfbAyk0cC3-DmmVvDAr4-PRL9CEZjLYE68tOJxkyAoHNFGI1xnXSCGyOzh0NCWwGd0pf0murlbM8TEZGQ_N8ykbvfqWOBTbtpI0S2LBzJqRt1cZl4tF8iuQENl-gXZL-I3pLPo0gqt0_l1KrrcCm0YZ2A3W__bjjv6jt_bnMsi5GzkZPvX6B3cOHh49XYeiFuolJQXdRNKr0n5TlmvIyy7I5WwisyPvs5rraRR2f7NxqKFUmsIp9Bau4eGs4GaWe5KlzR6s_k7pxscmzb103HGNfSfDmzHqpDSk4ax6A4u8osOQpRJPVt_H_NGfve4S8VvGFdJJxF1hpK4pDbHw6AJ1Gfl3-2btv0WITSkfgp2H975xk_Orvc6HqQm2LrVxQvaqwyDcVlsViqIt-W3a47mlNUubdplr12Oflplxt5Lrs7xa6xhzX-V1e4WpdFcVSYVlu1aYgiVK1ZSvWOZ2kNsvIaen8caFDmKhe5VhU1cLIlkxIYwqipTOkXYEYpxZfJ7jtdAxinRsdOFzdsGaT5ptkEyeZcg9G89djzLvhJaPbkSU2zZlYWEze1APzGCEJbKL8moepXXbuNEv9XvGUceyTc0nPNf4eAAD__2Gu9Yw">