3 ms·
And yet ... https://unix.stackexchange.com/questions/50058/what-is-the-point-of-the-cd-external-command https://unix.stackexchange.com/questions/50058/what-is-
by emmelaich 4y ago
And yet ...
https://unix.stackexchange.com/questions/50058/what-is-the-point-of-the-cd-external-command https://unix.stackexchange.com/questions/50058/what-is-the-p...
Yes, it's idiotic.
- version_five 4y agoThe question and highest rated reply there are very interesting and worth reading (at least for trivia value), thanks for that. I don't understand what you meant is idiotic though
- ianai 4y agoAs that comment said, it’s there so utilities can use it for checking the return of “chdir()”. It’s at best a name conflict with a shell command with a well established past and use. At worst, it probably enables some bad code smells or outright malicious code.
- emmelaich 4y agoI've seen questions about sudo (for instance) that ask why does "sudo chdir" not work. By idiotic I think it's a mistake to blur the line between shell builtins and external commands.