News for hackers. Stuff that matters.
Re:How does `cd` work? by Endy on Thursday March 01, 2018 @06:01PM (#16497212)
Okay, but now I want to know how it works on something other than (foo)Nix, because that's not an OS space I care about. What about how it works in CP/M or foo-DOS? I've never used a *Nix computer, but I know that I used 'cd' going back to the time of using a TRS-80 CoCo.

I know it's a low-level system call in most on-disk operating systems to change directories. But, for instance, how does it translate physical address to the human-readable name? Do modern (WinXP+) implementations actually take the time to translate folder names from 8.3 to the extended name field? How?

Heck, I'll be dumb enough to ask - why, specifically at the call level, does 'cd\' stick to one level up/down whereas 'cd ' can just pull from just about anywhere? And why, dare I ask, can 'cd' not display like 'tree'?

These are questions about how 'cd' works, to me. Not just, oh, in (foo)Nix it's a system call.

Re:How does `cd` work? by JdeBP on Sunday March 04, 2018 @04:25AM (#16513938)
What you want is a question and answer WWW site.

* https://superuser.com/a/380231/38062

* https://unix.stackexchange.com/a/251215/5132

... and so on.

Re:How does `cd` work? by Endy on Wednesday March 07, 2018 @02:06AM (#16534777)
I appreciate the information honestly, but I meant it mostly in the sense that those would be some of the things I'd expect to see in a "how does 'cd' work?" post.