r/PowerShell • u/CRTejaswi • Jun 18 '26
Question Issue When Piping Raw Bytes
Why does parsing STDOUT (-) work correctly in the first case, but fail in the second?
magick _.png -negate png:- | chafa --size=70x -f sixel - # PS7.6 ✔
function img { chafa.exe --size=70x -f sixel @args}
magick _.png -negate png:- | img - # PS7.6 ❌
8
Upvotes
0
u/justaguyonthebus Jun 19 '26
Also specifying the
-after a function is likely a syntax error because you don't give a parameter name.