Zsh has an extensible set of features which are also supported, maintained and used in other operating systems such as Windows®, UNIX® and OSX®.
Zsh supports the following features:
Shell variables: These are variables that are set, stored in the shell and available to shell applications. The set is a command that creates new shell variables and sets new values for existing shell variables.
alias and unalias : For more information on these commands refer to the Zsh Command Syntax section.
Shell functions: These are read in and stored internally. They are executed like a regular command. The following is the syntax for a shell function:
The syntax for invoking the above function is
Input files: Zsh supports the execution of commands through script files and these script files can be passed as input to the shell.
Redirection : Redirection is a function that allows the standard streams to be re-directed to a specified location. For example,
which executes pwd , placing the output in file1 .
Piping : The output of one command can be the input to another command without an intermediate file. For example,
which executes cmd1 and the output of cmd1 will be the input for cmd2 . The character | is known as a pipe.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License v1.0.