GNU Bourne-Again SHell |
|
1. DescriptionBash is a POSIX shell (sh(1) compatible) command interpreter. Many useful features have been added with inspiration drawn from the Korn & C shells. New and unique extensions are occasionally added to the shell. There is also support for custom run-time extensions via the enable builtin command. Bash may be compiled to be POSIX compliant by default as specified by the Shell and Utilities portion of the POSIX specification (IEEE Standard 1003.1). 2. Invocation
2.1. ModesGNU bash may be started in any combination of various invocation modes. These modes control:
2.1.1. Interactive Shell2.1.2. Login Shell
2.1.3. POSIX Mode
2.1.4. Command String
2.1.5. Interactive Shell
2.1.5.1. Command Line
2.1.5.2. Prompting
2.1.5.3. Completion
2.1.5.4. History
2.1.5.5. Job Control
2.1.6. Shell Script
2.1.7. Command File
2.1.8. Command Stream
2.1.9. Restricted Shell
2.2. Options
2.2.1. -c CommandString-c [options] -- CommandString [ARG0 [ARG...]]
2.2.2. -i
Include: Nothing found for "^----$"! 2.2.3. -lpragma section-numbers 1 Contents
2.2.4. Invocation Option l
2.2.5. -r
2.2.6. -s2.2.7. -D
2.2.8. -O ShoptOption | +O ShoptOption-O ShoptOption | +O ShoptOption
2.2.9. --debugger
2.2.10. --dump-po-strings
2.2.11. --dump-strings
2.2.12. --help
Include: Nothing found for "^----$"! 2.2.13. --init-fileContents
2.2.14. Invocation Option --rcfile--rcfile FILE | --init-file FILE
2.2.15. --rcfile--rcfile FILE | --init-file FILE
2.2.16. --login
2.2.17. --noediting
2.2.18. --noprofile
2.2.19. --norc
2.2.20. --posix
2.2.21. --restricted
2.3. Environment
2.4. Files
2.4.1. Bash Binary
2.4.2. /etc/profile
2.4.3. ~/.bash_profile
2.4.4. ~/.bashrc
2.4.5. ~/.profile
2.4.6. ~/.bash_logout
2.4.7. ~/.inputrc3. StatementsAlso called "Compound Commands".
3.1. while
3.2. for in
3.3. for
3.4. if
3.5. case
3.6. until
3.7. group
3.8. subshell
3.9. Conditional
3.10. Arithmetic
3.11. select
3.12. coprocess
3.13. Function Definition4. Builtin Commands
4.1. : (colon)5. Syntax
5.1. Alias
5.2. Expansion
5.3. Redirection
5.4. Comment
5.5. List
5.6. Pipeline
5.7. Simple Command
5.8. Metacharacter
5.9. Reserved Words
5.10. Compound Command
5.11. Coprocess
5.12. Function Definition
5.13. Functions
5.14. Arithmetic Evaluation
5.15. Conditional Expressions6. Execution
6.1. Environment
6.2. Parameters
6.3. Working Directory
6.4. Functions
6.5. Open Files
6.6. Traps
6.7. umask
6.8. Options
6.9. Alias
6.10. OS process context
6.11. Exit Status
7. Subshell |