Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
_k9eq
on Sept 18, 2022
|
parent
|
context
|
favorite
| on:
Linux command line for you and me
Yeah, that is why it isn't done. I am just pointing out the pointless fact that you could write a cd command that wasn't itself built-in.
remram
on Sept 19, 2022
[–]
You could hook up to the parent process with ptrace or the equivalent debugging API of your OS of choice and forcibly change the directory. Stackoverflow even has an implementation:
https://unix.stackexchange.com/a/114262/81005
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: