[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Why bash has two sets of options (controlled by `set' an
From: |
Eduardo A . Bustamante López |
Subject: |
Re: [Help-bash] Why bash has two sets of options (controlled by `set' and `shopt') |
Date: |
Mon, 26 Oct 2015 05:27:41 -0600 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Mon, Nov 09, 2015 at 03:54:19PM +0800, ziyunfei wrote:
> 1. It's hard for me to remember which options belong to which command, so why
> didn’t let `set' control all options in bash 2.0?
> 2. `shopt' has a -o option to control all options belong to `set', so does
> this mean the author recommend us to use `shopt' instead of `set'?
Because 'set' is used for options that are common along shells, i.e. POSIX
shells. And shopt is used for options that are specific to bash.
--
Eduardo Bustamante
https://dualbus.me/