|Advanced Bash-Scripting Guide: An in-depth exploration of the art of shell scripting|
|Prev||Appendix G. Command-Line Options||Next|
Bash itself has a number of command-line options. Here are some of the more useful ones.
Read commands from the following string and assign any arguments to the positional parameters.
bash$ bash -c 'set a b c d; IFS="+-;"; echo "$*"' a+b+c+d
Runs the shell, or a script, in restricted mode.
Forces Bash to conform to POSIX mode.
Display Bash version information and exit.
End of options. Anything further on the command line is an argument, not an option.