Re: -i option of set missing in man bash

2015-03-12 Thread Chet Ramey
On 3/11/15 6:59 PM, Peng Yu wrote: > Hi, > > 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. The -s option does the same thing, for example. -

Re: -i option of set missing in man bash

2015-03-12 Thread Peng Yu
>> 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, righ

Re: -i option of set missing in man bash

2015-03-12 Thread Greg Wooledge
On Thu, Mar 12, 2015 at 01:13:18PM -0500, Peng Yu wrote: > One may want to manually set -i option in a bash script for whatever > reason. (In this case, it is to check COLUMNS.) http://mywiki.wooledge.org/BashFAQ/091

Re: -i option of set missing in man bash

2015-03-12 Thread Peng Yu
On Thu, Mar 12, 2015 at 1:29 PM, Greg Wooledge wrote: > On Thu, Mar 12, 2015 at 01:13:18PM -0500, Peng Yu wrote: >> One may want to manually set -i option in a bash script for whatever >> reason. (In this case, it is to check COLUMNS.) > > http://mywiki.wooledge.org/BashFAQ/091 This does not work