![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| using awk != parameter | karthikn7974 | Shell Programming and Scripting | 4 | 04-28-2008 06:59 AM |
| awk parameter | alokmits | Shell Programming and Scripting | 5 | 01-30-2008 03:10 AM |
| how do I make dynamic parameter names? Or get the value of a parameter evaluated twi | Awanka | Shell Programming and Scripting | 2 | 04-19-2007 09:37 PM |
| parameter | u263066 | Shell Programming and Scripting | 5 | 10-12-2006 03:46 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
$- is used to show current shell options (in Bash, Korn and others)... These can be options passed during the shells invocation (i.e. when the shell is first started), or set whilst the shell is running with the "set" command. For example....
$ echo $- himBH $ set -x $ echo $- himxBH $ set +x $ echo $- himBH $ bash -r # start another shell with -r set $ echo $- himrBH $ exit $ echo $- himBH Read the manual page for the shell you're using and take a look at the "set" section and also the invocation options section. I check the value of $- in my .kshrc file to make sure that it is executed for interactive shells only. Cheers ZB |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|