Status: Done (2026-02-20)
Priority: Low
Component: tools/pslib/wsl/wsl-manager.docker.Integration.Tests.ps1
Description:
The "Script Execution" integration tests wrote temporary bash scripts using [System.Text.Encoding]::UTF8, which in .NET includes a BOM (EF BB BF). Bash cannot parse a BOM before the shebang, producing: /mnt/c/.../script.sh: line 1: #!/bin/bash: No such file or directory. Tests still passed because bash continued past the failed shebang, but the error message was misleading.
Fix: Replaced with New-Object System.Text.UTF8Encoding($false) (BOM-less UTF-8) in both test script writers.