<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/106601>106601</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[llvm-lit] Environment variable not found in clang subproject with lit internal shell
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Harini0924
</td>
</tr>
</table>
<pre>
Currently, there are multiple environment variables are not recognized within the clang subproject, resulting in test failures when using the lit internal shell.
**Example of error message**
```
RUN: DEFAULT_TRIPLE=`%t/clang --version | grep "Target:" | cut -d ' ' -f2`
```
This error indicates that the internal shell is misinterpreting environment variable assignments as commands, leading to these failures.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskt-LnDAQx_-a-DLsolFXffBhe7vSwlHKsfdcoo46JSZLJu71-teX5JYrPQ4iksw38-Obj2Km2SC2ovwiylOiNr9Y135VjgyljSyS3o6v7cPmHBqvX4V8AL-gQ1AOYd20p6tGQHMjZ82KxsNNOVK9Ro4SYz04HOxs6A-O8EJ-IRNSwKCVmYG3_ursLxx8SO2QQ0ozQxAhe5gU6c0hw8uCBjYOsXBbkwcyHp1RGnhBrfciPYn0KGRY599qDY3ZCdA562BFZjXjW_SuPKT3FbdPz99FfoTTuTs-P15-Xp6-_Xg8i_wUBLL0QnZvHe92N3RM1oCoHmB2eAUh5UW5Gb3Ij0LKGBg2D7sRhKzit5vke6UPhS8L8b1LMiMNyiODX5SPg_4_JBDDShwPrw6jVZ-ZD28PG84YFMNg11WZkYPJGtUYbbShAOO7x_tkbPOxyRuVYJtVsmjKMq3qZGnHUjVVNlRTobK-HnGq83IomrLIM4V92STUylQWaS2brM6yrNrLAzZFP2Z1VWM95bkoUlwV6b3Wt3Vv3ZwQ84Ztlh4OaZZo1aPmSKGU0WchZQDSteHCrt9mFkWqiT3_S-HJ64hu1GjyojzB-TM7AoaT3cwYwPpIXqTyE6KSzel28f7K8V07IbuZ_LL1-8GuQnah6v23e4e4i3OxkN19tFsr_wYAAP__CVAdmw">