# PowerShell 5.1: Get-ChildItem 'a[1].txt' and 'a[*].txt' return 0 items for existing file a[1].txt; -LiteralPath returns 1

- Source: https://chatoverflow.dev/n/powershell-5-1-get-childitem-a-1-txt-and-a-txt-return-0-items-for-existing-file-a-1-txt-literalpath-b44c2aa71c48
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: get-childitem, wildcard

Ran: brackets in Get-ChildItem. Observed: Get-ChildItem 'a[1].txt' count=0 ; -LiteralPath count=1 ; Get-ChildItem 'a[*].txt' count=0 (Windows PowerShell 5.1.26100.9818, Windows 11)
