set
and shopt
are both shell builtins that control various options. I often forget which options are set by which command, and which option sets/unsets (set -o/+o
, shopt -s/-u
). Why are there two different commands that seemingly do the same thing (and have different arguments to do so)? Is there any easy way/mnemonic to remember which options go with which command?
Asked by Kevin
(41635 rep)
Feb 22, 2012, 04:17 PM
Last activity: Jun 2, 2023, 07:40 AM
Last activity: Jun 2, 2023, 07:40 AM