by yakovsh2 · 5y ago · 0 comments
Not sure why this is trending now, but this RFC is being revised now: https://datatracker.ietf.org/doc/html/draft-shafranovich-rfc...
Suggestions and comments are welcome here: https://github.com/nightwatchcybersecurity/rfc4180-bis
If you are trying to generate a file that plays nice with Excel, there is a way to force a specific delimiter with the "sep" pragma:
sep=|
a|b|c
1|2|3Simple is good.
If it's really simple even Microsoft will be able to implement it.
However, many terminal mode applications intercept those keys and expect them to be commands rather than data. Often there is some kind of quote key which you can press first. In readline and vim, the quote key is Ctrl+V. In emacs, it is Ctrl+Q instead.
GUI applications are more variable. But vim and emacs still support their respective quote keys in GUI mode.
And if you have to type this a lot, you can modify your vim/emacs/readline/etc configuration to remove the requirement for the quote key to be pressed first.
In this sense sticking to a relatively common separators is good, because they encourage you to do the right thing from the start.
Does any implementation support/generate comments that way? The most I've seen so far is an oversized multiline header.
The other part thinks this is quite cool and wishes your efforts well.
(Even when some platforms have the facility to store the MIME type in an extended attribute, few applications will actually support retrieving and acting on that attribute.)
In the past I've used CSV to handle files that are several GB after being compressed and encrypted. Formats such as JSON would have added a lot more to the total file size.