SIGN IN SIGN UP
github / spec-kit UNCLAIMED

💫 Toolkit to help you get started with Spec-Driven Development

0 0 0 Python

fix(ps1): replace null-conditional operator for PowerShell 5.1 compatibility (#1975)

The `?.` (null-conditional member access) operator requires PowerShell 7.1+,
but Windows ships with PowerShell 5.1 by default. When AI agents invoke .ps1
scripts on Windows, they typically use the system-associated handler (5.1),
causing a ParseException: Unexpected token '?.Path'.

Replace the single `?.` usage with a 5.1-compatible two-step pattern that
preserves the same null-safety behavior.

Fixes #1972
M
Manfred Riem committed
2c2fea8783f33085652b8c87e839bae84a6eb78d
Parent: 4b4bd73
Committed by GitHub <[email protected]> on 3/25/2026, 5:54:49 PM