Windows Powershell CWD detection problem
T: Bug
<!--
# READ CAREFULLY:
* **ENGLISH ONLY** - this issue tracker is English-only. Please respect the people who take time to help you with your problems.
* Search existing issues first: https://github.com/Eugeny/tabby/issues
* Test with the latest Tabby version: https://github.com/Eugeny/tabby/releases
* Disable third-party plugins.
-->
**Describe the problem**:
When retrieving the CWD in PowerShell, the result can be affected by the content of the previously executed command.
As a result, the working directory in a new tab may unexpectedly be set to a different location.
**To Reproduce**:
1. As an example, run the following dir command.
```
PS C:\Users\Default> dir C:\Users\Default\AppData\
ディレクトリ: C:\Users\Default\AppData
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 2025/06/10 14:52 Local
d----- 2025/06/10 14:49 LocalLow
d----- 2025/06/10 14:47 Roaming
```
2. Open a new PowerShell tab using Duplicate or New Terminal.
3. The current directory is affected by the previous command.
```
PS C:\Users\Default\AppData>
```
1 条评论