bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -i option of set missing in man bash


From: Peng Yu
Subject: Re: -i option of set missing in man bash
Date: Thu, 12 Mar 2015 13:13:18 -0500

>> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]