4 ms·
> So to debug I'll have to pass the flag to each tool to get it to print all the json to stdout I'm not sure how that's a particular burden. If you have `a | b
by mistercow 3y ago
> So to debug I'll have to pass the flag to each tool to get it to print all the json to stdout
I'm not sure how that's a particular burden. If you have `a | b | c` and you want to debug the output of b, you already have to pull that out and debug it or `tee` it, because its stdout is being piped otherwise. This would be the same, except that you'd pipe (or tee) "machine out" to stdout.
Or, since we're making wild backwards incompatible changes anyway, add a directive to the shell that makes it dump all "machine out" to stdout, a la "set +x". Now you don't even have to change your code. Just wrap the line in `set -o dump-machine-out` and `set +o dump-machine-out`