Go to the previous, next section.

þ

Invocation

zsh [ +-options ] [ +-o option ] ... [ -c string ] [ arg ... ] þ þ þ

Commands are first read from `/etc/zshenv'. If the -f flag is given or if the NO_RCS option is set within `/etc/zshenv', all other initialization files are skipped. Otherwise, commands are read from `$ZDOTDIR/.zshenv' (if ZDOTDIR is unset, HOME is used instead). If the first character of argument zero passed to the shell is -, or if the -l flag is present, then the shell is assumed to be a login shell, and commands are read from `/etc/zprofile' and then `$ZDOTDIR/.zprofile'. Then, if the shell is interactive and the NO_RCS option is unset, commands are read from `/etc/zshrc' and then `$ZDOTDIR/.zshrc'. Finally, if the shell is a login shell, `/etc/zlogin' and `$ZDOTDIR/.zlogin' are read.

If the -s flag is not present and an argument is given, the first argument is taken to be the pathname of a script to execute. The remaining arguments are assigned to the positional parameters. The following flags are interpreted by the shell when invoked:þ þ

-c string
Read commands from string.

-s
Read command from the standard input.

-i
If this flag is present or the shell input and output are attached to a terminal, this shell is interactive.

Go to the previous, next section.