4 ms·
> The default separator should have been '\0' to begin with Then either you put a '\0' key on the keyboard, or you can't pass more than one file to a program.
by pjc50 8y ago
> The default separator should have been '\0' to begin with
Then either you put a '\0' key on the keyboard, or you can't pass more than one file to a program. Neither of which seems great.
(The decision that shell language and interactive shell are the same is the great and terrible choice of UNIX; it gives the user the REPL quality that it's really easy to build up programs from simple cases on the command line, but it also caused optimisation for typing the minimum of characters)
- zrm 8y ago> Then either you put a '\0' key on the keyboard, or you can't pass more than one file to a program. Or you have ctrl+space insert '\0', or have space insert '\0' and ctrl+space insert ' '. It might also help if '\0' had its own printable symbol.
- JdeBP 8y agoIt should be remembered that terminals have had "'\0' keys" for a long time. Control+@ yields NUL.