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:
For further options, which are common to invocation and the set builtin, see section Options. Flags may be specified by name using the -o option. For example,
zsh -x -o shwordsplit scr
runs the script scr, setting the XTRACE option by the corresponding letter `-x' and the SH_WORD_SPLIT option by name.
Go to the first, previous, next, last section, table of contents.