当我运行这两个命令时,我得到
$ type cd cd is a shell builtin $ type if if is a shell keyword
清楚地表明这cd是一个shell内置并且if是一个shell关键字。那么shell内置和关键字有什么区别呢?
cd
if
command-line
command-line ×1