Created
October 14, 2017 12:28
-
-
Save kamontat/be8c00e9d7d45435536c3ce63ed83c5f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usually use | |
# |set|option|#|option-name|->|description| | |
set -e # errexit -> Exit immediately if non-zero code returned. | |
set -v # verbose -> Display shell input lines as they are read. | |
set -x # xtrace -> Display commands and their arguments as they are executed. | |
set -n # noexec -> Check syntax of the script but don't execute. | |
# Often use | |
set -b # notify -> Reported cause the status of terminated bg jobs immediately. | |
set -h # hashall -> Locate and remember (hash) commands as they are looked up for execution. | |
set -m # monitor -> Job control is enabled (https://www.gnu.org/software/bash/manual/html_node/Job-Control.html#Job-Control) | |
set -p # privileged -> Turn on privileged mode. In this mode, the $BASH_ENV and $ENV files are not processed, shell functions are not inherited from the environment, and the SHELLOPTS, BASHOPTS, CDPATH and GLOBIGNORE variables, if they appear in the environment, are ignored. | |
set -t # onecmd -> Exit after reading and executing one command. | |
set -C # noclobber -> Prevent output redirection using > < and <> | |
set -P # physical -> Do not resolve symbolic links when performing commands such as cd | |
set # -> list all shell variables | |
# P.S. | |
# option-name -> parameter that you can pass by `-o` option |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment