$-  –  Current Option Flags

$- expands to the current option flags.

Examples

Print option flags
1
echo "$-"
BashSupport Pro is a Bash and POSIX IDE with support for $_DASHtry it now!
© 2020–2026 Joachim Ansorg
Imprint
Privacy Policy
Legal