Imported from ../bash-2.02.tar.gz.
This commit is contained in:
parent
e8ce775db8
commit
cce855bc5b
323 changed files with 33916 additions and 12321 deletions
131
doc/FAQ
131
doc/FAQ
|
@ -1,4 +1,4 @@
|
|||
This is the Bash FAQ, version 2.5, for Bash version 2.01.
|
||||
This is the Bash FAQ, version 2.11, for Bash version 2.02.
|
||||
|
||||
This document contains a set of frequently-asked questions concerning
|
||||
Bash, the GNU Bourne-Again Shell. Bash is a freely-available command
|
||||
|
@ -13,7 +13,7 @@ chet@po.cwru.edu.
|
|||
|
||||
This document is available for anonymous FTP with the URL
|
||||
|
||||
ftp://slc2.ins.cwru.edu/pub/bash/FAQ
|
||||
ftp://ftp.cwru.edu/pub/bash/FAQ
|
||||
|
||||
----------
|
||||
Contents:
|
||||
|
@ -34,8 +34,8 @@ Section A: The Basics
|
|||
|
||||
Section B: The latest version
|
||||
|
||||
11) What's new in version 2.01?
|
||||
12) Are there any user-visible incompatibilities between bash-2.01 and
|
||||
11) What's new in version 2.02?
|
||||
12) Are there any user-visible incompatibilities between bash-2.02 and
|
||||
bash-1.14.7?
|
||||
|
||||
Section C: Differences from other Unix shells
|
||||
|
@ -120,23 +120,22 @@ of Case Western Reserve University.
|
|||
|
||||
2) What's the latest version?
|
||||
|
||||
The latest version is 2.01, first made available on June 6, 1997.
|
||||
The latest version is 2.02, first made available on Monday, 20 April, 1998.
|
||||
|
||||
3) Where can I get it?
|
||||
|
||||
Bash is the GNU project's shell, and so is available from the
|
||||
master GNU archive site, prep.ai.mit.edu, and its mirrors. The
|
||||
latest version is also available for FTP from slc2.ins.cwru.edu,
|
||||
the maintainer's machine. The following URLs tell how to get
|
||||
version 2.01:
|
||||
latest version is also available for FTP from ftp.cwru.edu.
|
||||
The following URLs tell how to get version 2.02:
|
||||
|
||||
ftp://prep.ai.mit.edu/pub/gnu/bash-2.01.tar.gz
|
||||
ftp://slc2.ins.cwru.edu/pub/dist/bash-2.01.tar.gz
|
||||
ftp://prep.ai.mit.edu/pub/gnu/bash-2.02.tar.gz
|
||||
ftp://ftp.cwru.edu/pub/bash/bash-2.02.tar.gz
|
||||
|
||||
Formatted versions of the documentation are available with the URLs:
|
||||
|
||||
ftp://prep.ai.mit.edu/pub/gnu/bash-doc-2.01.tar.gz
|
||||
ftp://slc2.ins.cwru.edu/pub/dist/bash-doc-2.01.tar.gz
|
||||
ftp://prep.ai.mit.edu/pub/gnu/bash-doc-2.02.tar.gz
|
||||
ftp://ftp.cwru.edu/pub/bash/bash-doc-2.02.tar.gz
|
||||
|
||||
4) On what machines will bash run?
|
||||
|
||||
|
@ -162,8 +161,22 @@ project. For more information about the project, look at the URL
|
|||
|
||||
http://www.cygnus.com/misc/gnu-win32
|
||||
|
||||
Cygnus has ported bash-1.14.7. Maybe someday they (or I) will port
|
||||
bash-2.01 (or later) to the GNU-Win32 environment.
|
||||
Cygnus has ported bash-1.14.7, and their port is part of the current
|
||||
gnu-win32 release. Cygnus has also done a port of bash-2.01 to the
|
||||
GNU-Win32 environment, and it should be available as part of their next
|
||||
release.
|
||||
|
||||
Bash-2.02 should require no local Cygnus changes to build and run under
|
||||
GNU-WIN32.
|
||||
|
||||
The Cygnus port works only on Intel machines. There is a port of bash
|
||||
(I don't know which version) to the alpha/NT environment available from
|
||||
|
||||
ftp://ftp.gnustep.org//pub/win32/bash-alpha-nt-1.01.tar.gz
|
||||
|
||||
Softway Systems has ported bash-2.01.1 to their OpenNT system, a
|
||||
Unix subsystem for NT that replaces the Microsoft POSIX subsystem.
|
||||
Check out http://www.opennt.com for more information.
|
||||
|
||||
D. J. Delorie has ported bash-1.14.7 to run under MS-DOS, as part of
|
||||
the DJGPP project. For more information on the project, see
|
||||
|
@ -179,11 +192,13 @@ The corresponding source is
|
|||
|
||||
ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/bsh1147s.zip
|
||||
|
||||
A port of bash-1.12 is available for OS/2 from
|
||||
Ports of bash-1.12 and bash-2.0 are available for OS/2 from
|
||||
|
||||
ftp://hobbes.nmsu.edu/os2/unix/bash_112.zip
|
||||
ftp://hobbes.nmsu.edu/pub/os2/util/shell/bash_112.zip
|
||||
ftp://hobbes.nmsu.edu/pub/os2/util/shell/bash-2.0(253).zip
|
||||
|
||||
I haven't looked at it.
|
||||
I haven't looked at either, but the second appears to be a binary-only
|
||||
distribution. Beware.
|
||||
|
||||
6) How can I build bash with gcc?
|
||||
|
||||
|
@ -193,11 +208,11 @@ file INSTALL in the distribution for more information.
|
|||
7) How can I make bash my login shell?
|
||||
|
||||
Some machines let you use `chsh' to change your login shell. Other
|
||||
systems use `passwd -s'. If one of these works for you, that's all
|
||||
you need. Note that many systems require the full pathname to a shell
|
||||
to appear in /etc/shells before you can make it your login shell. For
|
||||
this, you may need the assistance of your friendly local system
|
||||
administrator.
|
||||
systems use `passwd -s' or `passwd -e'. If one of these works for
|
||||
you, that's all you need. Note that many systems require the full
|
||||
pathname to a shell to appear in /etc/shells before you can make it
|
||||
your login shell. For this, you may need the assistance of your
|
||||
friendly local system administrator.
|
||||
|
||||
If you cannot do this, you can still use bash as your login shell, but
|
||||
you need to perform some tricks. The basic idea is to add a command
|
||||
|
@ -298,15 +313,37 @@ Reference Manual.
|
|||
|
||||
Section B: The latest version
|
||||
|
||||
11) What's new in version 2.01?
|
||||
11) What's new in version 2.02?
|
||||
|
||||
Bash-2.01 contains only a few new features.
|
||||
Bash-2.02 has a number of new features. Here's a short list:
|
||||
|
||||
a new version of malloc (based on the old GNU malloc code in previous
|
||||
bash versions) that is more page-oriented, more conservative
|
||||
with memory usage, does not `orphan' large blocks when they
|
||||
are freed, is usable on 64-bit machines, and has allocation
|
||||
checking turned on unconditionally
|
||||
POSIX.2-style globbing character classes ([:alpha:], [:alnum:], etc.)
|
||||
POSIX.2-style globbing equivalence classes
|
||||
POSIX.2-style globbing collating symbols
|
||||
the ksh [[...]] extended conditional command
|
||||
the ksh egrep-style extended pattern matching operators
|
||||
a new `printf' builtin
|
||||
the ksh-like $(<filename) command substitution, which is equivalent to
|
||||
$(cat filename)
|
||||
new tilde prefixes that expand to directories from the directory stack
|
||||
new `**' arithmetic operator to do exponentiation
|
||||
case-insensitive globbing (filename expansion)
|
||||
menu completion a la tcsh
|
||||
`magic-space' history expansion function like tcsh
|
||||
the readline inputrc `language' has a new file inclusion directive ($include)
|
||||
|
||||
Bash-2.01 contained only a few new features:
|
||||
|
||||
new `GROUPS' builtin array variable containing the user's group list
|
||||
new bindable readline commands: history-and-alias-expand-line and
|
||||
alias-expand-line
|
||||
|
||||
Bash-2.0 contains extensive changes and new features from bash-1.14.7.
|
||||
Bash-2.0 contained extensive changes and new features from bash-1.14.7.
|
||||
Here's a short list:
|
||||
|
||||
new `time' reserved word to time pipelines, shell builtins, and
|
||||
|
@ -344,11 +381,11 @@ grammar tighter and smaller (66 reduce-reduce conflicts gone)
|
|||
lots of code now smaller and faster
|
||||
test suite greatly expanded
|
||||
|
||||
12) Are there any user-visible incompatibilities between bash-2.01 and
|
||||
12) Are there any user-visible incompatibilities between bash-2.02 and
|
||||
bash-1.14.7?
|
||||
|
||||
There are a few incompatibilities between version 1.14.7 and version 2.01.
|
||||
They are detailed in the file COMPAT in the bash-2.01 distribution.
|
||||
There are a few incompatibilities between version 1.14.7 and version 2.02.
|
||||
They are detailed in the file COMPAT in the bash-2.02 distribution.
|
||||
|
||||
Section C: Differences from other Unix shells
|
||||
|
||||
|
@ -494,7 +531,7 @@ Implementation differences:
|
|||
|
||||
15) Which new features in ksh-93 are not in bash, and which are?
|
||||
|
||||
New things in ksh-93 not in bash-2.01:
|
||||
New things in ksh-93 not in bash-2.02:
|
||||
associative arrays
|
||||
floating point arithmetic
|
||||
++, --, comma arithmetic operators
|
||||
|
@ -510,12 +547,12 @@ New things in ksh-93 not in bash-2.01:
|
|||
variables: .sh.edchar, .sh.edmode, .sh.edcol, .sh.edtext, HISTEDIT,
|
||||
.sh.version, .sh.name, .sh.subscript, .sh.value
|
||||
backreferences in pattern matching
|
||||
print -f and printf (bash has loadable versions)
|
||||
print -f (bash has a loadable version)
|
||||
`fc' has been renamed to `hist'
|
||||
read -t/-d
|
||||
`.' can execute shell functions
|
||||
|
||||
New things in ksh-93 present in bash-2.01:
|
||||
New things in ksh-93 present in bash-2.02:
|
||||
?: arithmetic operator
|
||||
expansions: ${!param}, ${param:offset[:len]}, ${param/pat[/str]}
|
||||
compound array assignment
|
||||
|
@ -808,7 +845,7 @@ and the \] escape to signal the end of such a sequence.
|
|||
27) How can I find the value of a shell variable whose name is the value
|
||||
of another shell variable?
|
||||
|
||||
Bash-2.01 supports this directly. You can use
|
||||
Bash-2.02 supports this directly. You can use
|
||||
|
||||
${!var}
|
||||
|
||||
|
@ -830,7 +867,7 @@ parameter:
|
|||
|
||||
The expansion of the quoted portions of this expression will be
|
||||
deferred until `eval' runs, while the `$#' will be expanded
|
||||
before `eval' is executed. In bash-2.01,
|
||||
before `eval' is executed. In bash-2.02,
|
||||
|
||||
echo ${!#}
|
||||
|
||||
|
@ -1055,7 +1092,7 @@ is, in fact, a syntax error. Redirections may only precede `simple
|
|||
commands'. A subshell construct such as the above is one of the shell's
|
||||
`compound commands'. A redirection may only follow a compound command.
|
||||
|
||||
The file CWRU/sh-redir-hack in the bash-2.01 distribution is an
|
||||
The file CWRU/sh-redir-hack in the bash-2.02 distribution is an
|
||||
(unofficial) patch to parse.y that will modify the grammar to
|
||||
support this construct. It will not apply with `patch'; you must
|
||||
modify parse.y by hand. Note that if you apply this, you must
|
||||
|
@ -1100,34 +1137,30 @@ Postscript files created from the above source are available in
|
|||
the documentation distribution.
|
||||
|
||||
There is additional documentation available for anonymous FTP from host
|
||||
slc2.ins.cwru.edu in the `pub/bash' directory.
|
||||
ftp.cwru.edu in the `pub/bash' directory.
|
||||
|
||||
Cameron Newham and Bill Rosenblatt have written a book on bash, published
|
||||
by O'Reilly and Associates. The book is based on Bill Rosenblatt's Korn
|
||||
Shell book. The title is ``Learning the Bash Shell'', and the ISBN number
|
||||
is 1-56592-147-X. Look for it in fine bookstores near you. This book
|
||||
covers bash-1.14, but has an appendix describing some of the new features
|
||||
in bash-2.0. There are rumors of a second edition of this book, describing
|
||||
bash-2.0 (and 2.01). I do not know what ORA's publication schedule for
|
||||
this edition is.
|
||||
in bash-2.0.
|
||||
|
||||
A second edition of this book is available, just published in January, 1998.
|
||||
The ISBN number is 1-56592-347-2. Look for it in the same fine bookstores
|
||||
or on the web.
|
||||
|
||||
39) What's coming in future versions?
|
||||
|
||||
These are features I plan to include in a future version of bash.
|
||||
|
||||
POSIX.2-style globbing character classes ([:alpha:], [:alnum:], etc.)
|
||||
POSIX.2-style globbing equivalence classes
|
||||
POSIX.2-style globbing collating symbols
|
||||
a bash debugger (a minimally-tested version is included with bash-2.01)
|
||||
a bash debugger (a minimally-tested version is included with bash-2.02)
|
||||
Programmable completion a la zsh
|
||||
|
||||
40) What's on the bash `wish list' for future versions?
|
||||
|
||||
These are features that may or may not appear in a future version of bash.
|
||||
|
||||
Programmable completion a la zsh
|
||||
menu completion a la tcsh
|
||||
the ksh [[...]] extended test command
|
||||
the ksh egrep-style extended pattern matching operators
|
||||
associative arrays (not really all that hard)
|
||||
breaking some of the shell functionality into embeddable libraries
|
||||
better internationalization using GNU `gettext'
|
||||
|
@ -1135,13 +1168,15 @@ an option to use external files for the long `help' text
|
|||
timeouts for the `read' builtin
|
||||
the ksh-93 ${!prefix*} and ${!prefix@} operators
|
||||
arithmetic ++ and -- prefix and postfix operators
|
||||
date-stamped command history
|
||||
|
||||
41) When will the next release appear?
|
||||
|
||||
The next version will appear sometime in 1997. Never make predictions.
|
||||
The next version will appear sometime in 1998. Never make
|
||||
predictions.
|
||||
|
||||
|
||||
This document is Copyright 1995, 1996 by Chester Ramey.
|
||||
This document is Copyright 1995, 1996, 1998 by Chester Ramey.
|
||||
|
||||
Permission is hereby granted, without written agreement and
|
||||
without license or royalty fees, to use, copy, and distribute
|
||||
|
|
|
@ -30,6 +30,8 @@ TEX = tex
|
|||
MAKEINFO = makeinfo
|
||||
TEXI2DVI = ${topdir}/support/texi2dvi
|
||||
TEXI2HTML = ${topdir}/support/texi2html
|
||||
MAN2HTML = ${BUILD_DIR}/support/man2html
|
||||
HTMLPOST = ${srcdir}/htmlpost.sh
|
||||
QUIETPS = #set this to -q to shut up dvips
|
||||
DVIPS = dvips -D 300 $(QUIETPS) -o $@ # tricky
|
||||
TEXINPUTDIR = $(RL_LIBDIR)/doc
|
||||
|
@ -45,7 +47,7 @@ GROFF = groff
|
|||
HSUSER = $(RL_LIBDIR)/doc/hsuser.texinfo
|
||||
RLUSER = $(RL_LIBDIR)/doc/rluser.texinfo
|
||||
|
||||
.SUFFIXES: .0 .1 .3 .ms .ps .txt .dvi
|
||||
.SUFFIXES: .0 .1 .3 .ms .ps .txt .dvi .html
|
||||
|
||||
.1.ps:
|
||||
$(RM) $@
|
||||
|
@ -55,6 +57,10 @@ RLUSER = $(RL_LIBDIR)/doc/rluser.texinfo
|
|||
$(RM) $@
|
||||
-${NROFF} -man $< > $@
|
||||
|
||||
.1.html:
|
||||
$(RM) $@
|
||||
-${MAN2HTML} $< | ${HTMLPOST} > $@
|
||||
|
||||
.ms.ps:
|
||||
$(RM) $@
|
||||
-${GROFF} -ms $< > $@
|
||||
|
@ -71,6 +77,10 @@ RLUSER = $(RL_LIBDIR)/doc/rluser.texinfo
|
|||
$(RM) $@
|
||||
-${NROFF} -man $< > $@
|
||||
|
||||
.3.html:
|
||||
$(RM) $@
|
||||
-${MAN2HTML} $< > $@
|
||||
|
||||
all: ps info dvi text html
|
||||
nodvi: ps info text html
|
||||
|
||||
|
@ -78,7 +88,7 @@ ps: bash.ps bashbug.ps readline.ps article.ps builtins.ps
|
|||
dvi: bashref.dvi bashref.ps
|
||||
info: bashref.info
|
||||
text: bash.0 bashbug.0 builtins.0 readline.0
|
||||
html: bashref.html
|
||||
html: bashref.html bash.html
|
||||
|
||||
bashref.dvi: $(srcdir)/bashref.texi $(HSUSER) $(RLUSER)
|
||||
TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/bashref.texi
|
||||
|
@ -102,6 +112,7 @@ bashman.ps: bash.dvi
|
|||
|
||||
bash.txt: bash.1
|
||||
bash.ps: bash.1
|
||||
bash.html: bash.1 $(MAN2HTML)
|
||||
bashbug.ps: bashbug.1
|
||||
builtins.ps: builtins.1 bash.1
|
||||
bash.0: bash.1
|
||||
|
@ -111,6 +122,9 @@ readline.0: readline.3
|
|||
readline.ps: readline.3
|
||||
article.ps: article.ms
|
||||
|
||||
$(MAN2HTML): ${topdir}/support/man2html.c
|
||||
-( cd ${BUILD_DIR}/support ; ${MAKE} ${MFLAGS} man2html)
|
||||
|
||||
faq: faq.news faq.news2 faq.mail faq.version
|
||||
|
||||
faq.version: FAQ.version FAQ
|
||||
|
|
1515
doc/bash.1
1515
doc/bash.1
File diff suppressed because it is too large
Load diff
4354
doc/bashref.info
4354
doc/bashref.info
File diff suppressed because it is too large
Load diff
3537
doc/bashref.texi
3537
doc/bashref.texi
File diff suppressed because it is too large
Load diff
19
doc/htmlpost.sh
Executable file
19
doc/htmlpost.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# Some of these should really be done by man2html
|
||||
#
|
||||
# The ~/xxx links don't really work -- netscape doesn't expand the home
|
||||
# directory of the user running navigator
|
||||
#
|
||||
|
||||
sed -e 's|<B>gnu.bash.bug</B>|<A HREF="news:gnu.bash.bug">gnu.bash.bug</A>|' \
|
||||
-e 's|<I>/bin/bash</I>|<A HREF="file:/bin/bash"><I>/bin/bash</I></A>|' \
|
||||
-e 's|<I>/etc/profile</I>|<A HREF="file:/etc/profile"><I>/etc/profile</I></A>|' \
|
||||
-e 's|<I>~/.bash_profile</I>|<A HREF="file:~/.bash_profile"><I>~/.bash_profile</I></A>|' \
|
||||
-e 's|<I>~/.bash_login</I>|<A HREF="file:~/.bash_login"><I>~/.bash_login</I></A>|' \
|
||||
-e 's|<I>~/.profile</I>|<A HREF="file:~/.profile"><I>~/.profile</I></A>|' \
|
||||
-e 's|<I>~/.bashrc</I>|<A HREF="file:~/.bashrc"><I>~/.bashrc</I></A>|' \
|
||||
-e 's|<I>~/.bash_logout</I>|<A HREF="file:~/.bash_logout"><I>~/.bash_logout</I></A>|' \
|
||||
-e 's|<I>~/.bash_history</I>|<A HREF="file:~/.bash_history"><I>~/.bash_history</I></A>|' \
|
||||
-e 's|<I>~/.inputrc</I>|<A HREF="file:~/.inputrc"><I>~/.inputrc</I></A>|' \
|
||||
-e 's|<I>/etc/inputrc</I>|<A HREF="file:/etc/inputrc"><I>/etc/inputrc</I></A>|'
|
127
doc/readline.3
127
doc/readline.3
|
@ -6,9 +6,9 @@
|
|||
.\" Case Western Reserve University
|
||||
.\" chet@ins.CWRU.Edu
|
||||
.\"
|
||||
.\" Last Change: Wed Feb 5 14:13:22 EST 1997
|
||||
.\" Last Change: Thu Feb 19 10:26:47 EST 1998
|
||||
.\"
|
||||
.TH READLINE 3 "1997 Feb 5" GNU
|
||||
.TH READLINE 3 "1998 Feb 19" GNU
|
||||
.\"
|
||||
.\" File Name macro. This used to be `.PN', for Path Name,
|
||||
.\" but Sun doesn't seem to like that very much.
|
||||
|
@ -159,7 +159,7 @@ command or the text of a macro and a key sequence to which
|
|||
it should be bound. The name may be specified in one of two ways:
|
||||
as a symbolic key name, possibly with \fIMeta\-\fP or \fIControl\-\fP
|
||||
prefixes, or as a key sequence.
|
||||
When using the form \fBkeyname\fP:\fIfunction-name\fP or \fImacro\fP,
|
||||
When using the form \fBkeyname\fP:\^\fIfunction-name\fP or \fImacro\fP,
|
||||
.I keyname
|
||||
is the name of a key spelled out in English. For example:
|
||||
.sp
|
||||
|
@ -185,7 +185,7 @@ expressed on the right hand side (that is, to insert the text
|
|||
.I >&output
|
||||
into the line).
|
||||
.PP
|
||||
In the second form, \fB"keyseq"\fP:\fIfunction\-name\fP or \fImacro\fP,
|
||||
In the second form, \fB"keyseq"\fP:\^\fIfunction\-name\fP or \fImacro\fP,
|
||||
.B keyseq
|
||||
differs from
|
||||
.B keyname
|
||||
|
@ -213,8 +213,9 @@ and
|
|||
.I "ESC [ 1 1 ~"
|
||||
is bound to insert the text
|
||||
.BR "Function Key 1" .
|
||||
The full set of escape sequences is
|
||||
The full set of GNU Emacs style escape sequences is
|
||||
.RS
|
||||
.PD 0
|
||||
.TP
|
||||
.B \eC\-
|
||||
control prefix
|
||||
|
@ -234,11 +235,53 @@ literal "
|
|||
.B \e'
|
||||
literal '
|
||||
.RE
|
||||
.PD
|
||||
.PP
|
||||
In addition to the GNU Emacs style escape sequences, a second
|
||||
set of backslash escapes is available:
|
||||
.RS
|
||||
.PD 0
|
||||
.TP
|
||||
.B \ea
|
||||
alert (bell)
|
||||
.TP
|
||||
.B \eb
|
||||
backspace
|
||||
.TP
|
||||
.B \ed
|
||||
delete
|
||||
.TP
|
||||
.B \ef
|
||||
form feed
|
||||
.TP
|
||||
.B \en
|
||||
newline
|
||||
.TP
|
||||
.B \er
|
||||
carriage return
|
||||
.TP
|
||||
.B \et
|
||||
horizontal tab
|
||||
.TP
|
||||
.B \ev
|
||||
vertical tab
|
||||
.TP
|
||||
.B \e\fInnn\fP
|
||||
the character whose ASCII code is the octal value \fInnn\fP
|
||||
(one to three digits)
|
||||
.TP
|
||||
.B \ex\fInnn\fP
|
||||
the character whose ASCII code is the hexadecimal value \fInnn\fP
|
||||
(one to three digits)
|
||||
.RE
|
||||
.PD
|
||||
.PP
|
||||
When entering the text of a macro, single or double quotes should
|
||||
be used to indicate a macro definition. Unquoted text
|
||||
is assumed to be a function name. Backslash
|
||||
will quote any character in the macro text, including " and '.
|
||||
is assumed to be a function name.
|
||||
In the macro body, the backslash escapes described above are expanded.
|
||||
Backslash will quote any other character in the macro text,
|
||||
including " and '.
|
||||
.PP
|
||||
.B Bash
|
||||
allows the current readline key bindings to be displayed or modified
|
||||
|
@ -288,6 +331,10 @@ This command is bound to
|
|||
in emacs mode and to
|
||||
.B #
|
||||
in vi command mode.
|
||||
.TP
|
||||
.B completion\-ignore\-case (Off)
|
||||
If set to \fBOn\fP, readline performs filename matching and completion
|
||||
in a case\-insensitive fashion.
|
||||
.TP
|
||||
.B completion\-query\-items (100)
|
||||
This determines when the user is queried about viewing
|
||||
|
@ -346,7 +393,7 @@ the value of
|
|||
also affects the default keymap.
|
||||
.TP
|
||||
.B mark\-directories (On)
|
||||
If set to \fBOn\fP, completed directory names have a slash
|
||||
If set to \fBOn\fP, complete<d directory names have a slash
|
||||
appended.
|
||||
.TP
|
||||
.B mark\-modified\-lines (Off)
|
||||
|
@ -363,6 +410,10 @@ If set to \fBOn\fP, readline will display characters with the
|
|||
eighth bit set directly rather than as a meta-prefixed escape
|
||||
sequence.
|
||||
.TP
|
||||
.B print\-completions\-horizontally (Off)
|
||||
If set to \fBOn\fP, readline will display completions with matches
|
||||
sorted horizontally in alphabetical order, rather than down the screen.
|
||||
.TP
|
||||
.B show\-all\-if\-ambiguous (Off)
|
||||
This alters the default behavior of the completion functions. If
|
||||
set to
|
||||
|
@ -380,7 +431,7 @@ completions.
|
|||
Readline implements a facility similar in spirit to the conditional
|
||||
compilation features of the C preprocessor which allows key
|
||||
bindings and variable settings to be performed as the result
|
||||
of tests. There are three parser directives used.
|
||||
of tests. There are four parser directives used.
|
||||
.IP \fB$if\fP
|
||||
The
|
||||
.B $if
|
||||
|
@ -417,6 +468,7 @@ file can test for a particular value.
|
|||
This could be used to bind key sequences to functions useful for
|
||||
a specific program. For instance, the following command adds a
|
||||
key sequence that quotes the current or previous word in Bash:
|
||||
.sp 1
|
||||
.RS
|
||||
.nf
|
||||
\fB$if\fP bash
|
||||
|
@ -427,11 +479,21 @@ key sequence that quotes the current or previous word in Bash:
|
|||
.RE
|
||||
.RE
|
||||
.IP \fB$endif\fP
|
||||
This command, as you saw in the previous example, terminates an
|
||||
This command, as seen in the previous example, terminates an
|
||||
\fB$if\fP command.
|
||||
.IP \fB$else\fP
|
||||
Commands in this branch of the \fB$if\fP directive are executed if
|
||||
the test fails.
|
||||
.IP \fB$include\fP
|
||||
This directive takes a single filename as an argument and reads commands
|
||||
and bindings from that file. For example, the following directive
|
||||
would read \fI/etc/inputrc\fP:
|
||||
.sp 1
|
||||
.RS
|
||||
.nf
|
||||
\fB$include\fP \^ \fI/etc/inputrc\fP
|
||||
.fi
|
||||
.RE
|
||||
.SH SEARCHING
|
||||
.PP
|
||||
Readline provides commands for searching through the command history
|
||||
|
@ -464,7 +526,7 @@ the line, thereby executing the command from the history list.
|
|||
.PP
|
||||
Non-incremental searches read the entire search string before starting
|
||||
to search for matching history lines. The search string may be
|
||||
typed by the user or part of the contents of the current line.
|
||||
typed by the user or be part of the contents of the current line.
|
||||
.SH EDITING COMMANDS
|
||||
.PP
|
||||
The following is a list of the names of the commands and the default
|
||||
|
@ -567,6 +629,8 @@ yank\-last\-arg (M\-.\^, M\-_\^)
|
|||
Insert the last argument to the previous command (the last word of
|
||||
the previous history entry). With an argument,
|
||||
behave exactly like \fByank\-nth\-arg\fP.
|
||||
Successive calls to \fByank\-last\-arg\fP move back through the history
|
||||
list, inserting the last argument of each line in turn.
|
||||
.PD
|
||||
.SS Commands for Changing Text
|
||||
.PP
|
||||
|
@ -575,9 +639,7 @@ behave exactly like \fByank\-nth\-arg\fP.
|
|||
.B delete\-char (C\-d)
|
||||
Delete the character under the cursor. If point is at the
|
||||
beginning of the line, there are no characters in the line, and
|
||||
the last character typed was not
|
||||
.BR C\-d ,
|
||||
then return
|
||||
the last character typed was not bound to \fBBdelete\-char\fP, then return
|
||||
.SM
|
||||
.BR EOF .
|
||||
.TP
|
||||
|
@ -606,15 +668,15 @@ moving the cursor over that word as well.
|
|||
.TP
|
||||
.B upcase\-word (M\-u)
|
||||
Uppercase the current (or following) word. With a negative argument,
|
||||
do the previous word, but do not move point.
|
||||
uppercase the previous word, but do not move point.
|
||||
.TP
|
||||
.B downcase\-word (M\-l)
|
||||
Lowercase the current (or following) word. With a negative argument,
|
||||
do the previous word, but do not move point.
|
||||
lowercase the previous word, but do not move point.
|
||||
.TP
|
||||
.B capitalize\-word (M\-c)
|
||||
Capitalize the current (or following) word. With a negative argument,
|
||||
do the previous word, but do not move point.
|
||||
capitalize the previous word, but do not move point.
|
||||
.PD
|
||||
.SS Killing and Yanking
|
||||
.PP
|
||||
|
@ -628,6 +690,7 @@ Kill backward to the beginning of the line.
|
|||
.TP
|
||||
.B unix\-line\-discard (C\-u)
|
||||
Kill backward from point to the beginning of the line.
|
||||
The killed text is saved on the kill-ring.
|
||||
.\" There is no real difference between this and backward-kill-line
|
||||
.TP
|
||||
.B kill\-whole\-line
|
||||
|
@ -660,9 +723,11 @@ Copy the text in the region to the kill buffer.
|
|||
.TP
|
||||
.B copy\-backward\-word
|
||||
Copy the word before point to the kill buffer.
|
||||
The word boundaries are the same as \fBbackward\-word\fP.
|
||||
.TP
|
||||
.B copy\-forward\-word
|
||||
Copy the word following point to the kill buffer.
|
||||
The word boundaries are the same as \fBforward\-word\fP.
|
||||
.TP
|
||||
.B yank (C\-y)
|
||||
Yank the top of the kill ring into the buffer at the cursor.
|
||||
|
@ -720,6 +785,19 @@ List the possible completions of the text before point.
|
|||
Insert all completions of the text before point
|
||||
that would have been generated by
|
||||
\fBpossible\-completions\fP.
|
||||
.TP
|
||||
.B menu\-complete
|
||||
Similar to \fBcomplete\fP, but replaces the word to be completed
|
||||
with a single match from the list of possible completions.
|
||||
Repeated execution of \fBmenu\-complete\fP steps through the list
|
||||
of possible completions, inserting each match in turn.
|
||||
At the end of the list of completions, the bell is rung and the
|
||||
original text is restored.
|
||||
An argument of \fIn\fP moves \fIn\fP positions forward in the list
|
||||
of matches; a negative argument may be used to move backward
|
||||
through the list.
|
||||
This command is intended to be bound to \fBTAB\fP, but is unbound
|
||||
by default.
|
||||
.PD
|
||||
.SS Keyboard Macros
|
||||
.PP
|
||||
|
@ -765,7 +843,7 @@ is equivalent to
|
|||
Incremental undo, separately remembered for each line.
|
||||
.TP
|
||||
.B revert\-line (M\-r)
|
||||
Undo all changes made to this line. This is like typing the
|
||||
Undo all changes made to this line. This is like executing the
|
||||
.B undo
|
||||
command enough times to return the line to its initial state.
|
||||
.TP
|
||||
|
@ -795,15 +873,6 @@ variable is inserted at the beginning of the current line, and the line
|
|||
is accepted as if a newline had been typed. This makes the current line
|
||||
a shell comment.
|
||||
.TP
|
||||
.B glob\-expand\-word (C\-x *)
|
||||
The word before point is treated as a pattern for pathname expansion,
|
||||
and the list of matching file names is inserted, replacing the word.
|
||||
.TP
|
||||
.B glob\-list\-expansions (C\-x g)
|
||||
The list of expansions that would have been generated by
|
||||
.B glob\-expand\-word
|
||||
is inserted into the line, replacing the word before point.
|
||||
.TP
|
||||
.B dump\-functions
|
||||
Print all of the functions and their key bindings to the
|
||||
readline output stream. If a numeric argument is supplied,
|
||||
|
@ -1097,10 +1166,10 @@ version of the
|
|||
library that you have.
|
||||
.PP
|
||||
Once you have determined that a bug actually exists, mail a
|
||||
bug report to \fIbug\-readline\fP@\fIprep.ai.MIT.Edu\fP.
|
||||
bug report to \fIbug\-readline\fP@\fIgnu.org\fP.
|
||||
If you have a fix, you are welcome to mail that
|
||||
as well! Suggestions and `philosophical' bug reports may be mailed
|
||||
to \fPbug-readline\fP@\fIprep.ai.MIT.Edu\fP or posted to the Usenet
|
||||
to \fPbug-readline\fP@\fIgnu.org\fP or posted to the Usenet
|
||||
newsgroup
|
||||
.BR gnu.bash.bug .
|
||||
.PP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue