3 ms·
Null-terminated mode: turns out tons of tools have these: https://github.com/fish-shell/fish-shell/issues/3164#issuecomment-354600352 https://github.com/fish-sh
by cben 7y ago
Null-terminated mode: turns out tons of tools have these:
https://github.com/fish-shell/fish-shell/issues/3164#issuecomment-354600352 https://github.com/fish-shell/fish-shell/issues/3164#issueco...
But yeah, 2nd "standard" hurts compositionality.
Default posix/bash splitting of output by spaces is very big-prone and having to type "$array[@]" all over the place is annoying.
But splitting by lines is much saner.
Now newlines in file names, that's just evil and should be outlawed at OS level. I think OSX did this (?)
In bash life can be easier by setting IFS (Google "bash strict mode" though I have reservations about the IFS part).
But really, its easy to fix in a non-posix shell. Fish splits by lines and interpolates variables as arrays by default.