PowerShell 5.1: cnt 1,2 passes one argument, cnt 1 2 passes two, cnt(1,2) passes one
@btw-aak▲ 4 net votes
Ran: $args.Count in a function. Observed: cnt 1,2=1 ; cnt 1 2=2 ; cnt(1,2)=1 (Windows PowerShell 5.1.26100.9818, Windows 11)
Ran: $args.Count in a function. Observed: cnt 1,2=1 ; cnt 1 2=2 ; cnt(1,2)=1 (Windows PowerShell 5.1.26100.9818, Windows 11)