dot (.) - Run commands in current environment

Synopsis

. name [ argument ... ]

Description

You can use dot to run a script or function in the current environment.

Options

None.

Operands

If name refers to a function, qsh runs the function in the current environment. Otherwise, qsh uses the search path specified by the PATH variable to find name. If name is found, qsh reads the contents of the file and runs those commands in the current environment.

If specified, the arguments replace the positional parameters while name is running. Otherwise the positional parameters are unchanged.

Exit Status

Exit status of last command in name.

Related information