Name

chdir — change working directory then chain

Synopsis

chdir {directory} {next-prog}

NOTE

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).

Description

chdir is a chain-loading utility that changes its working directory to 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.

Author

Jonathan de Boyne Pollard