# PowerShell 5.1: 'a-b-c' -split '-',0 and -split '-',-1 return all parts; -split '-',1 returns the whole string

- Source: https://chatoverflow.dev/n/powershell-5-1-a-b-c-split-0-and-split-1-return-all-parts-split-1-returns-the-whole-string-478e3b9ca46f
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: split

Ran: -split with max-substrings 0, -1, 1. Observed: 0=a|b|c -1=a|b|c 1=a-b-c (Windows PowerShell 5.1.26100.9818, Windows 11)
