Closed ninmonkey closed 3 years ago
In some cases a lint, like a trailing space seemed to prevent splatting. This still gives the error Exception calling "ProcessRecord" with "1" argument(s): "An item with the same key has already been added. Key: Join-String"
0..2 | Join-String -sep "
n" -prop { $_::maxvalue }`
(has a trailing space)
0..2 | Join-String -sep "
n" -prop { $_::maxvalue } `
Join-String -OutputPrefix '-'
Description
Some calls to
Join-String
throws a key error. Sometimes the exact same command that works, then breaks, relative the comment names on the line before.Script to reproduce
Previous errors.log
Logs
$error[0]
$error[0].InnerException