shopt Man Page - Linux - SS64.com
Sat Mar 19 2022 08:31:24 GMT+0000 (Coordinated Universal Time)
Saved by
@bbyblueyescry
Syntax
shopt [-pqsu] [-o] [optname ...]
Options
-s Enable (set) each optname
-u Disable (unset) each optname.
-p Display a list of all settable options, with an indication of
whether or not each is set. The output is displayed in a form
that can be reused as input. (-p is the default action)
-q Suppresses normal output; the return status indicates whether the optname
is set or unset. If multiple optname arguments are given with '-q',
the return status is zero if all optnames are enabled; non-zero otherwise.
-o Restricts the values of optname to be those defined for the '-o' option to
the set builtin.
content_copyCOPY
https://ss64.com/bash/shopt.html
Comments