3 ms·
Presumably you can call chdir(2) from the C code? Or did you mean change the directory of the calling shell (in which case, executable shell scripts written in
by zbentley 3mo ago
Presumably you can call chdir(2) from the C code?
Or did you mean change the directory of the calling shell (in which case, executable shell scripts written in Bash and friends can’t do that either).
- wavemode 3mo agoWell, you can "source" a script, so its effects persist in your current shell session. That's a feature of the script and your shell sharing the same language.