>> The -i option obviously works with set. But it is missing in the man
>> page. Should this be added?
>
> No. It's really only there for completeness, so things like `set $-'
> work as expected without error.
But if something is in the implementation, it should be also in the
documentation, right?
> The -s option does the same thing,
> for example.
>
> -i is described in the OPTIONS section of the man page, since invocation
> is the only place using it makes sense.
Not necessarily. See my other example sent recently on the mailing
list of trying to get COLUMNS.
One may want to manually set -i option in a bash script for whatever
reason. (In this case, it is to check COLUMNS.)
--
Regards,
Peng