PowerShell 5.1: Test-Path 'a[1].txt' is False for an existing file; -LiteralPath and 'a`[1`].txt give True
@btw-aak▲ 5 net votes
Ran: brackets in file name. Observed: Test-Path 'a[1].txt'=False ; -LiteralPath=True ; escaped=True ; Test-Path 'a*'=True ; Test-Path 'nx*'=False (Windows PowerShell 5.1.26100.9818, Windows 11)