commit bash-20040128 snapshot

This commit is contained in:
Chet Ramey
2011-12-03 12:53:59 -05:00
parent 12d937f9af
commit 113d85a4ab
30 changed files with 2740 additions and 2410 deletions
+7
View File
@@ -130,6 +130,13 @@ c. New application variable, rl_completion_found_quote, set to a non-zero
value if readline determines that the word to be completed is quoted.
Set before readline calls any application completion function.
d. New function hook, rl_completion_word_break_hook, called when readline
needs to break a line into words when completion is attempted. Allows
the word break characters to vary based on position in the line.
e. New bindable command: unix-filename-rubout. Does the same thing as
unix-word-rubout, but adds `/' to the set of word delimiters.
------------------------------------------------------------------------------
This document details the changes between this version, bash-3.0-alpha,
and the previous version, bash-2.05b-release.
+28
View File
@@ -9073,3 +9073,31 @@ shell.c
subst.c
- in string_list_internal, short-circuit right away to savestring()
if the list only has a single element
1/28
----
lib/readline/rltypedefs.h
- new set of typedefs for functions returning char * with various
arguments (standard set)
lib/readline/complete.c
- new function pointer, rl_completion_word_break_hook, called by
_rl_find_completion_word, used to set word break characters at
completion time, allowing them to be position-based
lib/readline/doc/rltech.texi
- documented rl_completion_word_break_hook
lib/readline/kill.c
- added new rl_unix_filename_rubout, which deletes one filename
component in a Unix pathname backward (delimiters are whitespace
and `/')
lib/readline/readline.h
- extern declaration for rl_unix_filename_rubout
lib/readline/funmap.c
- new bindable readline command `unix-filename-rubout'
lib/readline/doc/{readline.3,rluser.texi},doc/bash.1
- documented `unix-filename-rubout'
+17 -4
View File
@@ -115,12 +115,18 @@ gg. New `set -o pipefail' option that causes a pipeline to return a failure
status if any of the processes in the pipeline fail, not just the last
one.
hh. printf builtin understands two new escape sequences: \" and \?.
hh. printf builtin understands two new escape sequences: \" and \?.
ii. `echo -e' understands two new escape sequences: \" and \?.
ii. `echo -e' understands two new escape sequences: \" and \?.
jj. The GNU `gettext' package and libintl have been integrated; the shell's
messages can be translated into different languages.
jj. The GNU `gettext' package and libintl have been integrated; the shell's
messages can be translated into different languages.
kk. The `\W' prompt expansion now abbreviates $HOME as `~', like `\w'.
ll. The error message printed when bash cannot open a shell script supplied
as argument 1 now includes the name of the shell, to better identify
the error as coming from bash.
2. New Features in Readline
@@ -165,6 +171,13 @@ k. New application variable, rl_completion_found_quote, set to a non-zero
value if readline determines that the word to be completed is quoted.
Set before readline calls any application completion function.
l. New function hook, rl_completion_word_break_hook, called when readline
needs to break a line into words when completion is attempted. Allows
the word break characters to vary based on position in the line.
m. New bindable command: unix-filename-rubout. Does the same thing as
unix-word-rubout, but adds `/' to the set of word delimiters.
-------------------------------------------------------------------------------
This is a terse description of the new features added to bash-2.05b since
the release of bash-2.05a. As always, the manual page (doc/bash.1) is
+1 -1
View File
@@ -1 +1 @@
/usr/local/build/bash/bash-current/doc/Makefile
/usr/local/build/chet/bash/bash-current/doc/Makefile
+7 -3
View File
@@ -2823,6 +2823,10 @@ RREEAADDLLIINNEE
uunniixx--wwoorrdd--rruubboouutt ((CC--ww))
Kill the word behind point, using white space as a word bound-
ary. The killed text is saved on the kill-ring.
uunniixx--ffiilleennaammee--rruubboouutt
Kill the word behind point, using white space and the slash
character as the word boundaries. The killed text is saved on
the kill-ring.
ddeelleettee--hhoorriizzoonnttaall--ssppaaccee ((MM--\\))
Delete all spaces and tabs around point.
kkiillll--rreeggiioonn
@@ -3269,8 +3273,8 @@ HHIISSTTOORRYY EEXXPPAANNSSIIOONN
line. Any delimiter can be used in place of /. The final
delimiter is optional if it is the last character of the event
line. The delimiter may be quoted in _o_l_d and _n_e_w with a single
backslash. If & appears in _n_e_w, it is replaced by _o_l_d. A sin-
gle backslash will quote the &. If _o_l_d is null, it is set to
backslash. If & appears in _n_e_w, it is replaced by _o_l_d. A
single backslash will quote the &. If _o_l_d is null, it is set to
the last _o_l_d substituted, or, if no previous history substitu-
tions took place, the last _s_t_r_i_n_g in a !!??_s_t_r_i_n_g[[??]] search.
&& Repeat the previous substitution.
@@ -4769,4 +4773,4 @@ BBUUGGSS
GNU Bash-3.0 2004 Jan 24 BASH(1)
GNU Bash-3.0 2004 Jan 28 BASH(1)
+7 -2
View File
@@ -6,12 +6,12 @@
.\" Case Western Reserve University
.\" chet@po.CWRU.Edu
.\"
.\" Last Change: Sat Jan 24 13:18:08 EST 2004
.\" Last Change: Wed Jan 28 15:49:29 EST 2004
.\"
.\" bash_builtins, strip all but Built-Ins section
.if \n(zZ=1 .ig zZ
.if \n(zY=1 .ig zY
.TH BASH 1 "2004 Jan 24" "GNU Bash-3.0"
.TH BASH 1 "2004 Jan 28" "GNU Bash-3.0"
.\"
.\" There's some problem with having a `@'
.\" in a tagged paragraph with the BSD man macros.
@@ -5003,6 +5003,11 @@ Word boundaries are the same as those used by \fBbackward\-word\fP.
Kill the word behind point, using white space as a word boundary.
The killed text is saved on the kill-ring.
.TP
.B unix\-filename\-rubout
Kill the word behind point, using white space and the slash character
as the word boundaries.
The killed text is saved on the kill-ring.
.TP
.B delete\-horizontal\-space (M\-\e)
Delete all spaces and tabs around point.
.TP
+12 -5
View File
@@ -2,7 +2,7 @@
<TITLE>BASH(1) Manual Page</TITLE>
</HEAD>
<BODY><TABLE WIDTH=100%>
<TH ALIGN=LEFT>BASH(1)<TH ALIGN=CENTER>2003 Nov 13<TH ALIGN=RIGHT>BASH(1)
<TH ALIGN=LEFT>BASH(1)<TH ALIGN=CENTER>2004 Jan 28<TH ALIGN=RIGHT>BASH(1)
</TABLE>
<BR><A HREF="#index">Index</A>
<HR>
@@ -40,7 +40,7 @@ bash - GNU Bourne-Again SHell
<H2>COPYRIGHT</H2>
Bash is Copyright &#169; 1989-2003 by the Free Software Foundation, Inc.
Bash is Copyright &#169; 1989-2004 by the Free Software Foundation, Inc.
<A NAME="lbAE">&nbsp;</A>
<H2>DESCRIPTION</H2>
@@ -5404,11 +5404,12 @@ the release of <B>bash</B>, version + patchelvel (e.g., 2.00.0)
<DT><B>\w</B>
<DD>
the current working directory
the current working directory, with <B>$HOME</B> abbreviated with a tilde
<DT><B>\W</B>
<DD>
the basename of the current working directory
the basename of the current working directory, with <B>$HOME</B>
abbreviated with a tilde
<DT><B>\!</B>
<DD>
@@ -6514,6 +6515,12 @@ Word boundaries are the same as those used by <B>backward-word</B>.
<DD>
Kill the word behind point, using white space as a word boundary.
The killed text is saved on the kill-ring.
<DT><B>unix-filename-rubout</B>
<DD>
Kill the word behind point, using white space and the slash character
as the word boundaries.
The killed text is saved on the kill-ring.
<DT><B>delete-horizontal-space (M-\)</B>
<DD>
@@ -11334,6 +11341,6 @@ Array variables may not (yet) be exported.
</DL>
<HR>
This document was created by man2html from bash.1.<BR>
Time: 08 January 2004 10:37:11 EST
Time: 28 January 2004 15:50:27 EST
</BODY>
</HTML>
+1434 -1428
View File
File diff suppressed because it is too large Load Diff
BIN
View File
Binary file not shown.
+9 -8
View File
@@ -37,21 +37,22 @@
\entry{kill-word (M-d)}{98}{\code {kill-word (M-d)}}
\entry{backward-kill-word (M-DEL)}{98}{\code {backward-kill-word (M-\key {DEL})}}
\entry{unix-word-rubout (C-w)}{98}{\code {unix-word-rubout (C-w)}}
\entry{unix-filename-rubout ()}{98}{\code {unix-filename-rubout ()}}
\entry{delete-horizontal-space ()}{98}{\code {delete-horizontal-space ()}}
\entry{kill-region ()}{98}{\code {kill-region ()}}
\entry{copy-region-as-kill ()}{98}{\code {copy-region-as-kill ()}}
\entry{copy-backward-word ()}{98}{\code {copy-backward-word ()}}
\entry{copy-forward-word ()}{98}{\code {copy-forward-word ()}}
\entry{yank (C-y)}{98}{\code {yank (C-y)}}
\entry{yank-pop (M-y)}{98}{\code {yank-pop (M-y)}}
\entry{yank (C-y)}{99}{\code {yank (C-y)}}
\entry{yank-pop (M-y)}{99}{\code {yank-pop (M-y)}}
\entry{digit-argument (M-0, M-1, ...{} M--)}{99}{\code {digit-argument (\kbd {M-0}, \kbd {M-1}, \dots {} \kbd {M--})}}
\entry{universal-argument ()}{99}{\code {universal-argument ()}}
\entry{complete (TAB)}{99}{\code {complete (\key {TAB})}}
\entry{possible-completions (M-?)}{99}{\code {possible-completions (M-?)}}
\entry{insert-completions (M-*)}{99}{\code {insert-completions (M-*)}}
\entry{menu-complete ()}{99}{\code {menu-complete ()}}
\entry{delete-char-or-list ()}{99}{\code {delete-char-or-list ()}}
\entry{complete-filename (M-/)}{99}{\code {complete-filename (M-/)}}
\entry{delete-char-or-list ()}{100}{\code {delete-char-or-list ()}}
\entry{complete-filename (M-/)}{100}{\code {complete-filename (M-/)}}
\entry{possible-filename-completions (C-x /)}{100}{\code {possible-filename-completions (C-x /)}}
\entry{complete-username (M-~)}{100}{\code {complete-username (M-~)}}
\entry{possible-username-completions (C-x ~)}{100}{\code {possible-username-completions (C-x ~)}}
@@ -64,7 +65,7 @@
\entry{dynamic-complete-history (M-TAB)}{100}{\code {dynamic-complete-history (M-\key {TAB})}}
\entry{complete-into-braces (M-{\tt \char 123})}{100}{\code {complete-into-braces (M-{\tt \char 123})}}
\entry{start-kbd-macro (C-x ()}{100}{\code {start-kbd-macro (C-x ()}}
\entry{end-kbd-macro (C-x ))}{100}{\code {end-kbd-macro (C-x ))}}
\entry{end-kbd-macro (C-x ))}{101}{\code {end-kbd-macro (C-x ))}}
\entry{call-last-kbd-macro (C-x e)}{101}{\code {call-last-kbd-macro (C-x e)}}
\entry{re-read-init-file (C-x C-r)}{101}{\code {re-read-init-file (C-x C-r)}}
\entry{abort (C-g)}{101}{\code {abort (C-g)}}
@@ -77,7 +78,7 @@
\entry{exchange-point-and-mark (C-x C-x)}{101}{\code {exchange-point-and-mark (C-x C-x)}}
\entry{character-search (C-])}{101}{\code {character-search (C-])}}
\entry{character-search-backward (M-C-])}{101}{\code {character-search-backward (M-C-])}}
\entry{insert-comment (M-#)}{101}{\code {insert-comment (M-#)}}
\entry{insert-comment (M-#)}{102}{\code {insert-comment (M-#)}}
\entry{dump-functions ()}{102}{\code {dump-functions ()}}
\entry{dump-variables ()}{102}{\code {dump-variables ()}}
\entry{dump-macros ()}{102}{\code {dump-macros ()}}
@@ -87,8 +88,8 @@
\entry{display-shell-version (C-x C-v)}{102}{\code {display-shell-version (C-x C-v)}}
\entry{shell-expand-line (M-C-e)}{102}{\code {shell-expand-line (M-C-e)}}
\entry{history-expand-line (M-^)}{102}{\code {history-expand-line (M-^)}}
\entry{magic-space ()}{102}{\code {magic-space ()}}
\entry{alias-expand-line ()}{102}{\code {alias-expand-line ()}}
\entry{magic-space ()}{103}{\code {magic-space ()}}
\entry{alias-expand-line ()}{103}{\code {alias-expand-line ()}}
\entry{history-and-alias-expand-line ()}{103}{\code {history-and-alias-expand-line ()}}
\entry{insert-last-argument (M-. or M-_)}{103}{\code {insert-last-argument (M-. or M-_)}}
\entry{operate-and-get-next (C-o)}{103}{\code {operate-and-get-next (C-o)}}
+113 -1
View File
@@ -1,4 +1,116 @@
\initial {A}
\entry {\code {abort (C-g)}}{101}
\entry {\code {accept-line (Newline or Return)}}{95}
\entry {\code {alias-expand-line ()}}{102
\entry {\code {alias-expand-line ()}}{103}
\initial {B}
\entry {\code {backward-char (C-b)}}{95}
\entry {\code {backward-delete-char (Rubout)}}{97}
\entry {\code {backward-kill-line (C-x Rubout)}}{98}
\entry {\code {backward-kill-word (M-\key {DEL})}}{98}
\entry {\code {backward-word (M-b)}}{95}
\entry {\code {beginning-of-history (M-<)}}{96}
\entry {\code {beginning-of-line (C-a)}}{95}
\initial {C}
\entry {\code {call-last-kbd-macro (C-x e)}}{101}
\entry {\code {capitalize-word (M-c)}}{97}
\entry {\code {character-search (C-])}}{101}
\entry {\code {character-search-backward (M-C-])}}{101}
\entry {\code {clear-screen (C-l)}}{95}
\entry {\code {complete (\key {TAB})}}{99}
\entry {\code {complete-command (M-!)}}{100}
\entry {\code {complete-filename (M-/)}}{100}
\entry {\code {complete-hostname (M-@)}}{100}
\entry {\code {complete-into-braces (M-{\tt \char 123})}}{100}
\entry {\code {complete-username (M-~)}}{100}
\entry {\code {complete-variable (M-$)}}{100}
\entry {\code {copy-backward-word ()}}{98}
\entry {\code {copy-forward-word ()}}{98}
\entry {\code {copy-region-as-kill ()}}{98}
\initial {D}
\entry {\code {delete-char (C-d)}}{97}
\entry {\code {delete-char-or-list ()}}{100}
\entry {\code {delete-horizontal-space ()}}{98}
\entry {\code {digit-argument (\kbd {M-0}, \kbd {M-1}, \dots {} \kbd {M--})}}{99}
\entry {\code {display-shell-version (C-x C-v)}}{102}
\entry {\code {do-uppercase-version (M-a, M-b, M-\var {x}, \dots {})}}{101}
\entry {\code {downcase-word (M-l)}}{97}
\entry {\code {dump-functions ()}}{102}
\entry {\code {dump-macros ()}}{102}
\entry {\code {dump-variables ()}}{102}
\entry {\code {dynamic-complete-history (M-\key {TAB})}}{100}
\initial {E}
\entry {\code {edit-and-execute-command (C-xC-e)}}{103}
\entry {\code {end-kbd-macro (C-x ))}}{101}
\entry {\code {end-of-history (M->)}}{96}
\entry {\code {end-of-line (C-e)}}{95}
\entry {\code {exchange-point-and-mark (C-x C-x)}}{101}
\initial {F}
\entry {\code {forward-backward-delete-char ()}}{97}
\entry {\code {forward-char (C-f)}}{95}
\entry {\code {forward-search-history (C-s)}}{96}
\entry {\code {forward-word (M-f)}}{95}
\initial {G}
\entry {\code {glob-complete-word (M-g)}}{102}
\entry {\code {glob-expand-word (C-x *)}}{102}
\entry {\code {glob-list-expansions (C-x g)}}{102}
\initial {H}
\entry {\code {history-and-alias-expand-line ()}}{103}
\entry {\code {history-expand-line (M-^)}}{102}
\entry {\code {history-search-backward ()}}{96}
\entry {\code {history-search-forward ()}}{96}
\initial {I}
\entry {\code {insert-comment (M-#)}}{102}
\entry {\code {insert-completions (M-*)}}{99}
\entry {\code {insert-last-argument (M-. or M-_)}}{103}
\initial {K}
\entry {\code {kill-line (C-k)}}{98}
\entry {\code {kill-region ()}}{98}
\entry {\code {kill-whole-line ()}}{98}
\entry {\code {kill-word (M-d)}}{98}
\initial {M}
\entry {\code {magic-space ()}}{103}
\entry {\code {menu-complete ()}}{99}
\initial {N}
\entry {\code {next-history (C-n)}}{96}
\entry {\code {non-incremental-forward-search-history (M-n)}}{96}
\entry {\code {non-incremental-reverse-search-history (M-p)}}{96}
\initial {O}
\entry {\code {operate-and-get-next (C-o)}}{103}
\entry {\code {overwrite-mode ()}}{97}
\initial {P}
\entry {\code {possible-command-completions (C-x !)}}{100}
\entry {\code {possible-completions (M-?)}}{99}
\entry {\code {possible-filename-completions (C-x /)}}{100}
\entry {\code {possible-hostname-completions (C-x @)}}{100}
\entry {\code {possible-username-completions (C-x ~)}}{100}
\entry {\code {possible-variable-completions (C-x $)}}{100}
\entry {\code {prefix-meta (\key {ESC})}}{101}
\entry {\code {previous-history (C-p)}}{96}
\initial {Q}
\entry {\code {quoted-insert (C-q or C-v)}}{97}
\initial {R}
\entry {\code {re-read-init-file (C-x C-r)}}{101}
\entry {\code {redraw-current-line ()}}{95}
\entry {\code {reverse-search-history (C-r)}}{96}
\entry {\code {revert-line (M-r)}}{101}
\initial {S}
\entry {\code {self-insert (a, b, A, 1, !, \dots {})}}{97}
\entry {\code {set-mark (C-@)}}{101}
\entry {\code {shell-expand-line (M-C-e)}}{102}
\entry {\code {start-kbd-macro (C-x ()}}{100}
\initial {T}
\entry {\code {tilde-expand (M-&)}}{101}
\entry {\code {transpose-chars (C-t)}}{97}
\entry {\code {transpose-words (M-t)}}{97}
\initial {U}
\entry {\code {undo (C-_ or C-x C-u)}}{101}
\entry {\code {universal-argument ()}}{99}
\entry {\code {unix-filename-rubout ()}}{98}
\entry {\code {unix-line-discard (C-u)}}{98}
\entry {\code {unix-word-rubout (C-w)}}{98}
\entry {\code {upcase-word (M-u)}}{97}
\initial {Y}
\entry {\code {yank (C-y)}}{99}
\entry {\code {yank-last-arg (M-. or M-_)}}{96}
\entry {\code {yank-nth-arg (M-C-y)}}{96}
\entry {\code {yank-pop (M-y)}}{99}
+255 -245
View File
File diff suppressed because it is too large Load Diff
+161 -119
View File
@@ -1,10 +1,10 @@
This is bashref.info, produced by makeinfo version 4.2 from
/usr/src/local/bash/bash-20040121/doc/bashref.texi.
This is bashref.info, produced by makeinfo version 4.5 from
/usr/homes/chet/src/bash/src/doc/bashref.texi.
This text is a brief description of the features that are present in
the Bash shell (version 3.0-beta1, 24 January 2004).
the Bash shell (version 3.0-beta1, 28 January 2004).
This is Edition 3.0, last updated 24 January 2004, of `The GNU Bash
This is Edition 3.0, last updated 28 January 2004, of `The GNU Bash
Reference Manual', for `Bash', Version 3.0-beta1.
Copyright (C) 1988-2003 Free Software Foundation, Inc.
@@ -37,9 +37,9 @@ Bash Features
*************
This text is a brief description of the features that are present in
the Bash shell (version 3.0-beta1, 24 January 2004)..
the Bash shell (version 3.0-beta1, 28 January 2004)..
This is Edition 3.0, last updated 24 January 2004, of `The GNU Bash
This is Edition 3.0, last updated 28 January 2004, of `The GNU Bash
Reference Manual', for `Bash', Version 3.0-beta1.
Bash contains features that appear in other popular shells, and some
@@ -731,6 +731,7 @@ syntax, it may be replaced with one or more newlines.
command in LIST that is executed, or false if any of the
expressions is invalid.
The `break' and `continue' builtins (*note Bourne Shell Builtins::)
may be used to control loop execution.
@@ -895,6 +896,7 @@ Conditional Constructs
value of EXPRESSION1 is sufficient to determine the return value
of the entire conditional expression.

File: bashref.info, Node: Command Grouping, Prev: Conditional Constructs, Up: Compound Commands
@@ -1299,6 +1301,7 @@ the expanded value.
`~-N'
The string that would be displayed by `dirs -N'

File: bashref.info, Node: Shell Parameter Expansion, Next: Command Substitution, Prev: Tilde Expansion, Up: Shell Expansions
@@ -1445,6 +1448,7 @@ if the colon is omitted, the operator tests only for existence.
member of the array in turn, and the expansion is the resultant
list.

File: bashref.info, Node: Command Substitution, Next: Arithmetic Expansion, Prev: Shell Parameter Expansion, Up: Shell Expansions
@@ -1752,6 +1756,7 @@ redirections, as described in the following table:
integer port number or service name, Bash attempts to open a UDP
connection to the corresponding socket.
A failure to open or create a file causes the redirection to fail.
Redirecting Input
@@ -2710,6 +2715,7 @@ POSIX 1003.2 standard.
`-x KEYSEQ:SHELL-COMMAND'
Cause SHELL-COMMAND to be executed whenever KEYSEQ is entered.
The return status is zero unless an invalid option is supplied or
an error occurs.
@@ -3005,6 +3011,7 @@ POSIX 1003.2 standard.
`-u FD'
Read input from file descriptor FD.
`shopt'
shopt [-pqsu] [-o] [OPTNAME ...]
Toggle the values of variables controlling optional shell behavior.
@@ -3214,6 +3221,7 @@ POSIX 1003.2 standard.
If set, the `echo' builtin expands backslash-escape sequences
by default.
The return status when listing options is zero if all OPTNAMES are
enabled, non-zero otherwise. When setting or unsetting options,
the return status is zero unless an OPTNAME is not a valid shell
@@ -3307,6 +3315,7 @@ POSIX 1003.2 standard.
`-v'
The maximum amount of virtual memory available to the process.
If LIMIT is given, it is the new value of the specified resource;
the special LIMIT values `hard', `soft', and `unlimited' stand for
the current hard limit, the current soft limit, and no limit,
@@ -3327,6 +3336,7 @@ POSIX 1003.2 standard.
Remove each NAME from the list of aliases. If `-a' is supplied,
all aliases are removed. Aliases are described in *Note Aliases::.

File: bashref.info, Node: The Set Builtin, Next: Special Builtins, Prev: Bash Builtins, Up: Shell Builtin Commands
@@ -3673,6 +3683,7 @@ shell. In some cases, Bash assigns a default value to the variable.
`PS2'
The secondary prompt string. The default value is `> '.

File: bashref.info, Node: Bash Variables, Prev: Bourne Shell Variables, Up: Shell Variables
@@ -3765,6 +3776,7 @@ Variables::).
`BASH_VERSINFO[5]'
The value of `MACHTYPE'.
`BASH_VERSION'
The version number of the current instance of Bash.
@@ -4145,6 +4157,7 @@ Variables::).
The numeric real user id of the current user. This variable is
readonly.

File: bashref.info, Node: Bash Features, Next: Job Control, Prev: Shell Variables, Up: Top
@@ -4242,6 +4255,7 @@ the single-character options to be recognized.
Show version information for this instance of Bash on the standard
output and exit successfully.
There are several single-character options that may be supplied at
invocation which are not available with the `set' builtin.
@@ -4293,6 +4307,7 @@ invocation which are not available with the `set' builtin.
processing. Any arguments after the `--' are treated as filenames
and arguments.
A _login_ shell is one whose first character of argument zero is
`-', or one invoked with the `--login' option.
@@ -4684,6 +4699,7 @@ checked. If the FILE argument to one of the primaries is one of
greater than or equal to ARG2, respectively. ARG1 and ARG2 may be
positive or negative integers.

File: bashref.info, Node: Shell Arithmetic, Next: Aliases, Prev: Bash Conditional Expressions, Up: Bash Features
@@ -5000,6 +5016,7 @@ Directory Stack Builtins
Makes the current working directory be the top of the stack,
and then executes the equivalent of ``cd' DIR'. `cd's to DIR.

File: bashref.info, Node: Printing a Prompt, Next: The Restricted Shell, Prev: The Directory Stack, Up: Bash Features
@@ -5516,6 +5533,7 @@ Job Control Builtins
signal. The `-f' option means to suspend even if the shell is a
login shell.
When job control is not active, the `kill' and `wait' builtins do
not accept JOBSPEC arguments. They must be supplied process IDs.
@@ -5542,6 +5560,7 @@ Job Control Variables
a prefix of a stopped job's name; this provides functionality
analogous to the `%' job ID.

File: bashref.info, Node: Command Line Editing, Next: Installing Bash, Prev: Using History Interactively, Up: Top
@@ -5748,6 +5767,7 @@ available to be yanked back later, when you are typing another line.
Kill from the cursor to the previous whitespace. This is
different than `M-<DEL>' because the word boundaries differ.
Here is how to "yank" the text back into the line. Yanking means to
copy the most-recently-killed text from the kill buffer.
@@ -6025,6 +6045,7 @@ Variable Settings
appended to the filename when listing possible completions.
The default is `off'.
Key Bindings
The syntax for controlling key bindings in the init file is
simple. First you need to find the name of the command that you
@@ -6079,6 +6100,7 @@ Key Bindings
`<ESC> <[> <1> <1> <~>' is bound to insert the text `Function
Key 1'.
The following GNU Emacs style escape sequences are available when
specifying key sequences:
@@ -6144,6 +6166,7 @@ Key Bindings
the line:
"\C-x\\": "\\"

File: bashref.info, Node: Conditional Init Constructs, Next: Sample Init File, Prev: Readline Init File Syntax, Up: Readline Init File
@@ -6375,6 +6398,7 @@ Commands For Moving
`redraw-current-line ()'
Refresh the current line. By default, this is unbound.

File: bashref.info, Node: Commands For History, Next: Commands For Text, Prev: Commands For Moving, Up: Bindable Readline Commands
@@ -6445,6 +6469,7 @@ Commands For Manipulating The History
through the history list, inserting the last argument of each line
in turn.

File: bashref.info, Node: Commands For Text, Next: Commands For Killing, Prev: Commands For History, Up: Bindable Readline Commands
@@ -6509,6 +6534,7 @@ Commands For Changing Text
By default, this command is unbound.

File: bashref.info, Node: Commands For Killing, Next: Numeric Arguments, Prev: Commands For Text, Up: Bindable Readline Commands
@@ -6541,6 +6567,11 @@ Killing And Yanking
Kill the word behind point, using white space as a word boundary.
The killed text is saved on the kill-ring.
`unix-filename-rubout ()'
Kill the word behind point, using white space and the slash
character as the word boundaries. The killed text is saved on the
kill-ring.
`delete-horizontal-space ()'
Delete all spaces and tabs around point. By default, this is
unbound.
@@ -6684,6 +6715,7 @@ Letting Readline Type For You
completions enclosed within braces so the list is available to the
shell (*note Brace Expansion::).

File: bashref.info, Node: Keyboard Macros, Next: Miscellaneous Commands, Prev: Commands For Completion, Up: Bindable Readline Commands
@@ -6701,6 +6733,7 @@ Keyboard Macros
Re-execute the last keyboard macro defined, by making the
characters in the macro appear as if typed at the keyboard.

File: bashref.info, Node: Miscellaneous Commands, Prev: Keyboard Macros, Up: Bindable Readline Commands
@@ -6835,6 +6868,7 @@ Some Miscellaneous Commands
result as shell commands. Bash attempts to invoke `$FCEDIT',
`$EDITOR', and `emacs' as the editor, in that order.

File: bashref.info, Node: Readline vi Mode, Next: Programmable Completion, Prev: Bindable Readline Commands, Up: Command Line Editing
@@ -7167,6 +7201,7 @@ completion facilities.
for a NAME for which no specification exists, or an error occurs
adding a completion specification.

File: bashref.info, Node: Using History Interactively, Next: Command Line Editing, Prev: Job Control, Up: Top
@@ -7325,10 +7360,12 @@ and history file.
The ARGs are added to the end of the history list as a single
entry.
When any of the `-w', `-r', `-a', or `-n' options is used, if
FILENAME is given, then it is used as the history file. If not,
then the value of the `HISTFILE' variable is used.

File: bashref.info, Node: History Interaction, Prev: Bash History Builtins, Up: Using History Interactively
@@ -7418,6 +7455,7 @@ history list.
`!#'
The entire command line typed so far.

File: bashref.info, Node: Word Designators, Next: Modifiers, Prev: Event Designators, Up: History Interaction
@@ -7476,6 +7514,7 @@ line separated by single spaces.
`X-'
Abbreviates `X-$' like `X*', but omits the last word.
If a word designator is supplied without an event specification, the
previous command is used as the event.
@@ -7530,6 +7569,7 @@ more of the following modifiers, each preceded by a `:'.
`G'
Apply the following `s' modifier once to each word in the event.

File: bashref.info, Node: Installing Bash, Next: Reporting Bugs, Prev: Command Line Editing, Up: Top
@@ -7963,6 +8003,7 @@ does not provide the necessary support.
Specification, version 2. *Note Bash Builtins::, for a
description of the escape sequences that `echo' recognizes.
The file `config-top.h' contains C Preprocessor `#define' statements
for options which are not settable from `configure'. Some of these are
not meant to be changed; beware of the consequences if you do. Read
@@ -9076,6 +9117,7 @@ Function Index
* transpose-words (M-t): Commands For Text.
* undo (C-_ or C-x C-u): Miscellaneous Commands.
* universal-argument (): Numeric Arguments.
* unix-filename-rubout (): Commands For Killing.
* unix-line-discard (C-u): Commands For Killing.
* unix-word-rubout (C-w): Commands For Killing.
* upcase-word (M-u): Commands For Text.
@@ -9214,45 +9256,45 @@ Concept Index

Tag Table:
Node: Top1376
Node: Introduction3533
Node: What is Bash?3758
Node: What is a shell?4846
Node: Definitions7382
Node: Basic Shell Features10122
Node: Shell Syntax11340
Node: Shell Operation12364
Node: Quoting13649
Node: Escape Character14911
Node: Single Quotes15383
Node: Double Quotes15718
Node: ANSI-C Quoting16731
Node: Locale Translation17674
Node: Comments18557
Node: Shell Commands19162
Node: Simple Commands19923
Node: Pipelines20544
Node: Lists22410
Node: Compound Commands24032
Node: Looping Constructs24804
Node: Conditional Constructs27237
Node: Command Grouping34289
Node: Shell Functions35725
Node: Shell Parameters39990
Node: Positional Parameters41561
Node: Special Parameters42452
Node: Shell Expansions45110
Node: Brace Expansion47030
Node: Tilde Expansion49346
Node: Shell Parameter Expansion51677
Node: Command Substitution58930
Node: Arithmetic Expansion60252
Node: Process Substitution61093
Node: Word Splitting62130
Node: Filename Expansion63582
Node: Pattern Matching65706
Node: Quote Removal69027
Node: Redirections69313
Node: Top1371
Node: Introduction3528
Node: What is Bash?3753
Node: What is a shell?4841
Node: Definitions7377
Node: Basic Shell Features10117
Node: Shell Syntax11335
Node: Shell Operation12359
Node: Quoting13644
Node: Escape Character14906
Node: Single Quotes15378
Node: Double Quotes15713
Node: ANSI-C Quoting16726
Node: Locale Translation17669
Node: Comments18552
Node: Shell Commands19157
Node: Simple Commands19918
Node: Pipelines20539
Node: Lists22405
Node: Compound Commands24027
Node: Looping Constructs24799
Node: Conditional Constructs27233
Node: Command Grouping34286
Node: Shell Functions35722
Node: Shell Parameters39987
Node: Positional Parameters41558
Node: Special Parameters42449
Node: Shell Expansions45107
Node: Brace Expansion47027
Node: Tilde Expansion49343
Node: Shell Parameter Expansion51675
Node: Command Substitution58929
Node: Arithmetic Expansion60251
Node: Process Substitution61092
Node: Word Splitting62129
Node: Filename Expansion63581
Node: Pattern Matching65705
Node: Quote Removal69026
Node: Redirections69312
Node: Executing Commands76787
Node: Simple Command Expansion77454
Node: Command Search and Execution79375
@@ -9264,79 +9306,79 @@ Node: Shell Scripts88935
Node: Shell Builtin Commands91446
Node: Bourne Shell Builtins92876
Node: Bash Builtins109759
Node: The Set Builtin137876
Node: Special Builtins146094
Node: Shell Variables147066
Node: Bourne Shell Variables147502
Node: Bash Variables149478
Node: Bash Features168981
Node: Invoking Bash169863
Node: Bash Startup Files175672
Node: Interactive Shells180542
Node: What is an Interactive Shell?180944
Node: Is this Shell Interactive?181579
Node: Interactive Shell Behavior182385
Node: Bash Conditional Expressions185652
Node: Shell Arithmetic189071
Node: Aliases191811
Node: Arrays194314
Node: The Directory Stack197334
Node: Directory Stack Builtins198040
Node: Printing a Prompt200918
Node: The Restricted Shell203627
Node: Bash POSIX Mode205452
Node: Job Control212098
Node: Job Control Basics212564
Node: Job Control Builtins216844
Node: Job Control Variables221139
Node: Command Line Editing222288
Node: Introduction and Notation223286
Node: Readline Interaction224903
Node: Readline Bare Essentials226089
Node: Readline Movement Commands227869
Node: Readline Killing Commands228825
Node: Readline Arguments230733
Node: Searching231768
Node: Readline Init File233945
Node: Readline Init File Syntax234999
Node: Conditional Init Constructs246640
Node: Sample Init File249164
Node: Bindable Readline Commands252347
Node: Commands For Moving253546
Node: Commands For History254394
Node: Commands For Text257282
Node: Commands For Killing259942
Node: Numeric Arguments261892
Node: Commands For Completion263019
Node: Keyboard Macros266599
Node: Miscellaneous Commands267157
Node: Readline vi Mode272455
Node: Programmable Completion273364
Node: Programmable Completion Builtins279171
Node: Using History Interactively286532
Node: Bash History Facilities287211
Node: Bash History Builtins289901
Node: History Interaction293751
Node: Event Designators296302
Node: Word Designators297305
Node: Modifiers298934
Node: Installing Bash300330
Node: Basic Installation301464
Node: Compilers and Options304149
Node: Compiling For Multiple Architectures304883
Node: Installation Names306540
Node: Specifying the System Type307351
Node: Sharing Defaults308060
Node: Operation Controls308725
Node: Optional Features309676
Node: Reporting Bugs317947
Node: Major Differences From The Bourne Shell319122
Node: Copying This Manual334870
Node: GNU Free Documentation License335124
Node: Builtin Index357517
Node: Reserved Word Index361144
Node: Variable Index362620
Node: Function Index369613
Node: Concept Index374163
Node: The Set Builtin137881
Node: Special Builtins146099
Node: Shell Variables147071
Node: Bourne Shell Variables147507
Node: Bash Variables149484
Node: Bash Features168989
Node: Invoking Bash169871
Node: Bash Startup Files175682
Node: Interactive Shells180552
Node: What is an Interactive Shell?180954
Node: Is this Shell Interactive?181589
Node: Interactive Shell Behavior182395
Node: Bash Conditional Expressions185662
Node: Shell Arithmetic189082
Node: Aliases191822
Node: Arrays194325
Node: The Directory Stack197345
Node: Directory Stack Builtins198051
Node: Printing a Prompt200930
Node: The Restricted Shell203639
Node: Bash POSIX Mode205464
Node: Job Control212110
Node: Job Control Basics212576
Node: Job Control Builtins216856
Node: Job Control Variables221152
Node: Command Line Editing222302
Node: Introduction and Notation223300
Node: Readline Interaction224917
Node: Readline Bare Essentials226103
Node: Readline Movement Commands227883
Node: Readline Killing Commands228839
Node: Readline Arguments230748
Node: Searching231783
Node: Readline Init File233960
Node: Readline Init File Syntax235014
Node: Conditional Init Constructs246658
Node: Sample Init File249182
Node: Bindable Readline Commands252365
Node: Commands For Moving253564
Node: Commands For History254413
Node: Commands For Text257302
Node: Commands For Killing259963
Node: Numeric Arguments262093
Node: Commands For Completion263220
Node: Keyboard Macros266801
Node: Miscellaneous Commands267360
Node: Readline vi Mode272659
Node: Programmable Completion273568
Node: Programmable Completion Builtins279375
Node: Using History Interactively286737
Node: Bash History Facilities287416
Node: Bash History Builtins290106
Node: History Interaction293958
Node: Event Designators296509
Node: Word Designators297513
Node: Modifiers299143
Node: Installing Bash300540
Node: Basic Installation301674
Node: Compilers and Options304359
Node: Compiling For Multiple Architectures305093
Node: Installation Names306750
Node: Specifying the System Type307561
Node: Sharing Defaults308270
Node: Operation Controls308935
Node: Optional Features309886
Node: Reporting Bugs318158
Node: Major Differences From The Bourne Shell319333
Node: Copying This Manual335081
Node: GNU Free Documentation License335335
Node: Builtin Index357728
Node: Reserved Word Index361355
Node: Variable Index362831
Node: Function Index369824
Node: Concept Index374437

End Tag Table
+5 -5
View File
@@ -1,4 +1,4 @@
This is TeX, Version 3.14159 (Web2C 7.3.1) (format=tex 2001.2.12) 31 DEC 2003 12:47
This is TeX, Version 3.14159 (Web2C 7.3.1) (format=tex 2001.2.12) 28 JAN 2004 15:50
**/usr/homes/chet/src/bash/src/doc/bashref.texi
(/usr/homes/chet/src/bash/src/doc/bashref.texi (texinfo.tex
Loading texinfo [version 2003-02-03.16]: Basics,
@@ -292,7 +292,7 @@ gnored[]
.etc.
[93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103] [104]
Overfull \hbox (17.80585pt too wide) in paragraph at lines 1641--1641
Overfull \hbox (17.80585pt too wide) in paragraph at lines 1646--1646
[]@texttt complete [-abcdefgjksuv] [-o @textttsl comp-option@texttt ] [-A @tex
tttsl ac-tion@texttt ] [-G @textttsl glob-
@@ -305,7 +305,7 @@ tttsl ac-tion@texttt ] [-G @textttsl glob-
.etc.
[105] [106]
Underfull \hbox (badness 2753) in paragraph at lines 1737--1740
Underfull \hbox (badness 2753) in paragraph at lines 1742--1745
@texttt hostname[]@textrm Hostnames, as taken from the file spec-i-fied by
@hbox(7.60416+2.12917)x433.62, glue set 3.02202
@@ -357,10 +357,10 @@ Overfull \vbox (42.26959pt too high) has occurred while \output is active
Here is how much of TeX's memory you used:
1713 strings out of 13013
23227 string characters out of 97233
52395 words of memory out of 263001
52393 words of memory out of 263001
2577 multiletter control sequences out of 10000+0
31953 words of font info for 111 fonts, out of 400000 for 1000
19 hyphenation exceptions out of 1000
15i,8n,11p,273b,465s stack positions out of 300i,100n,500p,50000b,4000s
Output written on bashref.dvi (154 pages, 578740 bytes).
Output written on bashref.dvi (154 pages, 579212 bytes).
+573 -564
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -98,7 +98,7 @@
\subsecentry{Commands For Manipulating The History}{8}{4}{2}{95}
\subsecentry{Commands For Changing Text}{8}{4}{3}{96}
\subsecentry{Killing And Yanking}{8}{4}{4}{98}
\subsecentry{Specifying Numeric Arguments}{8}{4}{5}{98}
\subsecentry{Specifying Numeric Arguments}{8}{4}{5}{99}
\subsecentry{Letting Readline Type For You}{8}{4}{6}{99}
\subsecentry{Keyboard Macros}{8}{4}{7}{100}
\subsecentry{Some Miscellaneous Commands}{8}{4}{8}{101}
+4 -4
View File
@@ -1,6 +1,6 @@
%!PS-Adobe-3.0
%%Creator: groff version 1.18.1
%%CreationDate: Sun Jan 25 21:10:35 2004
%%CreationDate: Wed Jan 28 15:50:16 2004
%%DocumentNeededResources: font Times-Roman
%%+ font Times-Bold
%%+ font Times-Italic
@@ -189,11 +189,11 @@ setpacking
%%IncludeResource: font Palatino-Italic
%%IncludeResource: font Palatino-Bold
grops begin/DEFS 1 dict def DEFS begin/u{.001 mul}bind def end/RES 72
def/PL 841.89 def/LS false def/ENC0[/asciicircum/asciitilde/Scaron
/Zcaron/scaron/zcaron/Ydieresis/trademark/quotesingle/Euro/.notdef
def/PL 792 def/LS false def/ENC0[/asciicircum/asciitilde/Scaron/Zcaron
/scaron/zcaron/Ydieresis/trademark/quotesingle/Euro/.notdef/.notdef
/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef
/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef
/.notdef/.notdef/.notdef/space/exclam/quotedbl/numbersign/dollar/percent
/.notdef/.notdef/space/exclam/quotedbl/numbersign/dollar/percent
/ampersand/quoteright/parenleft/parenright/asterisk/plus/comma/hyphen
/period/slash/zero/one/two/three/four/five/six/seven/eight/nine/colon
/semicolon/less/equal/greater/question/at/A/B/C/D/E/F/G/H/I/J/K/L/M/N/O
+4 -4
View File
@@ -1,6 +1,6 @@
%!PS-Adobe-3.0
%%Creator: groff version 1.18.1
%%CreationDate: Sun Jan 25 21:10:36 2004
%%CreationDate: Wed Jan 28 15:50:16 2004
%%DocumentNeededResources: font Times-Roman
%%+ font Times-Bold
%%DocumentSuppliedResources: procset grops 1.18 1
@@ -177,11 +177,11 @@ setpacking
%%IncludeResource: font Times-Roman
%%IncludeResource: font Times-Bold
grops begin/DEFS 1 dict def DEFS begin/u{.001 mul}bind def end/RES 72
def/PL 841.89 def/LS false def/ENC0[/asciicircum/asciitilde/Scaron
/Zcaron/scaron/zcaron/Ydieresis/trademark/quotesingle/Euro/.notdef
def/PL 792 def/LS false def/ENC0[/asciicircum/asciitilde/Scaron/Zcaron
/scaron/zcaron/Ydieresis/trademark/quotesingle/Euro/.notdef/.notdef
/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef
/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef
/.notdef/.notdef/.notdef/space/exclam/quotedbl/numbersign/dollar/percent
/.notdef/.notdef/space/exclam/quotedbl/numbersign/dollar/percent
/ampersand/quoteright/parenleft/parenright/asterisk/plus/comma/hyphen
/period/slash/zero/one/two/three/four/five/six/seven/eight/nine/colon
/semicolon/less/equal/greater/question/at/A/B/C/D/E/F/G/H/I/J/K/L/M/N/O
+2 -2
View File
@@ -4,7 +4,7 @@ Copyright (C) 1988-2004 Free Software Foundation, Inc.
@set EDITION 3.0
@set VERSION 3.0-beta1
@set UPDATED 24 January 2004
@set UPDATED 28 January 2004
@set UPDATED-MONTH January 2004
@set LASTCHANGE Sat Jan 24 13:17:53 EST 2004
@set LASTCHANGE Wed Jan 28 15:50:08 EST 2004
+15 -4
View File
@@ -222,6 +222,11 @@ const char *rl_basic_quote_characters = "\"'";
rl_basic_word_break_characters. */
/*const*/ char *rl_completer_word_break_characters = (/*const*/ char *)NULL;
/* Hook function to allow an application to set the completion word
break characters before readline breaks up the line. Allows
position-dependent word break characters. */
rl_cpvfunc_t *rl_completion_word_break_hook = (rl_cpvfunc_t *)NULL;
/* List of characters which can be used to quote a substring of the line.
Completion occurs on the entire substring, and within the substring
rl_completer_word_break_characters are treated as any other character,
@@ -762,12 +767,18 @@ _rl_find_completion_word (fp, dp)
int *fp, *dp;
{
int scan, end, found_quote, delimiter, pass_next, isbrk;
char quote_char;
char quote_char, *brkchars;
end = rl_point;
found_quote = delimiter = 0;
quote_char = '\0';
brkchars = 0;
if (rl_completion_word_break_hook)
brkchars = (*rl_completion_word_break_hook) ();
if (brkchars == 0)
brkchars = rl_completer_word_break_characters;
if (rl_completer_quote_characters)
{
/* We have a list of characters which can be used in pairs to
@@ -839,7 +850,7 @@ _rl_find_completion_word (fp, dp)
{
scan = rl_line_buffer[rl_point];
if (strchr (rl_completer_word_break_characters, scan) == 0)
if (strchr (brkchars, scan) == 0)
continue;
/* Call the application-specific function to tell us whether
@@ -867,9 +878,9 @@ _rl_find_completion_word (fp, dp)
if (rl_char_is_quoted_p)
isbrk = (found_quote == 0 ||
(*rl_char_is_quoted_p) (rl_line_buffer, rl_point) == 0) &&
strchr (rl_completer_word_break_characters, scan) != 0;
strchr (brkchars, scan) != 0;
else
isbrk = strchr (rl_completer_word_break_characters, scan) != 0;
isbrk = strchr (brkchars, scan) != 0;
if (isbrk)
{
+9 -4
View File
@@ -6,9 +6,9 @@
.\" Case Western Reserve University
.\" chet@ins.CWRU.Edu
.\"
.\" Last Change: Mon Jun 9 17:37:22 EDT 2003
.\" Last Change: Wed Jan 28 15:43:53 EST 2004
.\"
.TH READLINE 3 "2003 December 9" "GNU Readline 5.0"
.TH READLINE 3 "2004 January 28" "GNU Readline 5.0"
.\"
.\" File Name macro. This used to be `.PN', for Path Name,
.\" but Sun doesn't seem to like that very much.
@@ -34,8 +34,8 @@ readline \- get a line from a user with editing
\fBreadline\fP (\fIconst char *prompt\fP);
.fi
.SH COPYRIGHT
.if n Readline is Copyright (C) 1989\-2002 by the Free Software Foundation, Inc.
.if t Readline is Copyright \(co 1989\-2002 by the Free Software Foundation, Inc.
.if n Readline is Copyright (C) 1989\-2004 by the Free Software Foundation, Inc.
.if t Readline is Copyright \(co 1989\-2004 by the Free Software Foundation, Inc.
.SH DESCRIPTION
.LP
.B readline
@@ -797,6 +797,11 @@ Word boundaries are the same as those used by \fBbackward\-word\fP.
Kill the word behind point, using white space as a word boundary.
The killed text is saved on the kill-ring.
.TP
.B unix\-filename\-rubout
Kill the word behind point, using white space and the slash character
as the word boundaries.
The killed text is saved on the kill-ring.
.TP
.B delete\-horizontal\-space (M\-\e)
Delete all spaces and tabs around point.
.TP
+10 -1
View File
@@ -8,7 +8,7 @@ This document describes the GNU Readline Library, a utility for aiding
in the consitency of user interface across discrete programs that need
to provide a command line interface.
Copyright (C) 1988-2002 Free Software Foundation, Inc.
Copyright (C) 1988-2004 Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim copies of
this manual provided the copyright notice and this permission notice
@@ -1676,6 +1676,15 @@ The list of characters that signal a break between words for
@code{rl_basic_word_break_characters}.
@end deftypevar
@deftypevar {rl_cpvfunc_t *} rl_completion_word_break_hook
If non-zero, this is the address of a function to call when Readline is
deciding where to separate words for word completion. It should return
a character string like @code{rl_completer_word_break_characters} to be
used to perform the current completion. The function may choose to set
@code{rl_completer_word_break_characters} itself. If the function
returns @code{NULL}, @code{rl_completer_word_break_characters} is used.
@end deftypevar
@deftypevar {const char *} rl_completer_quote_characters
A list of characters which can be used to quote a substring of the line.
Completion occurs on the entire substring, and within the substring
+6 -1
View File
@@ -10,7 +10,7 @@ use these features. There is a document entitled "readline.texinfo"
which contains both end-user and programmer documentation for the
GNU Readline Library.
Copyright (C) 1988-2002 Free Software Foundation, Inc.
Copyright (C) 1988-2004 Free Software Foundation, Inc.
Authored by Brian Fox and Chet Ramey.
@@ -1126,6 +1126,11 @@ Word boundaries are the same as @code{backward-word}.
Kill the word behind point, using white space as a word boundary.
The killed text is saved on the kill-ring.
@item unix-filename-rubout ()
Kill the word behind point, using white space and the slash character
as the word boundaries.
The killed text is saved on the kill-ring.
@item delete-horizontal-space ()
Delete all spaces and tabs around point. By default, this is unbound.
+2 -2
View File
@@ -4,7 +4,7 @@ Copyright (C) 1988-2004 Free Software Foundation, Inc.
@set EDITION 5.0
@set VERSION 5.0
@set UPDATED 15 January 2004
@set UPDATED 28 January 2004
@set UPDATED-MONTH January 2003
@set LASTCHANGE Thu Jan 15 09:05:10 EST 2004
@set LASTCHANGE Wed Jan 28 15:46:54 EST 2004
+1
View File
@@ -131,6 +131,7 @@ static FUNMAP default_funmap[] = {
{ "tty-status", rl_tty_status },
{ "undo", rl_undo_command },
{ "universal-argument", rl_universal_argument },
{ "unix-filename-rubout", rl_unix_filename_rubout },
{ "unix-line-discard", rl_unix_line_discard },
{ "unix-word-rubout", rl_unix_word_rubout },
{ "upcase-word", rl_upcase_word },
+41
View File
@@ -339,6 +339,47 @@ rl_unix_word_rubout (count, key)
if (rl_editing_mode == emacs_mode)
rl_mark = rl_point;
}
return 0;
}
/* This deletes one filename component in a Unix pathname. That is, it
deletes backward to directory separator (`/') or whitespace. */
int
rl_unix_filename_rubout (count, key)
int count, key;
{
int orig_point, c;
if (rl_point == 0)
rl_ding ();
else
{
orig_point = rl_point;
if (count <= 0)
count = 1;
while (count--)
{
c = rl_line_buffer[rl_point - 1];
while (rl_point && (whitespace (c) || c == '/'))
{
rl_point--;
c = rl_line_buffer[rl_point - 1];
}
while (rl_point && (whitespace (c) == 0) && c != '/')
{
rl_point--;
c = rl_line_buffer[rl_point - 1];
}
}
rl_kill_text (orig_point, rl_point);
if (rl_editing_mode == emacs_mode)
rl_mark = rl_point;
}
return 0;
}
+6
View File
@@ -160,6 +160,7 @@ extern int rl_kill_line PARAMS((int, int));
extern int rl_backward_kill_line PARAMS((int, int));
extern int rl_kill_full_line PARAMS((int, int));
extern int rl_unix_word_rubout PARAMS((int, int));
extern int rl_unix_filename_rubout PARAMS((int, int));
extern int rl_unix_line_discard PARAMS((int, int));
extern int rl_copy_region_to_kill PARAMS((int, int));
extern int rl_kill_region PARAMS((int, int));
@@ -614,6 +615,11 @@ extern const char *rl_basic_word_break_characters;
rl_basic_word_break_characters. */
extern /*const*/ char *rl_completer_word_break_characters;
/* Hook function to allow an application to set the completion word
break characters before readline breaks up the line. Allows
position-dependent word break characters. */
extern rl_cpvfunc_t *rl_completion_word_break_hook;
/* List of characters which can be used to quote a substring of the line.
Completion occurs on the entire substring, and within the substring
rl_completer_word_break_characters are treated as any other character,
+7 -1
View File
@@ -1,6 +1,6 @@
/* rltypedefs.h -- Type declarations for readline functions. */
/* Copyright (C) 2000 Free Software Foundation, Inc.
/* Copyright (C) 2000-2004 Free Software Foundation, Inc.
This file is part of the GNU Readline Library, a library for
reading lines of text with interactive input and history editing.
@@ -79,6 +79,12 @@ typedef void rl_voidfunc_t PARAMS((void));
typedef void rl_vintfunc_t PARAMS((int));
typedef void rl_vcpfunc_t PARAMS((char *));
typedef void rl_vcppfunc_t PARAMS((char **));
typedef char *rl_cpvfunc_t PARAMS((void));
typedef char *rl_cpifunc_t PARAMS((int));
typedef char *rl_cpcpfunc_t PARAMS((char *));
typedef char *rl_cpcppfunc_t PARAMS((char **));
#endif /* _RL_FUNCTION_TYPEDEF */
#ifdef __cplusplus
+1 -1
View File
@@ -1,4 +1,4 @@
BUILD_DIR=/usr/local/build/bash/bash-current
BUILD_DIR=/usr/local/build/chet/bash/bash-current
THIS_SH=$BUILD_DIR/bash
PATH=$PATH:$BUILD_DIR
+2
View File
@@ -3,5 +3,7 @@ echo "warning: produce diff output." >&2
echo "warning: if the text of the error messages concerning \`notthere' or" >&2
echo "warning: \`/tmp/bash-notthere' not being found or \`/' being a directory" >&2
echo "warning: produce diff output, please do not consider this a test failure" >&2
echo "warning: if diff output differing only in the location of the bash" >&2
echo "warning: binary appears, please do not consider this a test failure" >&2
${THIS_SH} ./execscript > /tmp/xx 2>&1
diff /tmp/xx exec.right && rm -f /tmp/xx