Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 798 Bytes

File metadata and controls

14 lines (9 loc) · 798 Bytes

← Back to Backlog

[BUG-003] ✅ DONE - UTF-8 BOM in integration test bash scripts causes shebang error

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.

← Back to Backlog