|
|
|
|
|
by trws
810 days ago
|
|
I’m a bit perplexed how you mean. Mkdir is a thin wrapper around `mkdir(const char*pathname, int mode)` from libc, or at least was before things like -p were added. Everything else is handling arguments and various failure modes. Famously /bin/true used to be an empty file with the executable bit set. Now, why exactly `ls` isn’t, or why `rm` was named unlink in the lib remains confusing, but the original commands were pretty much what you describe. |
|