shopt (shell options)


/ Published in: Bash
Save to your folder(s)

//for options available, see:
http://www.ss64.com/bash/shopt.html


Copy this code and paste it in your HTML
  1. // display all shell options with their status
  2. shopt
  3.  
  4. // display only set (on) options
  5. shopt -s
  6.  
  7. //display only unset (off) options
  8. shopt -u
  9.  
  10. //set (turn on) an option
  11. shopt -s foo
  12.  
  13. //unset (turn off) an option
  14. shopt -u bar

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.