4 ms·
> because the `.Name` is a single string object File path names are bytestrings on most OSes, so you have undefined behaviour if your pipeline can't handle tha
by ElectricalUnion 3y ago
> because the `.Name` is a single string object
File path names are bytestrings on most OSes, so you have undefined behaviour if your pipeline can't handle that.
- Arnavion 3y agoThat's irrelevant to the overall point regarding word-splitting. dotnet represents filenames as String, so there can be nothing in the pipeline that couldn't handle them. Files whose names can't be represented in String are a dotnet problem, not a PS problem.
- ElectricalUnion 3y agoI am pretty sure that if something can't be handled by a program because it's underlying language can't handle it still counts as "program can't handle the problem". "just don't mangle my filenames" is a pretty basic requirement for a universal use shell.