2 ms·
The primary purpose of command line program output is to convey information to a human, not to other programs. Command line scripting is supposed to be adhoc a
by nly 2y ago
The primary purpose of command line program output is to convey information to a human, not to other programs.
Command line scripting is supposed to be adhoc and hack.
- mdavid626 2y agoI disagree that it supposed to be adhoc and hack. Look at PowerShell.
- anthk 2y agoThat under limited OSes such as DOS. Under Unix, piping has been the philosophy.
- consteval 2y agoThere are exchange formats that are well-defined enough to be useful to many computers while also being readable enough to be traversed by human eyes. There's no reason to everything ad-hoc, you don't get much by that. You also control the shell itself - there's no reason you can't display object representations in a pretty way.