> Hi,
> I'm using bash under Linux. The special shell parameter $- in my
> environment is:
> # echo $-
> himBH
> #
> I know the 'i' means interactive shell. What's h,m,B,H mean ?
> I can't find the explaination by "man bash". Anyone know the answer ?
$ sman() { LESS="$LESS${2:+ +/$2}" man $1; }
$ sman bash 'Special Parameters'
Special Parameters
The shell treats several parameters specially. These parameters may
only be referenced; assignment to them is not allowed.
..........
- Expands to the current option flags as specified upon invoca-
tion, by the set builtin command, or those set by the shell
itself (such as the -i option).
$ help set
.....
-h Remember the location of commands as they are looked up.
.....
-m Job control is enabled.
.....
-B the shell will perform brace expansion
.....
-H Enable ! style history substitution. This flag is on
--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence