-i option of set missing in man bash

2015-03-11 Thread Peng Yu
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

Re: [Help-bash] Why COLUMNS is not available, when -i is set?

2015-03-11 Thread Eduardo A . Bustamante López
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