瀏覽代碼

shopt: add page (#1033)

Waldir Pimenta 8 年之前
父節點
當前提交
67840a5c3f
共有 1 個文件被更改,包括 24 次插入0 次删除
  1. 24 0
      pages/common/shopt.md

+ 24 - 0
pages/common/shopt.md

@@ -0,0 +1,24 @@
+# shopt
+
+> Manage Bash shell options: variables (stored in `$BASHOPTS`) that control behavior specific to the Bash shell.
+> Generic POSIX shell variables (stored in `$SHELLOPTS`) are managed with the `set` command instead.
+
+- List of all settable options and whether they are set:
+
+`shopt`
+
+- Set an option:
+
+`shopt -s {{option_name}}`
+
+- Unset an option:
+
+`shopt -u {{option_name}}`
+
+- Print a list of all options and their status formatted as runnable `shopt` commands:
+
+`shopt -p`
+
+- Show help for the command:
+
+`help shopt`