Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
chdir() を使用することになっていることは理解していますが、子プロセスからシステムまたは execvp() を介して cd シェル コマンドを呼び出すことが機能しない理由について説明が必要ですか? ありがとう!!
chdir現在のプロセスの環境のみを変更するためです。親の環境に触れることはできません。
chdir
tripleee によって投稿されたリンクも参照してください。