Bash Reference Manual Reference Documentation for Bash



Yüklə 4,8 Kb.
Pdf görüntüsü
səhifə2/66
tarix08.10.2017
ölçüsü4,8 Kb.
#3723
1   2   3   4   5   6   7   8   9   ...   66

iii
7
Job Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
7.1
Job Control Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
7.2
Job Control Builtins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
7.3
Job Control Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
8
Command Line Editing . . . . . . . . . . . . . . . . . . . . . . . 104
8.1
Introduction to Line Editing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
8.2
Readline Interaction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
8.2.1
Readline Bare Essentials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
8.2.2
Readline Movement Commands . . . . . . . . . . . . . . . . . . . . . . . . . . 105
8.2.3
Readline Killing Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
8.2.4
Readline Arguments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
8.2.5
Searching for Commands in the History . . . . . . . . . . . . . . . . . . 106
8.3
Readline Init File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
8.3.1
Readline Init File Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
8.3.2
Conditional Init Constructs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
8.3.3
Sample Init File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
8.4
Bindable Readline Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
8.4.1
Commands For Moving . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
8.4.2
Commands For Manipulating The History . . . . . . . . . . . . . . . 120
8.4.3
Commands For Changing Text . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
8.4.4
Killing And Yanking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
8.4.5
Specifying Numeric Arguments . . . . . . . . . . . . . . . . . . . . . . . . . . 124
8.4.6
Letting Readline Type For You . . . . . . . . . . . . . . . . . . . . . . . . . . 124
8.4.7
Keyboard Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
8.4.8
Some Miscellaneous Commands . . . . . . . . . . . . . . . . . . . . . . . . . . 126
8.5
Readline vi Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
8.6
Programmable Completion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
8.7
Programmable Completion Builtins . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
8.8
A Programmable Completion Example. . . . . . . . . . . . . . . . . . . . . . . . 134
9
Using History Interactively . . . . . . . . . . . . . . . . . . 137
9.1
Bash History Facilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
9.2
Bash History Builtins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
9.3
History Expansion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
9.3.1
Event Designators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
9.3.2
Word Designators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
9.3.3
Modifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141


iv
10
Installing Bash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
10.1
Basic Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
10.2
Compilers and Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
10.3
Compiling For Multiple Architectures . . . . . . . . . . . . . . . . . . . . . . . . 143
10.4
Installation Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
10.5
Specifying the System Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
10.6
Sharing Defaults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
10.7
Operation Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
10.8
Optional Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
Appendix A
Reporting Bugs . . . . . . . . . . . . . . . . . . . 149
Appendix B
Major Differences From
The Bourne Shell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
B.1
Implementation Differences From The SVR4.2 Shell . . . . . . . . . . 154
Appendix C
GNU Free Documentation License . . 156
Appendix D
Indexes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
D.1
Index of Shell Builtin Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
D.2
Index of Shell Reserved Words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
D.3
Parameter and Variable Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
D.4
Function Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
D.5
Concept Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171


Yüklə 4,8 Kb.

Dostları ilə paylaş:
1   2   3   4   5   6   7   8   9   ...   66




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©genderi.org 2024
rəhbərliyinə müraciət

    Ana səhifə