4 ms·
An executable of 'cd' wouldn't do anything useful, it could only change its own idea of working directory then exit, the shell or other executable that invoked
by rjsw 4y ago
An executable of 'cd' wouldn't do anything useful, it could only change its own idea of working directory then exit, the shell or other executable that invoked it would be unchanged.
- stjohnswarts 4y agowhy couldn't it call an api in the shell to change directory?
- remram 4y agoWhat would that improve? And what happens if you call it from another shell?
- stjohnswarts 4y agoI never implied that it was better or worse but that it was possible