Location of cd executable

后端 未结 7 1430
独厮守ぢ
独厮守ぢ 2020-12-11 04:39

I read that the executables for the commands issued using exec() calls are supposed to be stored in directories that are part of the PATH variable.

Accordingly, I fo

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-11 05:27

    According to this, cd is always a built-in command and never an executable:

    Since cd affects the current shell execution environment, it is always provided as a shell regular built-in.

提交回复
热议问题