All commands
set
Topic: Shell and scripts
Shell builtin: set
Sets shell options and positional parameters.
Package: shell-optionen
Usage
set [-Ceufx] [-o name] [--] [arg ...]
Description
Turn shell options on with - and off with +, for example set -o noclobber or set +e. Words after -- become $1, $2 ... Without arguments, list all variables and functions.
Options in the simulator
-
-C noclobber: > does not overwrite an existing file (>| still does) -
-e errexit: end the shell when a command fails -
-u nounset: treat an unset variable as an error -
-x xtrace: print each command before it runs -
-f noglob: leave * ? and [ ] as they are -
-o NAME turn on the option NAME; +o turns it off; without NAME list all
14 more options of the real program, not in the simulator yet
-
-a not in the simulator yet Explanation to come
-
-b not in the simulator yet Explanation to come
-
-h not in the simulator yet Explanation to come
-
-k not in the simulator yet Explanation to come
-
-m not in the simulator yet Explanation to come
-
-n not in the simulator yet Explanation to come
-
-p not in the simulator yet Explanation to come
-
-t not in the simulator yet Explanation to come
-
-v not in the simulator yet Explanation to come
-
-B not in the simulator yet Explanation to come
-
-E not in the simulator yet Explanation to come
-
-H not in the simulator yet Explanation to come
-
-P not in the simulator yet Explanation to come
-
-T not in the simulator yet Explanation to come
Where you learn it
No lesson yet.
All commands