Comment

Comment by pwdisswordfishq

This just shows the command line was badly designed to begin with.

If CLI programs received already-opened file handles instead of pathname strings, most programs would have no need to have the concept of a "current directory" at all. It could be something purely internal to the command-line shell.

It would also be more fitting for a capability-based OS instead of one where every program has an ambient permission to access anything in the whole file system.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton