chdir — change working directory then chain
chdir
{directory
} {next-prog
}
Most shells have a built-in chdir command that does not chain. See the manual for each individual shell for its built-in command. This command is more commonly used with exec(1) and nosh(1).
directory
and then chain loads to next-prog
with the execvp(3) function.
next-prog
may contain its own command line options, which chdir will ignore.
Unlike the shell built-in of the same name, chdir has no notion of "logical" and "physical" paths.