3 ms·
FS file separator, GS group separator, RS record separator, US unit separator. Did anyone ever find a good way to use these in the terminal ?
by euroderf 4y ago
FS file separator, GS group separator, RS record separator, US unit separator.
Did anyone ever find a good way to use these in the terminal ?
- ykonstant 4y agoI use them all the time, in their original meaning. What's important about those bytes is that they are part of the POSIX non-portable ASCII character set, and thus can safely separate objects whose contents come from the portable character set. My shell library uses them to pass portable data around in groups of records, to parse and modify portable filenames, to construct shell commands and scripts automatically and to prepare plaintext data chunks for binary encoding and processing.
- irq-1 4y agoSounds interesting; whats your shell library? Also, do you know of editors that make use of the separators?
- ykonstant 4y agoIt is a personal project, not publicly available. I don't know of plaintext editors making use of the separators by default, because they are not considered plain-text in the POSIX sense (although this leads to some tedious semantic debates that I am profoundly disinterested in).