Unix was a mistake
Unix was a mistake
Posted May 17, 2016 6:00 UTC (Tue) by felix.s (guest, #104710)In reply to: Safename: restricting "dangerous" file names by farnz
Parent article: Safename: restricting "dangerous" file names
If I were to design an operating system, I'd have the shell interpret command line arguments and pass them to programs as flags, abstract objects representing file paths (something like O_PATH file descriptors) and opened files (ordinary file descriptors). Pipelines would be based around passing abstract objects, not meaningless blocks of bytes. Incidentally, this would also improve security (because programs no longer need to access arbitrary file system locations) and solve so many other big and little problems (say, <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19165>; the compiler would no longer output text, it'd output objects representing diagnostics).
I think some of the advantages of this approach may be actually attainable on Linux today, by means of passing file descriptors over sockets and memfd. But to actually get to the root of the problem, I think you'd need to redesign Unix from scratch.
Bah, I got a bit carried away. But I had to let off this steam somewhere.
Posted May 17, 2016 6:37 UTC (Tue)
by jem (subscriber, #24231)
[Link]
Posted May 17, 2016 6:51 UTC (Tue)
by viro (subscriber, #7872)
[Link] (5 responses)
Posted May 17, 2016 7:54 UTC (Tue)
by dlang (guest, #313)
[Link]
Posted May 17, 2016 9:18 UTC (Tue)
by Cyberax (✭ supporter ✭, #52523)
[Link] (3 responses)
Posted May 17, 2016 14:56 UTC (Tue)
by edgewood (subscriber, #1123)
[Link] (1 responses)
Posted May 17, 2016 15:07 UTC (Tue)
by rahulsundaram (subscriber, #21946)
[Link]
Posted May 17, 2016 17:46 UTC (Tue)
by dlang (guest, #313)
[Link]
Unix was a mistake
Unix was a mistake
Unix was a mistake
Unix was a mistake
And it's so nice that MS decided to create a Linux emulation layer so that developers could run bash.
Unix was a mistake
Unix was a mistake
Unix was a mistake