Hi,
The -i option obviously works with set. But it is missing in the man
page. Should this be added?
~$ echo $-
himBH
~$ set +i
~$ echo $-
hmBH
The following lines are from the man page.
set [--abefhkmnptuvxBCEHPT] [-o option-name] [arg ...]
set [+abefhkmnptuvxBCEHPT] [+o option-n
This seems to be a bug. (I'm Cc-ing bug-bash)
When you set the 'i' flag as an option to bash, it works:
dualbus@hp ~ % bash -O checkwinsize -ic 'echo "$COLUMNS"'
136
This is because of the special treatment that 'i' gets in shell.c. There are
some tests there for the value of 'forced_int