Programmatically change the shell's cwd in a portable way

前端 未结 4 1760
旧时难觅i
旧时难觅i 2021-01-21 04:44

I\'d like to write a command line tool in C that acts as an advanced \"cd\" or \"pushd/popd\" command that can be ported to Windows/Mac/Linux. (Full details, in case you are cur

4条回答
  •  抹茶落季
    2021-01-21 05:15

    Manipulating the working directory of a shell is something that must be done by the shell itself - you cannot write a program to do it. As for your second question, please post an example of what you are asking about.

提交回复
热议问题