4 ms·
What if unix style pipes included a MIME type. Thus you might have some type safety, or ability to understand multiple types of input. Example: if one tool ou
by DannyB2 6y ago
What if unix style pipes included a MIME type. Thus you might have some type safety, or ability to understand multiple types of input.
Example: if one tool outputs JSON, another tool, like grep, would recognize that is a subtype TEXT, and be able to process it.
Example: a more sophisticated hypothetical grep tool, would recognize that it might grep JSON differently than it greps TEXT.
Example: Tool 1 exporting JPEG might be incompatible with Tool 2 that only accepts JSON. A nice shell error message could result.
- franga2000 6y ago[Nushell](https://www.nushell.sh/ https://www.nushell.sh/) is doing something along those lines. They have plenty of work to go before it's perfect, but it's already surprisingly good.