LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What does $- display (https://www.linuxquestions.org/questions/linux-newbie-8/what-does-%24-display-765322/)

kinny 10-29-2009 10:05 AM

What does $- display
 
Hi
I stumbled upon this when i was displaying all the options of $prefixed values.

but i am curious what echo $- display. In my linux box it displayed
himBH

Any idea what this means?

TB0ne 10-29-2009 10:39 AM

Quote:

Originally Posted by kinny (Post 3736716)
Hi
I stumbled upon this when i was displaying all the options of $prefixed values.

but i am curious what echo $- display. In my linux box it displayed
himBH

Any idea what this means?

Snip from the BASH help:
Code:

-h Remember the location of commands as they are looked up.
-i Force the shell to be an "interactive" one.
Interactive shells always read `~/.bashrc' on startup.
-m Job control is enabled
braceexpand same as -B
histexpand same as -H



All times are GMT -5. The time now is 06:50 PM.