commit bash-20051027 snapshot

This commit is contained in:
Chet Ramey
2011-12-03 13:52:48 -05:00
parent 7027abcba9
commit bc7bed5099
43 changed files with 19531 additions and 11461 deletions
+1 -9
View File
@@ -1,9 +1 @@
break maybe_make_export_env
r --norc
qui
break maybe_make_export_env
r
where
p export_env
p export_env_size
qui
quit
+59
View File
@@ -1,3 +1,62 @@
This document details the changes between this version, bash-3.1-rc1,
and the previous version, bash-3.1-beta1.
1. Changes to Bash
a. Fixed a bug that could cause core dumps due of accessing the current
pipeline while in the middle of modifying it.
b. Fixed a bug that caused pathnames with backslashes still quoting characters
to be passed to opendir().
c. Command word completion now obeys the setting of completion-ignore-case.
d. Fixed a problem with redirection that caused file descriptors greater than
2 to be inappropriately marked as close-on-exec.
e. In Posix mode, after `wait' is called to wait for a particular process
explicitly, that process is removed from the list of processes known to
the shell, and subsequent attempts to wait for it return errors.
f. Fixed a bug that caused extended pattern matching to incorrectly scan
backslash-escaped pattern characters.
g. Fixed a synchronization problem that could cause core dumps when handling
a SIGWINCH.
h. Fixed a bug that caused an unmatched backquote to be accepted without an
error when processing here documents.
i. Fixed a small memory leak in the `cd' builtin.
j. Fix for MacOS X so it gets the values for the HOSTTYPE, MACHTYPE, and
OSTYPE variables at build time, to support universal binaries.
k. Fixed a bug that could cause an exit trap to return the exit status of
the trap command rather than the status as it was before the trap was
run as the shell's exit status.
2. New Features in Bash
3. Changes to Readline
a. Fixed a bug that caused reversing the incremental search direction to
not work correctly.
b. Fixed the vi-mode `U' command to only undo up to the first time insert mode
was entered, as Posix specifies.
4. New Features in Readline
a. New application-callable auxiliary function, rl_variable_value, returns
a string corresponding to a readline variable's value.
b. When parsing inputrc files and variable binding commands, the parser
strips trailing whitespace from values assigned to boolean variables
before checking them.
------------------------------------------------------------------------------
This document details the changes between this version, bash-3.1-beta1,
and the previous version, bash-3.1-alpha1.
+183
View File
@@ -1,3 +1,177 @@
This document details the changes between this version, bash-3.1-rc1,
and the previous version, bash-3.1-beta1.
1. Changes to Bash
a. Fixed a bug that could cause core dumps due of accessing the current
pipeline while in the middle of modifying it.
b. Fixed a bug that caused pathnames with backslashes still quoting characters
to be passed to opendir().
c. Command word completion now obeys the setting of completion-ignore-case.
d. Fixed a problem with redirection that caused file descriptors greater than
2 to be inappropriately marked as close-on-exec.
e. In Posix mode, after `wait' is called to wait for a particular process
explicitly, that process is removed from the list of processes known to
the shell, and subsequent attempts to wait for it return errors.
f. Fixed a bug that caused extended pattern matching to incorrectly scan
backslash-escaped pattern characters.
g. Fixed a synchronization problem that could cause core dumps when handling
a SIGWINCH.
h. Fixed a bug that caused an unmatched backquote to be accepted without an
error when processing here documents.
i. Fixed a small memory leak in the `cd' builtin.
j. Fix for MacOS X so it gets the values for the HOSTTYPE, MACHTYPE, and
OSTYPE variables at build time, to support universal binaries.
2. New Features in Bash
3. Changes to Readline
a. Fixed a bug that caused reversing the incremental search direction to
not work correctly.
b. Fixed the vi-mode `U' command to only undo up to the first time insert mode
was entered, as Posix specifies.
4. New Features in Readline
a. New application-callable auxiliary function, rl_variable_value, returns
a string corresponding to a readline variable's value.
b. When parsing inputrc files and variable binding commands, the parser
strips trailing whitespace from values assigned to boolean variables
before checking them.
------------------------------------------------------------------------------
This document details the changes between this version, bash-3.1-beta1,
and the previous version, bash-3.1-alpha1.
1. Changes to Bash
a. Added some system-specific signal names.
b. Fixed a typo in the ulimit builtin to make `x' the right option to
maniuplate the limit on file locks.
c. Fixed a problem with using += to append to index 0 of an array variable
when not using subscript syntax.
d. A few changes to configure.in to remove calls to obsolete or outdated
macros.
e. Make sure changes to variables bash handles specially (e.g., LC_ALL) are
made when the variable is set in the temporary environment to a command.
f. Make sure changes to variables bash handles specially (e.g., LC_ALL) are
made when the variable is modified using `printf -v'.
g. The export environment is now remade on cygwin when HOME is changed, so
DLLs bash is linked against pick up the new value. This fixes problems
with tilde expansion when linking against and already-installed readline.
h. Small fix to the logic for performing tilde expansion in posix mode, so
expansion on the right-hand side of an assignment statement takes place.
i. Fixed a bug that prevented redirections associated with a shell function
from being executed when in a subshell.
j. Fixed `source' and `.' builtins to not require an executable file when
searching $PATH for a file to source.
k. Fixed a bug that caused incorrect word splitting in a function when IFS
was declared local, then unset.
l. Fixed a problem with the `kill' builtin that prevented sending signals
to a process group under certain circumstances when providing a pid < 0.
m. When in POSIX mode, `pwd' now checks that the value it prints is the same
directory as `.', even when displaying $PWD.
n. Fixed a problem with the `read' builtin when reading a script from standard
input and reading data from the same file.
o. Fixed a problem with the `type' and `command' builtins that caused absolute
pathnames to be displayed incorrectly.
p. Some changes to the `bg' builtin for POSIX conformance.
q. The `fc' builtin now removes the `fc' command that caused it to invoke an
editor on specified history entries from the history entirely, rather than
simply ignoring it.
r. When in POSIX mode, the `v' command in vi editing mode simply invokes vi
on the current command, rather than checking $FCEDIT and $EDITOR.
s. Fixed a small memory leak in the pathname canonicalization code.
t. Fixed a bug that caused the expanded value of a $'...' string to be
incorrectly re-quoted if it occurred within a double-quoted ${...}
parameter expansion.
u. Restored default emacs-mode key binding of M-TAB to dynamic-complete-history.
v. Fixed a bug that caused core dumps when interrupting loops running builtins
on some systems.
w. Make sure that some of the functions bash provides replacements for are
not cpp defines.
x. The code that scans embedded commands for the parser (`...` and $(...)) is
now more aware of embedded comments and their effect on quoted strings.
y. Changed the `-n' option to the `history' builtin to not reset the number of
history lines read in the current session after reading the new lines from
the history file if the history is being appended when it is written to
the file, since the appending takes care of the problem that the adjustment
was intended to solve.
z. Improved the error message displayed when a shell script fails to execute
because the environment and size of command line arguments are too large.
aa. A small fix to make sure that $HISTCMD is evaluated whenever the shell is
saving commands to the history list, not just when HISTSIZE is defined.
2. Changes to Readline
a. The `change-case' command now correctly changes the case of multibyte
characters.
b. Changes to the shared library construction scripts to deal with Windows
DLL naming conventions for Cygwin.
c. Fixed the redisplay code to avoid core dumps resulting from a poorly-timed
SIGWINCH.
d. Fixed the non-incremental search code in vi mode to dispose of any current
undo list when copying a line from the history into the current editing
buffer.
e. The variable assignment code now ignores whitespace at the end of lines.
f. The `C-w' binding in incremental search now understands multibyte
characters.
3. New Features in Bash
a. A new configuration option, `--enable-strict-posix-default', which will
build bash to be POSIX conforming by default.
4. New Features in Readline
a. If the rl_completion_query_items is set to a value < 0, readline never
asks the user whether or not to view the possible completions.
------------------------------------------------------------------------------
This document details the changes between this version, bash-3.1-alpha1,
and the previous version, bash-3.0-release.
@@ -223,6 +397,12 @@ qqq. Fixed a bug that caused core dumps when the shell was reading its non-
interactive input from fd 0 and fd 0 was duplicated and restored using a
combination of `exec' (to save) and redirection (to restore).
rrr. Fixed a problem that caused loops in sourced scripts to not be cleaned
up properly when a `return' is executed.
sss. Change internal command substitution completion function to append a slash
to directory names in the command.
2. Changes to Readline
a. Fixed a bug that caused multiliine prompts to be wrapped and displayed
@@ -284,6 +464,9 @@ r. Lots of changes so readline builds and runs on MinGW.
s. Readline no longer tries to modify the terminal settings when running in
callback mode.
t. The Readline display code no longer sets the location of the last invisible
character in the prompt if the \[\] sequence is empty.
3. New Features in Bash
a. Bash now understands LC_TIME as a special variable so that time display
+24
View File
@@ -12311,3 +12311,27 @@ builtins/cd.def
- make sure we free TDIR in change_to_directory after calling
set_working_directory (which allocates new memory) and other places
we short-circuit and return
10/24
-----
subst.c
- modified fix from 10/22 to allow bare ` to pass through (for
some backwards compatibility and more correctness)
10/27
-----
conftypes.h
- make MacOS X use the RHAPSODY code that gets HOSTTYPE, et al.
at build rather than configure time, to support universal binaries
(fix from llattanzi@apple.com)
10/30
-----
builtins/evalstring.c
- make sure we don't turn on CMD_NO_FORK in parse_and_execute if
we're running a trap command on signal receipt or exit
execute_cmd.c
- in shell_execve, improve the error message a little bit if the
interpreter name in a #! exec header ends with a ^M (as in a DOS-
format file)
+22 -1
View File
@@ -12309,4 +12309,25 @@ subst.c
-----
builtins/cd.def
- make sure we free TDIR in change_to_directory after calling
set_working_directory (which allocates new memory)
set_working_directory (which allocates new memory) and other places
we short-circuit and return
10/24
-----
subst.c
- modified fix from 10/22 to allow bare ` to pass through (for
some backwards compatibility and more correctness)
10/27
-----
conftypes.h
- make MacOS X use the RHAPSODY code that gets HOSTTYPE, et al.
at build rather than configure time, to support universal binaries
(fix from llattanzi@apple.com)
10/30
-----
builtins/evalstring.c
- make sure we don't turn on CMD_NO_FORK in parse_and_execute if
we're running a trap command on signal receipt or exit
+1 -1
View File
@@ -120,7 +120,7 @@ CFLAGS = @CFLAGS@
CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@ @CROSS_COMPILE@
CPPFLAGS = @CPPFLAGS@
CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@
LOCAL_CFLAGS = @LOCAL_CFLAGS@ ${DEBUG}
LOCAL_CFLAGS = @LOCAL_CFLAGS@ ${DEBUG} ${MALLOC_DEBUG}
DEFS = @DEFS@
LOCAL_DEFS = @LOCAL_DEFS@
+10 -10
View File
@@ -1,7 +1,7 @@
@%:@! /bin/sh
@%:@ From configure.in for Bash 3.1, version 3.180.
@%:@ Guess values for system-dependent variables and create Makefiles.
@%:@ Generated by GNU Autoconf 2.59 for bash 3.1-beta1.
@%:@ Generated by GNU Autoconf 2.59 for bash 3.1-rc1.
@%:@
@%:@ Report bugs to <bug-bash@gnu.org>.
@%:@
@@ -270,8 +270,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
# Identity of this package.
PACKAGE_NAME='bash'
PACKAGE_TARNAME='bash'
PACKAGE_VERSION='3.1-beta1'
PACKAGE_STRING='bash 3.1-beta1'
PACKAGE_VERSION='3.1-rc1'
PACKAGE_STRING='bash 3.1-rc1'
PACKAGE_BUGREPORT='bug-bash@gnu.org'
ac_unique_file="shell.h"
@@ -785,7 +785,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures bash 3.1-beta1 to adapt to many kinds of systems.
\`configure' configures bash 3.1-rc1 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -846,7 +846,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of bash 3.1-beta1:";;
short | recursive ) echo "Configuration of bash 3.1-rc1:";;
esac
cat <<\_ACEOF
@@ -1039,7 +1039,7 @@ fi
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
bash configure 3.1-beta1
bash configure 3.1-rc1
generated by GNU Autoconf 2.59
Copyright (C) 2003 Free Software Foundation, Inc.
@@ -1053,7 +1053,7 @@ cat >&5 <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by bash $as_me 3.1-beta1, which was
It was created by bash $as_me 3.1-rc1, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ $0 $@
@@ -1422,7 +1422,7 @@ ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
BASHVERS=3.1
RELSTATUS=beta1
RELSTATUS=rc1
case "$RELSTATUS" in
alp*|bet*|dev*|rc*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
@@ -27212,7 +27212,7 @@ _ASBOX
} >&5
cat >&5 <<_CSEOF
This file was extended by bash $as_me 3.1-beta1, which was
This file was extended by bash $as_me 3.1-rc1, which was
generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -27275,7 +27275,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
bash config.status 3.1-beta1
bash config.status 3.1-rc1
configured by $0, generated by GNU Autoconf 2.59,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
+17 -17
View File
@@ -17,19 +17,19 @@
{
'm4_pattern_forbid' => 1,
'AC_CONFIG_LIBOBJ_DIR' => 1,
'AC_C_VOLATILE' => 1,
'AC_TYPE_OFF_T' => 1,
'AC_C_VOLATILE' => 1,
'AC_FUNC_CLOSEDIR_VOID' => 1,
'AC_REPLACE_FNMATCH' => 1,
'AC_PROG_LIBTOOL' => 1,
'AC_FUNC_STAT' => 1,
'AC_HEADER_TIME' => 1,
'AC_FUNC_WAIT3' => 1,
'AC_FUNC_LSTAT' => 1,
'AC_STRUCT_TM' => 1,
'AC_HEADER_TIME' => 1,
'AM_AUTOMAKE_VERSION' => 1,
'AC_TYPE_MODE_T' => 1,
'AC_STRUCT_TM' => 1,
'AC_FUNC_LSTAT' => 1,
'AC_FUNC_GETMNTENT' => 1,
'AC_TYPE_MODE_T' => 1,
'AC_FUNC_STRTOD' => 1,
'AC_CHECK_HEADERS' => 1,
'AC_FUNC_STRNLEN' => 1,
@@ -48,17 +48,17 @@
'AC_STRUCT_ST_BLOCKS' => 1,
'AC_TYPE_SIGNAL' => 1,
'AC_TYPE_UID_T' => 1,
'AC_CONFIG_AUX_DIR' => 1,
'AC_PROG_MAKE_SET' => 1,
'sinclude' => 1,
'AC_CONFIG_AUX_DIR' => 1,
'm4_pattern_allow' => 1,
'sinclude' => 1,
'AC_DEFINE_TRACE_LITERAL' => 1,
'AC_FUNC_STRERROR_R' => 1,
'AC_PROG_CC' => 1,
'AC_FUNC_FORK' => 1,
'AC_DECL_SYS_SIGLIST' => 1,
'AC_FUNC_VPRINTF' => 1,
'AC_FUNC_FORK' => 1,
'AC_FUNC_STRCOLL' => 1,
'AC_FUNC_VPRINTF' => 1,
'AC_PROG_YACC' => 1,
'AC_INIT' => 1,
'AC_STRUCT_TIMEZONE' => 1,
@@ -80,33 +80,33 @@
'AM_MAINTAINER_MODE' => 1,
'AC_FUNC_UTIME_NULL' => 1,
'AC_FUNC_SELECT_ARGTYPES' => 1,
'AC_FUNC_STRFTIME' => 1,
'AC_HEADER_STAT' => 1,
'AC_PROG_CPP' => 1,
'AC_FUNC_STRFTIME' => 1,
'AC_C_INLINE' => 1,
'AC_TYPE_PID_T' => 1,
'AC_PROG_LEX' => 1,
'AC_PROG_CPP' => 1,
'AC_C_CONST' => 1,
'AC_PROG_LEX' => 1,
'AC_TYPE_PID_T' => 1,
'AC_CONFIG_FILES' => 1,
'include' => 1,
'AC_FUNC_SETVBUF_REVERSED' => 1,
'AC_PROG_INSTALL' => 1,
'AM_GNU_GETTEXT' => 1,
'AC_CHECK_LIB' => 1,
'AC_FUNC_OBSTACK' => 1,
'AC_CHECK_LIB' => 1,
'AC_FUNC_MALLOC' => 1,
'AC_FUNC_GETGROUPS' => 1,
'AC_FUNC_GETLOADAVG' => 1,
'AH_OUTPUT' => 1,
'AC_FUNC_FSEEKO' => 1,
'AM_PROG_CC_C_O' => 1,
'AC_FUNC_MKTIME' => 1,
'AC_CANONICAL_SYSTEM' => 1,
'AM_CONDITIONAL' => 1,
'AC_CANONICAL_SYSTEM' => 1,
'AC_FUNC_MKTIME' => 1,
'AC_CONFIG_HEADERS' => 1,
'AC_HEADER_SYS_WAIT' => 1,
'AC_FUNC_MEMCMP' => 1,
'AC_PROG_LN_S' => 1,
'AC_FUNC_MEMCMP' => 1,
'm4_include' => 1,
'AC_HEADER_DIRENT' => 1,
'AC_CHECK_FUNCS' => 1
+1 -1
View File
@@ -1,4 +1,4 @@
m4trace:configure.in:30: -1- AC_INIT([bash], [3.1-beta1], [bug-bash@gnu.org])
m4trace:configure.in:30: -1- AC_INIT([bash], [3.1-rc1], [bug-bash@gnu.org])
m4trace:configure.in:30: -1- m4_pattern_forbid([^_?A[CHUM]_])
m4trace:configure.in:30: -1- m4_pattern_forbid([_AC_])
m4trace:configure.in:30: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
+5 -1
View File
@@ -1,4 +1,6 @@
/* Copyright (C) 1996 Free Software Foundation, Inc.
/* Evaluate a string as one or more shell commands.
Copyright (C) 1996-2005 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
@@ -233,6 +235,7 @@ parse_and_execute (string, from_file, flags)
* IF
* we were invoked as `bash -c' (startup_state == 2) AND
* parse_and_execute has not been called recursively AND
* we're not running a trap AND
* we have parsed the full command (string == '\0') AND
* we have a simple command without redirections AND
* the command is not being timed AND
@@ -241,6 +244,7 @@ parse_and_execute (string, from_file, flags)
* tell the execution code that we don't need to fork
*/
if (startup_state == 2 && parse_and_execute_level == 1 &&
running_trap == 0 &&
*bash_input.location.string == '\0' &&
command->type == cm_simple &&
!command->redirects && !command->value.Simple->redirects &&
+9 -1
View File
@@ -1,4 +1,6 @@
/* Copyright (C) 1996 Free Software Foundation, Inc.
/* Evaluate a string as one or more shell commands.
Copyright (C) 1996-2005 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
@@ -58,6 +60,7 @@ extern int indirection_level, startup_state, subshell_environment;
extern int line_number;
extern int last_command_exit_value;
extern int running_trap;
extern int loop_level;
extern int posixly_correct;
int parse_and_execute_level = 0;
@@ -105,6 +108,7 @@ parse_and_execute (string, from_file, flags)
unwind_protect_jmp_buf (top_level);
unwind_protect_int (indirection_level);
unwind_protect_int (line_number);
unwind_protect_int (loop_level);
if (flags & (SEVAL_NONINT|SEVAL_INTERACT))
unwind_protect_int (interactive);
@@ -231,6 +235,7 @@ parse_and_execute (string, from_file, flags)
* IF
* we were invoked as `bash -c' (startup_state == 2) AND
* parse_and_execute has not been called recursively AND
* we're not running a trap AND
* we have parsed the full command (string == '\0') AND
* we have a simple command without redirections AND
* the command is not being timed AND
@@ -239,12 +244,14 @@ parse_and_execute (string, from_file, flags)
* tell the execution code that we don't need to fork
*/
if (startup_state == 2 && parse_and_execute_level == 1 &&
running_trap == 0 &&
*bash_input.location.string == '\0' &&
command->type == cm_simple &&
!command->redirects && !command->value.Simple->redirects &&
((command->flags & CMD_TIME_PIPELINE) == 0) &&
((command->flags & CMD_INVERT_RETURN) == 0))
{
itrace("parse_and_execute: turning on CMD_NO_FORK");
command->flags |= CMD_NO_FORK;
command->value.Simple->flags |= CMD_NO_FORK;
}
@@ -300,6 +307,7 @@ parse_and_execute (string, from_file, flags)
if (should_jump_to_top_level)
jump_to_top_level (code);
itrace("parse_and_execute: returning %d", last_result);
return (last_result);
}
+4 -2
View File
@@ -814,8 +814,10 @@ vbadd (buf, blen)
}
vbuf[vblen] = '\0';
if (strlen (vbuf) != vblen)
internal_error ("printf:vbadd: vblen (%d) != strlen (vbuf) (%d)", vblen, strlen (vbuf));
#ifdef DEBUG
if (strlen (vbuf) != vblen)
internal_error ("printf:vbadd: vblen (%d) != strlen (vbuf) (%d)", vblen, strlen (vbuf));
#endif
return vbuf;
}
+10 -5
View File
@@ -115,7 +115,10 @@ extern int errno;
do \
{ \
if (vflag) \
bind_variable (vname, vbuf, 0); \
{ \
bind_variable (vname, vbuf, 0); \
stupidly_hack_special_variables (vname); \
} \
if (conv_bufsize > 4096 ) \
{ \
free (conv_buf); \
@@ -300,9 +303,10 @@ printf_builtin (list)
else
{
/* Negative precisions are allowed but treated as if the
precision were missing; as an extension we allow a
leading `+' in the precision number. */
#if 1
precision were missing; I would like to allow a leading
`+' in the precision number as an extension, but lots
of asprintf/fprintf implementations get this wrong. */
#if 0
if (*fmt == '-' || *fmt == '+')
#else
if (*fmt == '-')
@@ -374,7 +378,7 @@ printf_builtin (list)
int rlen, r;
p = getstr ();
ch = rlen = 0;
ch = rlen = r = 0;
xp = bexpand (p, strlen (p), &ch, &rlen);
if (xp)
@@ -401,6 +405,7 @@ printf_builtin (list)
char *p, *xp;
int r;
r = 0;
p = getstr ();
if (ansic_shouldquote (p))
xp = ansic_quote (p, 0, (int *)0);
Vendored
+11 -10
View File
@@ -1,7 +1,7 @@
#! /bin/sh
# From configure.in for Bash 3.1, version 3.180.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for bash 3.1-beta1.
# Generated by GNU Autoconf 2.59 for bash 3.1-rc1.
#
# Report bugs to <bug-bash@gnu.org>.
#
@@ -270,8 +270,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
# Identity of this package.
PACKAGE_NAME='bash'
PACKAGE_TARNAME='bash'
PACKAGE_VERSION='3.1-beta1'
PACKAGE_STRING='bash 3.1-beta1'
PACKAGE_VERSION='3.1-rc1'
PACKAGE_STRING='bash 3.1-rc1'
PACKAGE_BUGREPORT='bug-bash@gnu.org'
ac_unique_file="shell.h"
@@ -785,7 +785,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures bash 3.1-beta1 to adapt to many kinds of systems.
\`configure' configures bash 3.1-rc1 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -846,7 +846,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of bash 3.1-beta1:";;
short | recursive ) echo "Configuration of bash 3.1-rc1:";;
esac
cat <<\_ACEOF
@@ -1039,7 +1039,7 @@ fi
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
bash configure 3.1-beta1
bash configure 3.1-rc1
generated by GNU Autoconf 2.59
Copyright (C) 2003 Free Software Foundation, Inc.
@@ -1053,7 +1053,7 @@ cat >&5 <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by bash $as_me 3.1-beta1, which was
It was created by bash $as_me 3.1-rc1, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ $0 $@
@@ -1422,7 +1422,7 @@ ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
BASHVERS=3.1
RELSTATUS=beta1
RELSTATUS=rc1
case "$RELSTATUS" in
alp*|bet*|dev*|rc*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
@@ -27212,7 +27212,7 @@ _ASBOX
} >&5
cat >&5 <<_CSEOF
This file was extended by bash $as_me 3.1-beta1, which was
This file was extended by bash $as_me 3.1-rc1, which was
generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -27275,7 +27275,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
bash config.status 3.1-beta1
bash config.status 3.1-rc1
configured by $0, generated by GNU Autoconf 2.59,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
@@ -28319,3 +28319,4 @@ if test "$no_create" != yes; then
# would make configure fail if this is the last instruction.
$ac_cs_success || { (exit 1); exit 1; }
fi
+1 -1
View File
@@ -25,7 +25,7 @@ dnl Process this file with autoconf to produce a configure script.
AC_REVISION([for Bash 3.1, version 3.180])dnl
define(bashvers, 3.1)
define(relstatus, beta1)
define(relstatus, rc1)
AC_INIT(bash, bashvers-relstatus, bug-bash@gnu.org)
+2 -2
View File
@@ -25,7 +25,7 @@ dnl Process this file with autoconf to produce a configure script.
AC_REVISION([for Bash 3.1, version 3.180])dnl
define(bashvers, 3.1)
define(relstatus, alpha1)
define(relstatus, beta1)
AC_INIT(bash, bashvers-relstatus, bug-bash@gnu.org)
@@ -230,7 +230,7 @@ AC_ARG_ENABLE(restricted, AC_HELP_STRING([--enable-restricted], [enable a restri
AC_ARG_ENABLE(select, AC_HELP_STRING([--enable-select], [include select command]), opt_select=$enableval)
AC_ARG_ENABLE(separate-helpfiles, AC_HELP_STRING([--enable-separate-helpfiles], [use external files for help builtin documentation]), opt_separate_help=$enableval)
AC_ARG_ENABLE(single-help-strings, AC_HELP_STRING([--enable-single-help-strings], [store help documentation as a single string to ease translation]), opt_single_longdoc_strings=$enableval)
AC_ARG_ENABLE(strict-posix-default, AC_HELP_STRING([--strict-posix-default], [configure bash to be posix-conformant by default]), opt_strict_posix=$enableval)
AC_ARG_ENABLE(strict-posix-default, AC_HELP_STRING([--enable-strict-posix-default], [configure bash to be posix-conformant by default]), opt_strict_posix=$enableval)
AC_ARG_ENABLE(usg-echo-default, AC_HELP_STRING([--enable-usg-echo-default], [a synonym for --enable-xpg-echo-default]), opt_xpg_echo=$enableval)
AC_ARG_ENABLE(xpg-echo-default, AC_HELP_STRING([--enable-xpg-echo-default], [make the echo builtin expand escape sequences by default]), opt_xpg_echo=$enableval)
+1 -1
View File
@@ -24,7 +24,7 @@
/* Placeholder for future modifications if cross-compiling or building a
`fat' binary, e.g. on Apple Rhapsody. These values are used in multiple
files, so they appear here. */
#if !defined (RHAPSODY)
#if !defined (RHAPSODY) && !defined (MACOSX)
# define HOSTTYPE CONF_HOSTTYPE
# define OSTYPE CONF_OSTYPE
# define MACHTYPE CONF_MACHTYPE
+9
View File
@@ -3870,9 +3870,18 @@ shell_execve (command, args, env)
if (sample_len > 2 && sample[0] == '#' && sample[1] == '!')
{
char *interp;
int ilen;
interp = getinterp (sample, sample_len, (int *)NULL);
ilen = strlen (interp);
errno = i;
if (interp[ilen - 1] == '\r')
{
interp = xrealloc (interp, ilen + 2);
interp[ilen - 1] = '^';
interp[ilen] = 'M';
interp[ilen + 1] = '\0';
}
sys_error (_("%s: %s: bad interpreter"), command, interp ? interp : "");
FREE (interp);
return (EX_NOEXEC);
+23 -15
View File
@@ -3050,13 +3050,9 @@ execute_builtin (builtin, words, flags, subshell)
/* The temporary environment for a builtin is supposed to apply to
all commands executed by that builtin. Currently, this is a
#if 0
problem only with the `source' and `eval' builtins. */
isbltinenv = (builtin == source_builtin || builtin == eval_builtin);
#else
problem only with the `source', `unset', and `eval' builtins. */
problem only with the `unset', `source' and `eval' builtins. */
isbltinenv = (builtin == source_builtin || builtin == eval_builtin || builtin == unset_builtin);
#endif
if (isbltinenv)
{
@@ -3228,18 +3224,12 @@ execute_function (var, words, flags, fds_to_close, async, subshell)
/* Number of the line on which the function body starts. */
line_number = function_line_number = tc->line;
if (subshell)
{
#if defined (JOB_CONTROL)
stop_pipeline (async, (COMMAND *)NULL);
if (subshell)
stop_pipeline (async, (COMMAND *)NULL);
#endif
fc = (tc->type == cm_group) ? tc->value.Group->command : tc;
if (fc && (flags & CMD_IGNORE_RETURN))
fc->flags |= CMD_IGNORE_RETURN;
}
else
fc = tc;
fc = tc;
return_catch_flag++;
return_val = setjmp (return_catch);
@@ -3790,6 +3780,7 @@ initialize_subshell ()
/* Forget about the way job control was working. We are in a subshell. */
without_job_control ();
set_sigchld_handler ();
init_job_stats ();
#endif /* JOB_CONTROL */
/* Reset the values of the shell flags and options. */
@@ -3864,6 +3855,12 @@ shell_execve (command, args, env)
errno = i;
file_error (command);
}
/* errors not involving the path argument to execve. */
else if (i == E2BIG || i == ENOMEM)
{
errno = i;
file_error (command);
}
else
{
/* The file has the execute bits set, but the kernel refuses to
@@ -3873,9 +3870,20 @@ shell_execve (command, args, env)
if (sample_len > 2 && sample[0] == '#' && sample[1] == '!')
{
char *interp;
int ilen;
interp = getinterp (sample, sample_len, (int *)NULL);
ilen = strlen (interp);
errno = i;
itrace("shell_execve: interp = `%s', ilen = %d", interp, ilen);
itrace("shell_execve: interp[ilen - 1] = %d", interp[ilen - 1]);
if (interp[ilen - 1] == '\r')
{
interp = xrealloc (interp, ilen + 2);
interp[ilen - 1] = '^';
interp[ilen] = 'M';
interp[ilen + 1] = '\0';
}
sys_error (_("%s: %s: bad interpreter"), command, interp ? interp : "");
FREE (interp);
return (EX_NOEXEC);
Binary file not shown.
+3 -3
View File
@@ -1,6 +1,6 @@
<HTML>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- Created on July, 27 2004 by texi2html 1.64 -->
<!-- Created on October, 27 2005 by texi2html 1.64 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
Karl Berry <karl@freefriends.org>
@@ -2100,7 +2100,7 @@ to permit their use in free software.
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="history.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H1>About this document</H1>
This document was generated by <I>Chet Ramey</I> on <I>July, 27 2004</I>
This document was generated by <I>Chet Ramey</I> on <I>October, 27 2005</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
<P></P>
@@ -2262,7 +2262,7 @@ the following structure:
<BR>
<FONT SIZE="-1">
This document was generated
by <I>Chet Ramey</I> on <I>July, 27 2004</I>
by <I>Chet Ramey</I> on <I>October, 27 2005</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
+217 -182
View File
@@ -1,8 +1,8 @@
This is history.info, produced by makeinfo version 4.5 from
This is history.info, produced by makeinfo version 4.7 from
./history.texi.
This document describes the GNU History library (version 5.0, 28
January 2004), a programming tool that provides a consistent user
This document describes the GNU History library (version 5.1-beta1,
7 October 2005), a programming tool that provides a consistent user
interface for recalling lines of previously typed input.
Copyright (C) 1988-2004 Free Software Foundation, Inc.
@@ -22,7 +22,7 @@ preserved on all copies.
(a) The FSF's Back-Cover Text is: "You have freedom to copy and
modify this GNU Manual, like GNU software. Copies published by
the Free Software Foundation raise funds for GNU development."
INFO-DIR-SECTION Libraries
START-INFO-DIR-ENTRY
* History: (history). The GNU history library API.
@@ -34,9 +34,9 @@ File: history.info, Node: Top, Next: Using History Interactively, Up: (dir)
GNU History Library
*******************
This document describes the GNU History library, a programming tool
that provides a consistent user interface for recalling lines of
previously typed input.
This document describes the GNU History library, a programming tool that
provides a consistent user interface for recalling lines of previously
typed input.
* Menu:
@@ -50,13 +50,13 @@ previously typed input.

File: history.info, Node: Using History Interactively, Next: Programming with GNU History, Prev: Top, Up: Top
Using History Interactively
***************************
1 Using History Interactively
*****************************
This chapter describes how to use the GNU History Library
interactively, from a user's standpoint. It should be considered a
user's guide. For information on using the GNU History Library in your
own programs, *note Programming with GNU History::.
This chapter describes how to use the GNU History Library interactively,
from a user's standpoint. It should be considered a user's guide. For
information on using the GNU History Library in your own programs,
*note Programming with GNU History::.
* Menu:
@@ -65,12 +65,12 @@ own programs, *note Programming with GNU History::.

File: history.info, Node: History Interaction, Up: Using History Interactively
History Expansion
=================
1.1 History Expansion
=====================
The History library provides a history expansion feature that is
similar to the history expansion provided by `csh'. This section
describes the syntax used to manipulate the history information.
The History library provides a history expansion feature that is similar
to the history expansion provided by `csh'. This section describes the
syntax used to manipulate the history information.
History expansions introduce words from the history list into the
input stream, making it easy to repeat commands, insert the arguments
@@ -97,11 +97,11 @@ appearance of the history expansion character, which is `!' by default.

File: history.info, Node: Event Designators, Next: Word Designators, Up: History Interaction
Event Designators
-----------------
1.1.1 Event Designators
-----------------------
An event designator is a reference to a command line entry in the
history list.
An event designator is a reference to a command line entry in the
history list.
`!'
Start a history substitution, except when followed by a space, tab,
@@ -135,10 +135,10 @@ history list.

File: history.info, Node: Word Designators, Next: Modifiers, Prev: Event Designators, Up: History Interaction
Word Designators
----------------
1.1.2 Word Designators
----------------------
Word designators are used to select desired words from the event. A
Word designators are used to select desired words from the event. A
`:' separates the event specification from the word designator. It may
be omitted if the word designator begins with a `^', `$', `*', `-', or
`%'. Words are numbered from the beginning of the line, with the first
@@ -197,10 +197,10 @@ previous command is used as the event.

File: history.info, Node: Modifiers, Prev: Word Designators, Up: History Interaction
Modifiers
---------
1.1.3 Modifiers
---------------
After the optional word designator, you can add a sequence of one or
After the optional word designator, you can add a sequence of one or
more of the following modifiers, each preceded by a `:'.
`h'
@@ -242,10 +242,10 @@ more of the following modifiers, each preceded by a `:'.

File: history.info, Node: Programming with GNU History, Next: Copying This Manual, Prev: Using History Interactively, Up: Top
Programming with GNU History
****************************
2 Programming with GNU History
******************************
This chapter describes how to interface programs that you write with
This chapter describes how to interface programs that you write with
the GNU History Library. It should be considered a technical guide.
For information on the interactive use of GNU History, *note Using
History Interactively::.
@@ -261,10 +261,10 @@ History Interactively::.

File: history.info, Node: Introduction to History, Next: History Storage, Up: Programming with GNU History
Introduction to History
=======================
2.1 Introduction to History
===========================
Many programs read input from the user a line at a time. The GNU
Many programs read input from the user a line at a time. The GNU
History library is able to keep track of those lines, associate
arbitrary data with each line, and utilize information from previous
lines in composing new ones.
@@ -297,14 +297,14 @@ public data structures.

File: history.info, Node: History Storage, Next: History Functions, Prev: Introduction to History, Up: Programming with GNU History
History Storage
===============
2.2 History Storage
===================
The history list is an array of history entries. A history entry is
The history list is an array of history entries. A history entry is
declared as follows:
typedef void *histdata_t;
typedef struct _hist_entry {
char *line;
char *timestamp;
@@ -335,10 +335,10 @@ stifled.

File: history.info, Node: History Functions, Next: History Variables, Prev: History Storage, Up: Programming with GNU History
History Functions
=================
2.3 History Functions
=====================
This section describes the calling sequence for the various functions
This section describes the calling sequence for the various functions
exported by the GNU History library.
* Menu:
@@ -362,105 +362,105 @@ exported by the GNU History library.

File: history.info, Node: Initializing History and State Management, Next: History List Management, Up: History Functions
Initializing History and State Management
-----------------------------------------
2.3.1 Initializing History and State Management
-----------------------------------------------
This section describes functions used to initialize and manage the
This section describes functions used to initialize and manage the
state of the History library when you want to use the history functions
in your program.
- Function: void using_history (void)
-- Function: void using_history (void)
Begin a session in which the history functions might be used. This
initializes the interactive variables.
- Function: HISTORY_STATE * history_get_history_state (void)
-- Function: HISTORY_STATE * history_get_history_state (void)
Return a structure describing the current state of the input
history.
- Function: void history_set_history_state (HISTORY_STATE *state)
-- Function: void history_set_history_state (HISTORY_STATE *state)
Set the state of the history list according to STATE.

File: history.info, Node: History List Management, Next: Information About the History List, Prev: Initializing History and State Management, Up: History Functions
History List Management
-----------------------
2.3.2 History List Management
-----------------------------
These functions manage individual entries on the history list, or set
These functions manage individual entries on the history list, or set
parameters managing the list itself.
- Function: void add_history (const char *string)
-- Function: void add_history (const char *string)
Place STRING at the end of the history list. The associated data
field (if any) is set to `NULL'.
- Function: void add_history_time (const char *string)
-- Function: void add_history_time (const char *string)
Change the time stamp associated with the most recent history
entry to STRING.
- Function: HIST_ENTRY * remove_history (int which)
-- Function: HIST_ENTRY * remove_history (int which)
Remove history entry at offset WHICH from the history. The
removed element is returned so you can free the line, data, and
containing structure.
- Function: histdata_t free_history_entry (HIST_ENTRY *histent)
-- Function: histdata_t free_history_entry (HIST_ENTRY *histent)
Free the history entry HISTENT and any history library private
data associated with it. Returns the application-specific data so
the caller can dispose of it.
- Function: HIST_ENTRY * replace_history_entry (int which, const char
-- Function: HIST_ENTRY * replace_history_entry (int which, const char
*line, histdata_t data)
Make the history entry at offset WHICH have LINE and DATA. This
returns the old entry so the caller can dispose of any
application-specific data. In the case of an invalid WHICH, a
`NULL' pointer is returned.
- Function: void clear_history (void)
-- Function: void clear_history (void)
Clear the history list by deleting all the entries.
- Function: void stifle_history (int max)
-- Function: void stifle_history (int max)
Stifle the history list, remembering only the last MAX entries.
- Function: int unstifle_history (void)
-- Function: int unstifle_history (void)
Stop stifling the history. This returns the previously-set
maximum number of history entries (as set by `stifle_history()').
The value is positive if the history was stifled, negative if it
wasn't.
- Function: int history_is_stifled (void)
-- Function: int history_is_stifled (void)
Returns non-zero if the history is stifled, zero if it is not.

File: history.info, Node: Information About the History List, Next: Moving Around the History List, Prev: History List Management, Up: History Functions
Information About the History List
----------------------------------
2.3.3 Information About the History List
----------------------------------------
These functions return information about the entire history list or
These functions return information about the entire history list or
individual list entries.
- Function: HIST_ENTRY ** history_list (void)
-- Function: HIST_ENTRY ** history_list (void)
Return a `NULL' terminated array of `HIST_ENTRY *' which is the
current input history. Element 0 of this list is the beginning of
time. If there is no history, return `NULL'.
- Function: int where_history (void)
-- Function: int where_history (void)
Returns the offset of the current history element.
- Function: HIST_ENTRY * current_history (void)
-- Function: HIST_ENTRY * current_history (void)
Return the history entry at the current position, as determined by
`where_history()'. If there is no entry there, return a `NULL'
pointer.
- Function: HIST_ENTRY * history_get (int offset)
-- Function: HIST_ENTRY * history_get (int offset)
Return the history entry at position OFFSET, starting from
`history_base' (*note History Variables::). If there is no entry
there, or if OFFSET is greater than the history length, return a
`NULL' pointer.
- Function: time_t history_get_time (HIST_ENTRY *entry)
-- Function: time_t history_get_time (HIST_ENTRY *entry)
Return the time stamp associated with the history entry ENTRY.
- Function: int history_total_bytes (void)
-- Function: int history_total_bytes (void)
Return the number of bytes that the primary history entries are
using. This function returns the sum of the lengths of all the
lines in the history.
@@ -468,23 +468,23 @@ individual list entries.

File: history.info, Node: Moving Around the History List, Next: Searching the History List, Prev: Information About the History List, Up: History Functions
Moving Around the History List
------------------------------
2.3.4 Moving Around the History List
------------------------------------
These functions allow the current index into the history list to be
set or changed.
These functions allow the current index into the history list to be set
or changed.
- Function: int history_set_pos (int pos)
-- Function: int history_set_pos (int pos)
Set the current history offset to POS, an absolute index into the
list. Returns 1 on success, 0 if POS is less than zero or greater
than the number of history entries.
- Function: HIST_ENTRY * previous_history (void)
-- Function: HIST_ENTRY * previous_history (void)
Back up the current history offset to the previous history entry,
and return a pointer to that entry. If there is no previous
entry, return a `NULL' pointer.
- Function: HIST_ENTRY * next_history (void)
-- Function: HIST_ENTRY * next_history (void)
Move the current history offset forward to the next history entry,
and return the a pointer to that entry. If there is no next
entry, return a `NULL' pointer.
@@ -492,16 +492,16 @@ set or changed.

File: history.info, Node: Searching the History List, Next: Managing the History File, Prev: Moving Around the History List, Up: History Functions
Searching the History List
--------------------------
2.3.5 Searching the History List
--------------------------------
These functions allow searching of the history list for entries
These functions allow searching of the history list for entries
containing a specific string. Searching may be performed both forward
and backward from the current history position. The search may be
"anchored", meaning that the string must match at the beginning of the
history entry.
history entry.
- Function: int history_search (const char *string, int direction)
-- Function: int history_search (const char *string, int direction)
Search the history for STRING, starting at the current history
offset. If DIRECTION is less than 0, then the search is through
previous entries, otherwise through subsequent entries. If STRING
@@ -510,7 +510,7 @@ history entry.
entry where STRING was found. Otherwise, nothing is changed, and
a -1 is returned.
- Function: int history_search_prefix (const char *string, int
-- Function: int history_search_prefix (const char *string, int
direction)
Search the history for STRING, starting at the current history
offset. The search is anchored: matching lines must begin with
@@ -520,8 +520,8 @@ history entry.
the return value is 0. Otherwise, nothing is changed, and a -1 is
returned.
- Function: int history_search_pos (const char *string, int direction,
int pos)
-- Function: int history_search_pos (const char *string, int
direction, int pos)
Search for STRING in the history list, starting at POS, an
absolute index into the list. If DIRECTION is negative, the search
proceeds backward from POS, otherwise forward. Returns the
@@ -531,18 +531,18 @@ history entry.

File: history.info, Node: Managing the History File, Next: History Expansion, Prev: Searching the History List, Up: History Functions
Managing the History File
-------------------------
2.3.6 Managing the History File
-------------------------------
The History library can read the history from and write it to a file.
The History library can read the history from and write it to a file.
This section documents the functions for managing a history file.
- Function: int read_history (const char *filename)
-- Function: int read_history (const char *filename)
Add the contents of FILENAME to the history list, a line at a time.
If FILENAME is `NULL', then read from `~/.history'. Returns 0 if
successful, or `errno' if not.
- Function: int read_history_range (const char *filename, int from,
-- Function: int read_history_range (const char *filename, int from,
int to)
Read a range of lines from FILENAME, adding them to the history
list. Start reading at line FROM and end at TO. If FROM is zero,
@@ -550,18 +550,18 @@ This section documents the functions for managing a history file.
the end of the file. If FILENAME is `NULL', then read from
`~/.history'. Returns 0 if successful, or `errno' if not.
- Function: int write_history (const char *filename)
-- Function: int write_history (const char *filename)
Write the current history to FILENAME, overwriting FILENAME if
necessary. If FILENAME is `NULL', then write the history list to
`~/.history'. Returns 0 on success, or `errno' on a read or write
error.
- Function: int append_history (int nelements, const char *filename)
-- Function: int append_history (int nelements, const char *filename)
Append the last NELEMENTS of the history list to FILENAME. If
FILENAME is `NULL', then append to `~/.history'. Returns 0 on
success, or `errno' on a read or write error.
- Function: int history_truncate_file (const char *filename, int
-- Function: int history_truncate_file (const char *filename, int
nlines)
Truncate the history file FILENAME, leaving only the last NLINES
lines. If FILENAME is `NULL', then `~/.history' is truncated.
@@ -570,12 +570,12 @@ This section documents the functions for managing a history file.

File: history.info, Node: History Expansion, Prev: Managing the History File, Up: History Functions
History Expansion
-----------------
2.3.7 History Expansion
-----------------------
These functions implement history expansion.
These functions implement history expansion.
- Function: int history_expand (char *string, char **output)
-- Function: int history_expand (char *string, char **output)
Expand STRING, placing the result into OUTPUT, a pointer to a
string (*note History Interaction::). Returns:
`0'
@@ -596,8 +596,8 @@ History Expansion
If an error ocurred in expansion, then OUTPUT contains a
descriptive error message.
- Function: char * get_history_event (const char *string, int *cindex,
int qchar)
-- Function: char * get_history_event (const char *string, int
*cindex, int qchar)
Returns the text of the history event beginning at STRING +
*CINDEX. *CINDEX is modified to point to after the event
specifier. At function entry, CINDEX points to the index into
@@ -605,13 +605,13 @@ History Expansion
character that is allowed to end the event specification in
addition to the "normal" terminating characters.
- Function: char ** history_tokenize (const char *string)
-- Function: char ** history_tokenize (const char *string)
Return an array of tokens parsed out of STRING, much as the shell
might. The tokens are split on the characters in the
HISTORY_WORD_DELIMITERS variable, and shell quoting conventions
are obeyed.
- Function: char * history_arg_extract (int first, int last, const
-- Function: char * history_arg_extract (int first, int last, const
char *string)
Extract a string segment consisting of the FIRST through LAST
arguments present in STRING. Arguments are split using
@@ -620,60 +620,60 @@ History Expansion

File: history.info, Node: History Variables, Next: History Programming Example, Prev: History Functions, Up: Programming with GNU History
History Variables
=================
2.4 History Variables
=====================
This section describes the externally-visible variables exported by
the GNU History Library.
This section describes the externally-visible variables exported by the
GNU History Library.
- Variable: int history_base
-- Variable: int history_base
The logical offset of the first entry in the history list.
- Variable: int history_length
-- Variable: int history_length
The number of entries currently stored in the history list.
- Variable: int history_max_entries
-- Variable: int history_max_entries
The maximum number of history entries. This must be changed using
`stifle_history()'.
- Variable: int history_write_timestamps
-- Variable: int history_write_timestamps
If non-zero, timestamps are written to the history file, so they
can be preserved between sessions. The default value is 0,
meaning that timestamps are not saved.
- Variable: char history_expansion_char
-- Variable: char history_expansion_char
The character that introduces a history event. The default is `!'.
Setting this to 0 inhibits history expansion.
- Variable: char history_subst_char
-- Variable: char history_subst_char
The character that invokes word substitution if found at the start
of a line. The default is `^'.
- Variable: char history_comment_char
-- Variable: char history_comment_char
During tokenization, if this character is seen as the first
character of a word, then it and all subsequent characters up to a
newline are ignored, suppressing history expansion for the
remainder of the line. This is disabled by default.
- Variable: char * history_word_delimiters
-- Variable: char * history_word_delimiters
The characters that separate tokens for `history_tokenize()'. The
default value is `" \t\n()<>;&|"'.
- Variable: char * history_search_delimiter_chars
-- Variable: char * history_search_delimiter_chars
The list of additional characters which can delimit a history
search string, in addition to space, TAB, `:' and `?' in the case
of a substring search. The default is empty.
- Variable: char * history_no_expand_chars
-- Variable: char * history_no_expand_chars
The list of characters which inhibit history expansion if found
immediately following HISTORY_EXPANSION_CHAR. The default is
space, tab, newline, carriage return, and `='.
- Variable: int history_quotes_inhibit_expansion
-- Variable: int history_quotes_inhibit_expansion
If non-zero, single-quoted words are not scanned for the history
expansion character. The default value is 0.
- Variable: rl_linebuf_func_t * history_inhibit_expansion_function
-- Variable: rl_linebuf_func_t * history_inhibit_expansion_function
This should be set to the address of a function that takes two
arguments: a `char *' (STRING) and an `int' index into that string
(I). It should return a non-zero value if the history expansion
@@ -685,24 +685,24 @@ the GNU History Library.

File: history.info, Node: History Programming Example, Prev: History Variables, Up: Programming with GNU History
History Programming Example
===========================
2.5 History Programming Example
===============================
The following program demonstrates simple use of the GNU History
The following program demonstrates simple use of the GNU History
Library.
#include <stdio.h>
#include <readline/history.h>
main (argc, argv)
int argc;
char **argv;
{
char line[1024], *t;
int len, done = 0;
line[0] = 0;
using_history ();
while (!done)
{
@@ -715,30 +715,30 @@ Library.
if (t[len - 1] == '\n')
t[len - 1] = '\0';
}
if (!t)
strcpy (line, "quit");
if (line[0])
{
char *expansion;
int result;
result = history_expand (line, &expansion);
if (result)
fprintf (stderr, "%s\n", expansion);
if (result < 0 || result == 2)
{
free (expansion);
continue;
}
add_history (expansion);
strncpy (line, expansion, sizeof (line) - 1);
free (expansion);
}
if (strcmp (line, "quit") == 0)
done = 1;
else if (strcmp (line, "save") == 0)
@@ -749,7 +749,7 @@ Library.
{
register HIST_ENTRY **the_list;
register int i;
the_list = history_list ();
if (the_list)
for (i = 0; the_list[i]; i++)
@@ -780,8 +780,8 @@ Library.

File: history.info, Node: Copying This Manual, Next: Concept Index, Prev: Programming with GNU History, Up: Top
Copying This Manual
*******************
Appendix A Copying This Manual
******************************
* Menu:
@@ -790,13 +790,14 @@ Copying This Manual

File: history.info, Node: GNU Free Documentation License, Up: Copying This Manual
GNU Free Documentation License
==============================
A.1 GNU Free Documentation License
==================================
Version 1.2, November 2002
Copyright (C) 2000,2001,2002 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@@ -1187,10 +1188,10 @@ GNU Free Documentation License
you may choose any version ever published (not as a draft) by the
Free Software Foundation.
ADDENDUM: How to use this License for your documents
----------------------------------------------------
A.1.1 ADDENDUM: How to use this License for your documents
----------------------------------------------------------
To use this License in a document you have written, include a copy of
To use this License in a document you have written, include a copy of
the License in the document and put the following copyright and license
notices just after the title page:
@@ -1221,97 +1222,131 @@ permit their use in free software.

File: history.info, Node: Concept Index, Next: Function and Variable Index, Prev: Copying This Manual, Up: Top
Concept Index
*************
Appendix B Concept Index
************************
[index]
* Menu:
* anchored search: Searching the History List.
* event designators: Event Designators.
(line 10)
* event designators: Event Designators. (line 6)
* FDL, GNU Free Documentation License: GNU Free Documentation License.
* history events: Event Designators.
* history expansion: History Interaction.
(line 6)
* history events: Event Designators. (line 7)
* history expansion: History Interaction. (line 6)
* History Searching: Searching the History List.
(line 6)

File: history.info, Node: Function and Variable Index, Prev: Concept Index, Up: Top
Function and Variable Index
***************************
Appendix C Function and Variable Index
**************************************
[index]
* Menu:
* add_history: History List Management.
(line 10)
* add_history_time: History List Management.
(line 14)
* append_history: Managing the History File.
(line 29)
* clear_history: History List Management.
(line 35)
* current_history: Information About the History List.
(line 18)
* free_history_entry: History List Management.
* get_history_event: History Expansion.
* history_arg_extract: History Expansion.
* history_base: History Variables.
* history_comment_char: History Variables.
* history_expand: History Expansion.
* history_expansion_char: History Variables.
(line 23)
* get_history_event: History Expansion. (line 31)
* history_arg_extract: History Expansion. (line 46)
* history_base: History Variables. (line 10)
* history_comment_char: History Variables. (line 33)
* history_expand: History Expansion. (line 9)
* history_expansion_char: History Variables. (line 25)
* history_get: Information About the History List.
(line 23)
* history_get_history_state: Initializing History and State Management.
(line 15)
* history_get_time: Information About the History List.
* history_inhibit_expansion_function: History Variables.
(line 29)
* history_inhibit_expansion_function: History Variables. (line 57)
* history_is_stifled: History List Management.
* history_length: History Variables.
(line 47)
* history_length: History Variables. (line 13)
* history_list: Information About the History List.
* history_max_entries: History Variables.
* history_no_expand_chars: History Variables.
* history_quotes_inhibit_expansion: History Variables.
(line 10)
* history_max_entries: History Variables. (line 16)
* history_no_expand_chars: History Variables. (line 48)
* history_quotes_inhibit_expansion: History Variables. (line 53)
* history_search: Searching the History List.
* history_search_delimiter_chars: History Variables.
(line 13)
* history_search_delimiter_chars: History Variables. (line 43)
* history_search_pos: Searching the History List.
(line 33)
* history_search_prefix: Searching the History List.
(line 23)
* history_set_history_state: Initializing History and State Management.
(line 19)
* history_set_pos: Moving Around the History List.
* history_subst_char: History Variables.
* history_tokenize: History Expansion.
(line 10)
* history_subst_char: History Variables. (line 29)
* history_tokenize: History Expansion. (line 39)
* history_total_bytes: Information About the History List.
(line 32)
* history_truncate_file: Managing the History File.
* history_word_delimiters: History Variables.
* history_write_timestamps: History Variables.
(line 35)
* history_word_delimiters: History Variables. (line 39)
* history_write_timestamps: History Variables. (line 20)
* next_history: Moving Around the History List.
(line 20)
* previous_history: Moving Around the History List.
(line 15)
* read_history: Managing the History File.
(line 10)
* read_history_range: Managing the History File.
(line 16)
* remove_history: History List Management.
(line 18)
* replace_history_entry: History List Management.
(line 29)
* stifle_history: History List Management.
(line 38)
* unstifle_history: History List Management.
(line 41)
* using_history: Initializing History and State Management.
(line 11)
* where_history: Information About the History List.
(line 15)
* write_history: Managing the History File.
(line 23)

Tag Table:
Node: Top1280
Node: Using History Interactively1908
Node: History Interaction2415
Node: Event Designators3834
Node: Word Designators4758
Node: Modifiers6388
Node: Programming with GNU History7606
Node: Introduction to History8337
Node: History Storage10022
Node: History Functions11157
Node: Initializing History and State Management12141
Node: History List Management12941
Node: Information About the History List14955
Node: Moving Around the History List16437
Node: Searching the History List17426
Node: Managing the History File19344
Node: History Expansion21150
Node: History Variables23045
Node: History Programming Example25834
Node: Copying This Manual28556
Node: GNU Free Documentation License28794
Node: Concept Index51187
Node: Function and Variable Index51737
Node: Top1285
Node: Using History Interactively1910
Node: History Interaction2418
Node: Event Designators3842
Node: Word Designators4777
Node: Modifiers6416
Node: Programming with GNU History7643
Node: Introduction to History8375
Node: History Storage10065
Node: History Functions11200
Node: Initializing History and State Management12189
Node: History List Management13001
Node: Information About the History List15033
Node: Moving Around the History List16530
Node: Searching the History List17531
Node: Managing the History File19463
Node: History Expansion21283
Node: History Variables23191
Node: History Programming Example25997
Node: Copying This Manual28674
Node: GNU Free Documentation License28934
Node: Concept Index51340
Node: Function and Variable Index52180

End Tag Table
+26 -29
View File
@@ -1,9 +1,7 @@
This is TeX, Version 3.14159 (Web2C 7.3.1) (format=tex 2001.2.12) 27 JUL 2004 09:31
**/net/celerra-dm1/fs04/src/ns-engr/work/chet/src/bash/src/lib/readline/doc/his
tory.texi
(/net/celerra-dm1/fs04/src/ns-engr/work/chet/src/bash/src/lib/readline/doc/hist
ory.texi (texinfo.tex Loading texinfo [version 2003-02-03.16]: Basics,
This is TeX, Version 3.14159 (Web2C 7.4.5) (format=tex 2005.3.22) 27 OCT 2005 17:26
**/usr/homes/chet/src/bash/src/lib/readline/doc/history.texi
(/usr/homes/chet/src/bash/src/lib/readline/doc/history.texi (./texinfo.tex
Loading texinfo [version 2003-02-03.16]: Basics,
\bindingoffset=\dimen16
\normaloffset=\dimen17
\pagewidth=\dimen18
@@ -34,8 +32,7 @@ ory.texi (texinfo.tex Loading texinfo [version 2003-02-03.16]: Basics,
\toksD=\toks18
\boxA=\box19
\countA=\count30
fonts,
fonts,
\sffam=\fam8
\textleading=\dimen26
\mainmagstep=\count31
@@ -47,7 +44,8 @@ fonts,
\oddheadline=\toks20
\evenfootline=\toks21
\oddfootline=\toks22
tables,
tables,
\tableindent=\dimen27
\itemindent=\dimen28
\itemmargin=\dimen29
@@ -81,8 +79,7 @@ fonts,
\lastnegativepageno=\count43
\shortappendixwidth=\dimen33
\tocindent=\dimen34
environments,
environments,
\errorbox=\box22
\lispnarrowing=\skip30
\envskipamount=\skip31
@@ -104,12 +101,12 @@ environments,
\macscribble=\write1
\paramno=\count45
\macname=\toks23
cross references,
cross references,
\auxfile=\write2
\savesfregister=\count46
\footnoteno=\count47
(/usr/local/share/texmf/tex/plain/dvips/epsf.tex
(/sw/share/texmf/tex/generic/misc/epsf.tex
\epsffilein=\read0
\epsfframemargin=\dimen39
\epsfframethickness=\dimen40
@@ -126,14 +123,14 @@ environments,
\nolanghelp=\toks26
\defaultparindent=\dimen47
and turning on texinfo input format.) (history.aux)
and turning on texinfo input format.) (./history.aux)
@cpindfile=@write3
@fnindfile=@write4
@vrindfile=@write5
@tpindfile=@write6
@kyindfile=@write7
@pgindfile=@write8
(version.texi) [1
(./version.texi) [1
\openout2 = `history.aux'.
\openout3 = `history.cp'.
@@ -148,25 +145,25 @@ and turning on texinfo input format.) (history.aux)
\openout8 = `history.pg'.
] [2]
(history.toc) [-1] [-2] (hsuser.texi Chapter 1
]
[2] (./history.toc) [-1] [-2] (./hsuser.texi Chapter 1
\openout0 = `history.toc'.
@btindfile=@write9
[1
\openout9 = `history.bt'.
] [2]) (hstech.texi Chapter 2
[3] [4] [5] [6] [7] [8] [9] [10] [11]) Appendix A [12] (fdl.texi [13] [14]
[15] [16] [17] [18]) Appendix B [19] [20] (history.cps) Appendix C [21]
[22] (history.vrs) [23] [24] )
] [2]) (./hstech.texi
Chapter 2 [3] [4] [5] [6] [7] [8] [9] [10] [11]) Appendix A [12] (./fdl.texi
[13] [14] [15] [16] [17] [18]) Appendix B [19] [20] (./history.cps) Appendix C
[21] [22] (./history.vrs) [23] [24] )
Here is how much of TeX's memory you used:
1399 strings out of 13013
16315 string characters out of 97233
45523 words of memory out of 263001
2271 multiletter control sequences out of 10000+0
31953 words of font info for 111 fonts, out of 400000 for 1000
1409 strings out of 98002
16451 string characters out of 1221987
45514 words of memory out of 1000001
2271 multiletter control sequences out of 10000+50000
31953 words of font info for 111 fonts, out of 500000 for 1000
19 hyphenation exceptions out of 1000
15i,6n,17p,311b,649s stack positions out of 300i,100n,500p,50000b,4000s
15i,6n,17p,283b,649s stack positions out of 1500i,500n,5000p,200000b,5000s
Output written on history.dvi (28 pages, 79856 bytes).
Output written on history.dvi (28 pages, 79880 bytes).
+4412 -2071
View File
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+7945 -4978
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -113,10 +113,10 @@
@xrdef{Terminal Management-pg}{35}
@xrdef{Terminal Management-snt}{Section@tie 2.4.9}
@xrdef{Utility Functions-title}{Utility Functions}
@xrdef{Utility Functions-pg}{35}
@xrdef{Utility Functions-pg}{36}
@xrdef{Utility Functions-snt}{Section@tie 2.4.10}
@xrdef{Miscellaneous Functions-title}{Miscellaneous Functions}
@xrdef{Miscellaneous Functions-pg}{36}
@xrdef{Miscellaneous Functions-pg}{37}
@xrdef{Miscellaneous Functions-snt}{Section@tie 2.4.11}
@xrdef{Alternate Interface-title}{Alternate Interface}
@xrdef{Alternate Interface-pg}{37}
+36 -34
View File
@@ -1,20 +1,21 @@
\entry{bell-style}{5}{bell-style}
\entry{bind-tty-special-chars}{5}{bind-tty-special-chars}
\entry{comment-begin}{5}{comment-begin}
\entry{completion-query-items}{5}{completion-query-items}
\entry{convert-meta}{5}{convert-meta}
\entry{disable-completion}{5}{disable-completion}
\entry{editing-mode}{5}{editing-mode}
\entry{enable-keypad}{5}{enable-keypad}
\entry{expand-tilde}{5}{expand-tilde}
\entry{history-preserve-point}{5}{history-preserve-point}
\entry{enable-keypad}{6}{enable-keypad}
\entry{expand-tilde}{6}{expand-tilde}
\entry{history-preserve-point}{6}{history-preserve-point}
\entry{horizontal-scroll-mode}{6}{horizontal-scroll-mode}
\entry{input-meta}{6}{input-meta}
\entry{meta-flag}{6}{meta-flag}
\entry{isearch-terminators}{6}{isearch-terminators}
\entry{keymap}{6}{keymap}
\entry{mark-modified-lines}{6}{mark-modified-lines}
\entry{mark-symlinked-directories}{6}{mark-symlinked-directories}
\entry{match-hidden-files}{6}{match-hidden-files}
\entry{mark-symlinked-directories}{7}{mark-symlinked-directories}
\entry{match-hidden-files}{7}{match-hidden-files}
\entry{output-meta}{7}{output-meta}
\entry{page-completions}{7}{page-completions}
\entry{show-all-if-ambiguous}{7}{show-all-if-ambiguous}
@@ -179,7 +180,7 @@
\entry{rl_clear_message}{33}{\code {rl_clear_message}}
\entry{rl_save_prompt}{33}{\code {rl_save_prompt}}
\entry{rl_restore_prompt}{33}{\code {rl_restore_prompt}}
\entry{rl_expand_prompt}{33}{\code {rl_expand_prompt}}
\entry{rl_expand_prompt}{34}{\code {rl_expand_prompt}}
\entry{rl_set_prompt}{34}{\code {rl_set_prompt}}
\entry{rl_insert_text}{34}{\code {rl_insert_text}}
\entry{rl_delete_text}{34}{\code {rl_delete_text}}
@@ -188,7 +189,7 @@
\entry{rl_push_macro_input}{34}{\code {rl_push_macro_input}}
\entry{rl_read_key}{34}{\code {rl_read_key}}
\entry{rl_getc}{34}{\code {rl_getc}}
\entry{rl_stuff_char}{34}{\code {rl_stuff_char}}
\entry{rl_stuff_char}{35}{\code {rl_stuff_char}}
\entry{rl_execute_next}{35}{\code {rl_execute_next}}
\entry{rl_clear_pending_input}{35}{\code {rl_clear_pending_input}}
\entry{rl_set_keyboard_input_timeout}{35}{\code {rl_set_keyboard_input_timeout}}
@@ -197,8 +198,8 @@
\entry{rl_tty_set_default_bindings}{35}{\code {rl_tty_set_default_bindings}}
\entry{rl_tty_unset_default_bindings}{35}{\code {rl_tty_unset_default_bindings}}
\entry{rl_reset_terminal}{35}{\code {rl_reset_terminal}}
\entry{rl_replace_line}{35}{\code {rl_replace_line}}
\entry{rl_extend_line_buffer}{35}{\code {rl_extend_line_buffer}}
\entry{rl_replace_line}{36}{\code {rl_replace_line}}
\entry{rl_extend_line_buffer}{36}{\code {rl_extend_line_buffer}}
\entry{rl_initialize}{36}{\code {rl_initialize}}
\entry{rl_ding}{36}{\code {rl_ding}}
\entry{rl_alphabetic}{36}{\code {rl_alphabetic}}
@@ -209,60 +210,61 @@
\entry{_rl_to_upper}{36}{\code {_rl_to_upper}}
\entry{_rl_to_lower}{36}{\code {_rl_to_lower}}
\entry{_rl_digit_value}{36}{\code {_rl_digit_value}}
\entry{rl_macro_bind}{36}{\code {rl_macro_bind}}
\entry{rl_macro_dumper}{36}{\code {rl_macro_dumper}}
\entry{rl_macro_bind}{37}{\code {rl_macro_bind}}
\entry{rl_macro_dumper}{37}{\code {rl_macro_dumper}}
\entry{rl_variable_bind}{37}{\code {rl_variable_bind}}
\entry{rl_variable_value}{37}{\code {rl_variable_value}}
\entry{rl_variable_dumper}{37}{\code {rl_variable_dumper}}
\entry{rl_set_paren_blink_timeout}{37}{\code {rl_set_paren_blink_timeout}}
\entry{rl_get_termcap}{37}{\code {rl_get_termcap}}
\entry{rl_callback_handler_install}{37}{\code {rl_callback_handler_install}}
\entry{rl_callback_read_char}{37}{\code {rl_callback_read_char}}
\entry{rl_callback_handler_remove}{37}{\code {rl_callback_handler_remove}}
\entry{rl_callback_read_char}{38}{\code {rl_callback_read_char}}
\entry{rl_callback_handler_remove}{38}{\code {rl_callback_handler_remove}}
\entry{rl_catch_signals}{40}{\code {rl_catch_signals}}
\entry{rl_catch_sigwinch}{40}{\code {rl_catch_sigwinch}}
\entry{rl_cleanup_after_signal}{40}{\code {rl_cleanup_after_signal}}
\entry{rl_free_line_state}{40}{\code {rl_free_line_state}}
\entry{rl_reset_after_signal}{40}{\code {rl_reset_after_signal}}
\entry{rl_resize_terminal}{40}{\code {rl_resize_terminal}}
\entry{rl_set_screen_size}{40}{\code {rl_set_screen_size}}
\entry{rl_get_screen_size}{40}{\code {rl_get_screen_size}}
\entry{rl_reset_after_signal}{41}{\code {rl_reset_after_signal}}
\entry{rl_resize_terminal}{41}{\code {rl_resize_terminal}}
\entry{rl_set_screen_size}{41}{\code {rl_set_screen_size}}
\entry{rl_get_screen_size}{41}{\code {rl_get_screen_size}}
\entry{rl_set_signals}{41}{\code {rl_set_signals}}
\entry{rl_clear_signals}{41}{\code {rl_clear_signals}}
\entry{rl_complete}{42}{\code {rl_complete}}
\entry{rl_completion_entry_function}{42}{\code {rl_completion_entry_function}}
\entry{rl_complete_internal}{42}{\code {rl_complete_internal}}
\entry{rl_complete}{42}{\code {rl_complete}}
\entry{rl_possible_completions}{42}{\code {rl_possible_completions}}
\entry{rl_insert_completions}{42}{\code {rl_insert_completions}}
\entry{rl_completion_mode}{42}{\code {rl_completion_mode}}
\entry{rl_completion_matches}{42}{\code {rl_completion_matches}}
\entry{rl_possible_completions}{43}{\code {rl_possible_completions}}
\entry{rl_insert_completions}{43}{\code {rl_insert_completions}}
\entry{rl_completion_mode}{43}{\code {rl_completion_mode}}
\entry{rl_completion_matches}{43}{\code {rl_completion_matches}}
\entry{rl_filename_completion_function}{43}{\code {rl_filename_completion_function}}
\entry{rl_username_completion_function}{43}{\code {rl_username_completion_function}}
\entry{rl_completion_entry_function}{43}{\code {rl_completion_entry_function}}
\entry{rl_attempted_completion_function}{43}{\code {rl_attempted_completion_function}}
\entry{rl_filename_quoting_function}{43}{\code {rl_filename_quoting_function}}
\entry{rl_filename_dequoting_function}{43}{\code {rl_filename_dequoting_function}}
\entry{rl_attempted_completion_function}{44}{\code {rl_attempted_completion_function}}
\entry{rl_filename_quoting_function}{44}{\code {rl_filename_quoting_function}}
\entry{rl_filename_dequoting_function}{44}{\code {rl_filename_dequoting_function}}
\entry{rl_char_is_quoted_p}{44}{\code {rl_char_is_quoted_p}}
\entry{rl_ignore_some_completions_function}{44}{\code {rl_ignore_some_completions_function}}
\entry{rl_directory_completion_hook}{44}{\code {rl_directory_completion_hook}}
\entry{rl_completion_display_matches_hook}{44}{\code {rl_completion_display_matches_hook}}
\entry{rl_basic_word_break_characters}{44}{\code {rl_basic_word_break_characters}}
\entry{rl_basic_quote_characters}{44}{\code {rl_basic_quote_characters}}
\entry{rl_completion_display_matches_hook}{45}{\code {rl_completion_display_matches_hook}}
\entry{rl_basic_word_break_characters}{45}{\code {rl_basic_word_break_characters}}
\entry{rl_basic_quote_characters}{45}{\code {rl_basic_quote_characters}}
\entry{rl_completer_word_break_characters}{45}{\code {rl_completer_word_break_characters}}
\entry{rl_completion_word_break_hook}{45}{\code {rl_completion_word_break_hook}}
\entry{rl_completer_quote_characters}{45}{\code {rl_completer_quote_characters}}
\entry{rl_filename_quote_characters}{45}{\code {rl_filename_quote_characters}}
\entry{rl_special_prefixes}{45}{\code {rl_special_prefixes}}
\entry{rl_completion_query_items}{45}{\code {rl_completion_query_items}}
\entry{rl_completion_append_character}{45}{\code {rl_completion_append_character}}
\entry{rl_completion_suppress_append}{45}{\code {rl_completion_suppress_append}}
\entry{rl_completion_quote_character}{45}{\code {rl_completion_quote_character}}
\entry{rl_completion_query_items}{46}{\code {rl_completion_query_items}}
\entry{rl_completion_append_character}{46}{\code {rl_completion_append_character}}
\entry{rl_completion_suppress_append}{46}{\code {rl_completion_suppress_append}}
\entry{rl_completion_quote_character}{46}{\code {rl_completion_quote_character}}
\entry{rl_completion_suppress_quote}{46}{\code {rl_completion_suppress_quote}}
\entry{rl_completion_found_quote}{46}{\code {rl_completion_found_quote}}
\entry{rl_completion_mark_symlink_dirs}{46}{\code {rl_completion_mark_symlink_dirs}}
\entry{rl_ignore_completion_duplicates}{46}{\code {rl_ignore_completion_duplicates}}
\entry{rl_filename_completion_desired}{46}{\code {rl_filename_completion_desired}}
\entry{rl_filename_quoting_desired}{46}{\code {rl_filename_quoting_desired}}
\entry{rl_attempted_completion_over}{46}{\code {rl_attempted_completion_over}}
\entry{rl_completion_type}{46}{\code {rl_completion_type}}
\entry{rl_filename_quoting_desired}{47}{\code {rl_filename_quoting_desired}}
\entry{rl_attempted_completion_over}{47}{\code {rl_attempted_completion_over}}
\entry{rl_completion_type}{47}{\code {rl_completion_type}}
\entry{rl_inhibit_completion}{47}{\code {rl_inhibit_completion}}
+36 -34
View File
@@ -17,6 +17,7 @@
\entry {\code {beginning-of-history (M-<)}}{14}
\entry {\code {beginning-of-line (C-a)}}{13}
\entry {bell-style}{5}
\entry {bind-tty-special-chars}{5}
\initial {C}
\entry {\code {call-last-kbd-macro (C-x e)}}{18}
\entry {\code {capitalize-word (M-c)}}{15}
@@ -44,19 +45,19 @@
\initial {E}
\entry {editing-mode}{5}
\entry {\code {emacs-editing-mode (C-e)}}{19}
\entry {enable-keypad}{5}
\entry {enable-keypad}{6}
\entry {\code {end-kbd-macro (C-x ))}}{18}
\entry {\code {end-of-history (M->)}}{14}
\entry {\code {end-of-line (C-e)}}{13}
\entry {\code {exchange-point-and-mark (C-x C-x)}}{18}
\entry {expand-tilde}{5}
\entry {expand-tilde}{6}
\initial {F}
\entry {\code {forward-backward-delete-char ()}}{15}
\entry {\code {forward-char (C-f)}}{13}
\entry {\code {forward-search-history (C-s)}}{14}
\entry {\code {forward-word (M-f)}}{13}
\initial {H}
\entry {history-preserve-point}{5}
\entry {history-preserve-point}{6}
\entry {\code {history-search-backward ()}}{14}
\entry {\code {history-search-forward ()}}{14}
\entry {horizontal-scroll-mode}{6}
@@ -73,8 +74,8 @@
\entry {\code {kill-word (M-d)}}{16}
\initial {M}
\entry {mark-modified-lines}{6}
\entry {mark-symlinked-directories}{6}
\entry {match-hidden-files}{6}
\entry {mark-symlinked-directories}{7}
\entry {match-hidden-files}{7}
\entry {\code {menu-complete ()}}{17}
\entry {meta-flag}{6}
\initial {N}
@@ -102,10 +103,10 @@
\entry {\code {rl_add_undo}}{32}
\entry {\code {rl_alphabetic}}{36}
\entry {\code {rl_already_prompted}}{25}
\entry {\code {rl_attempted_completion_function}}{43}
\entry {\code {rl_attempted_completion_over}}{46}
\entry {\code {rl_basic_quote_characters}}{44}
\entry {\code {rl_basic_word_break_characters}}{44}
\entry {\code {rl_attempted_completion_function}}{44}
\entry {\code {rl_attempted_completion_over}}{47}
\entry {\code {rl_basic_quote_characters}}{45}
\entry {\code {rl_basic_word_break_characters}}{45}
\entry {\code {rl_begin_undo_group}}{32}
\entry {\code {rl_bind_key}}{29}
\entry {\code {rl_bind_key_if_unbound}}{29}
@@ -117,8 +118,8 @@
\entry {\code {rl_bind_keyseq_in_map}}{30}
\entry {\code {rl_binding_keymap}}{26}
\entry {\code {rl_callback_handler_install}}{37}
\entry {\code {rl_callback_handler_remove}}{37}
\entry {\code {rl_callback_read_char}}{37}
\entry {\code {rl_callback_handler_remove}}{38}
\entry {\code {rl_callback_read_char}}{38}
\entry {\code {rl_catch_signals}}{40}
\entry {\code {rl_catch_sigwinch}}{40}
\entry {\code {rl_char_is_quoted_p}}{44}
@@ -130,18 +131,18 @@
\entry {\code {rl_complete_internal}}{42}
\entry {\code {rl_completer_quote_characters}}{45}
\entry {\code {rl_completer_word_break_characters}}{45}
\entry {\code {rl_completion_append_character}}{45}
\entry {\code {rl_completion_display_matches_hook}}{44}
\entry {\code {rl_completion_append_character}}{46}
\entry {\code {rl_completion_display_matches_hook}}{45}
\entry {\code {rl_completion_entry_function}}{42, 43}
\entry {\code {rl_completion_found_quote}}{46}
\entry {\code {rl_completion_mark_symlink_dirs}}{46}
\entry {\code {rl_completion_matches}}{42}
\entry {\code {rl_completion_mode}}{42}
\entry {\code {rl_completion_query_items}}{45}
\entry {\code {rl_completion_quote_character}}{45}
\entry {\code {rl_completion_suppress_append}}{45}
\entry {\code {rl_completion_matches}}{43}
\entry {\code {rl_completion_mode}}{43}
\entry {\code {rl_completion_query_items}}{46}
\entry {\code {rl_completion_quote_character}}{46}
\entry {\code {rl_completion_suppress_append}}{46}
\entry {\code {rl_completion_suppress_quote}}{46}
\entry {\code {rl_completion_type}}{46}
\entry {\code {rl_completion_type}}{47}
\entry {\code {rl_completion_word_break_hook}}{45}
\entry {\code {rl_copy_keymap}}{28}
\entry {\code {rl_copy_text}}{34}
@@ -164,15 +165,15 @@
\entry {\code {rl_execute_next}}{35}
\entry {\code {rl_executing_keymap}}{26}
\entry {\code {rl_executing_macro}}{26}
\entry {\code {rl_expand_prompt}}{33}
\entry {\code {rl_expand_prompt}}{34}
\entry {\code {rl_explicit_arg}}{27}
\entry {\code {rl_extend_line_buffer}}{35}
\entry {\code {rl_extend_line_buffer}}{36}
\entry {\code {rl_filename_completion_desired}}{46}
\entry {\code {rl_filename_completion_function}}{43}
\entry {\code {rl_filename_dequoting_function}}{43}
\entry {\code {rl_filename_dequoting_function}}{44}
\entry {\code {rl_filename_quote_characters}}{45}
\entry {\code {rl_filename_quoting_desired}}{46}
\entry {\code {rl_filename_quoting_function}}{43}
\entry {\code {rl_filename_quoting_desired}}{47}
\entry {\code {rl_filename_quoting_function}}{44}
\entry {\code {rl_forced_update_display}}{33}
\entry {\code {rl_free_line_state}}{40}
\entry {\code {rl_free_undo_list}}{32}
@@ -183,7 +184,7 @@
\entry {\code {rl_get_keymap}}{29}
\entry {\code {rl_get_keymap_by_name}}{29}
\entry {\code {rl_get_keymap_name}}{29}
\entry {\code {rl_get_screen_size}}{40}
\entry {\code {rl_get_screen_size}}{41}
\entry {\code {rl_get_termcap}}{37}
\entry {\code {rl_getc}}{34}
\entry {\code {rl_getc_function}}{26}
@@ -192,7 +193,7 @@
\entry {\code {rl_ignore_some_completions_function}}{44}
\entry {\code {rl_inhibit_completion}}{47}
\entry {\code {rl_initialize}}{36}
\entry {\code {rl_insert_completions}}{42}
\entry {\code {rl_insert_completions}}{43}
\entry {\code {rl_insert_text}}{34}
\entry {\code {rl_instream}}{25}
\entry {\code {rl_invoking_keyseqs}}{31}
@@ -202,8 +203,8 @@
\entry {\code {rl_library_version}}{25}
\entry {\code {rl_line_buffer}}{24}
\entry {\code {rl_list_funmap_names}}{31}
\entry {\code {rl_macro_bind}}{36}
\entry {\code {rl_macro_dumper}}{36}
\entry {\code {rl_macro_bind}}{37}
\entry {\code {rl_macro_dumper}}{37}
\entry {\code {rl_make_bare_keymap}}{28}
\entry {\code {rl_make_keymap}}{28}
\entry {\code {rl_mark}}{24}
@@ -218,7 +219,7 @@
\entry {\code {rl_parse_and_bind}}{30}
\entry {\code {rl_pending_input}}{24}
\entry {\code {rl_point}}{24}
\entry {\code {rl_possible_completions}}{42}
\entry {\code {rl_possible_completions}}{43}
\entry {\code {rl_pre_input_hook}}{25}
\entry {\code {rl_prep_term_function}}{26}
\entry {\code {rl_prep_terminal}}{35}
@@ -231,11 +232,11 @@
\entry {\code {rl_readline_version}}{25}
\entry {\code {rl_redisplay}}{32}
\entry {\code {rl_redisplay_function}}{26}
\entry {\code {rl_replace_line}}{35}
\entry {\code {rl_reset_after_signal}}{40}
\entry {\code {rl_replace_line}}{36}
\entry {\code {rl_reset_after_signal}}{41}
\entry {\code {rl_reset_line_state}}{33}
\entry {\code {rl_reset_terminal}}{35}
\entry {\code {rl_resize_terminal}}{40}
\entry {\code {rl_resize_terminal}}{41}
\entry {\code {rl_restore_prompt}}{33}
\entry {\code {rl_save_prompt}}{33}
\entry {\code {rl_set_key}}{30}
@@ -243,12 +244,12 @@
\entry {\code {rl_set_keymap}}{29}
\entry {\code {rl_set_paren_blink_timeout}}{37}
\entry {\code {rl_set_prompt}}{34}
\entry {\code {rl_set_screen_size}}{40}
\entry {\code {rl_set_screen_size}}{41}
\entry {\code {rl_set_signals}}{41}
\entry {\code {rl_show_char}}{33}
\entry {\code {rl_special_prefixes}}{45}
\entry {\code {rl_startup_hook}}{25}
\entry {\code {rl_stuff_char}}{34}
\entry {\code {rl_stuff_char}}{35}
\entry {\code {rl_terminal_name}}{25}
\entry {\code {rl_tty_set_default_bindings}}{35}
\entry {\code {rl_tty_unset_default_bindings}}{35}
@@ -259,6 +260,7 @@
\entry {\code {rl_username_completion_function}}{43}
\entry {\code {rl_variable_bind}}{37}
\entry {\code {rl_variable_dumper}}{37}
\entry {\code {rl_variable_value}}{37}
\initial {S}
\entry {\code {self-insert (a, b, A, 1, !, \dots {})}}{15}
\entry {\code {set-mark (C-@)}}{18}
+30 -33
View File
@@ -1,9 +1,7 @@
This is TeX, Version 3.14159 (Web2C 7.3.1) (format=tex 2001.2.12) 27 JUL 2004 09:31
**/net/celerra-dm1/fs04/src/ns-engr/work/chet/src/bash/src/lib/readline/doc/rlm
an.texi
(/net/celerra-dm1/fs04/src/ns-engr/work/chet/src/bash/src/lib/readline/doc/rlma
n.texi (texinfo.tex Loading texinfo [version 2003-02-03.16]: Basics,
This is TeX, Version 3.14159 (Web2C 7.4.5) (format=tex 2005.3.22) 27 OCT 2005 17:26
**/usr/homes/chet/src/bash/src/lib/readline/doc/rlman.texi
(/usr/homes/chet/src/bash/src/lib/readline/doc/rlman.texi (./texinfo.tex
Loading texinfo [version 2003-02-03.16]: Basics,
\bindingoffset=\dimen16
\normaloffset=\dimen17
\pagewidth=\dimen18
@@ -34,8 +32,7 @@ n.texi (texinfo.tex Loading texinfo [version 2003-02-03.16]: Basics,
\toksD=\toks18
\boxA=\box19
\countA=\count30
fonts,
fonts,
\sffam=\fam8
\textleading=\dimen26
\mainmagstep=\count31
@@ -47,7 +44,8 @@ fonts,
\oddheadline=\toks20
\evenfootline=\toks21
\oddfootline=\toks22
tables,
tables,
\tableindent=\dimen27
\itemindent=\dimen28
\itemmargin=\dimen29
@@ -81,8 +79,7 @@ fonts,
\lastnegativepageno=\count43
\shortappendixwidth=\dimen33
\tocindent=\dimen34
environments,
environments,
\errorbox=\box22
\lispnarrowing=\skip30
\envskipamount=\skip31
@@ -104,12 +101,12 @@ environments,
\macscribble=\write1
\paramno=\count45
\macname=\toks23
cross references,
cross references,
\auxfile=\write2
\savesfregister=\count46
\footnoteno=\count47
(/usr/local/share/texmf/tex/plain/dvips/epsf.tex
(/sw/share/texmf/tex/generic/misc/epsf.tex
\epsffilein=\read0
\epsfframemargin=\dimen39
\epsfframethickness=\dimen40
@@ -126,14 +123,14 @@ environments,
\nolanghelp=\toks26
\defaultparindent=\dimen47
and turning on texinfo input format.) (rlman.aux)
and turning on texinfo input format.) (./rlman.aux)
@cpindfile=@write3
@fnindfile=@write4
@vrindfile=@write5
@tpindfile=@write6
@kyindfile=@write7
@pgindfile=@write8
(version.texi) [1
(./version.texi) [1
\openout2 = `rlman.aux'.
\openout3 = `rlman.cp'.
@@ -148,8 +145,8 @@ and turning on texinfo input format.) (rlman.aux)
\openout8 = `rlman.pg'.
] [2]
(rlman.toc [-1]) [-2] (rluser.texi
]
[2] (./rlman.toc [-1]) [-2] (./rluser.texi
@btindfile=@write9
Chapter 1
\openout0 = `rlman.toc'.
@@ -158,7 +155,7 @@ and turning on texinfo input format.) (rlman.aux)
\openout9 = `rlman.bt'.
] [2] [3] [4] [5]
Underfull \hbox (badness 5231) in paragraph at lines 488--504
Underfull \hbox (badness 5231) in paragraph at lines 500--516
@texttt emacs-meta[]@textrm , @texttt emacs-ctlx[]@textrm , @texttt vi[]@textr
m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
@@ -171,7 +168,7 @@ m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
.etc.
[6] [7] [8] [9] [10]
Overfull \hbox (26.43913pt too wide) in paragraph at lines 801--801
Overfull \hbox (26.43913pt too wide) in paragraph at lines 813--813
[]@texttt Meta-Control-h: backward-kill-word Text after the function name is i
gnored[] |
@@ -183,10 +180,10 @@ gnored[] |
.@texttt t
.etc.
[11] [12] [13] [14] [15] [16] [17] [18]) (rltech.texi Chapter 2 [19] [20]
[11] [12] [13] [14] [15] [16] [17] [18]) (./rltech.texi Chapter 2 [19] [20]
[21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35]
[36] [37] [38] [39] [40] [41] [42] [43] [44] [45]
Underfull \hbox (badness 7379) in paragraph at lines 1792--1797
[36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46]
Underfull \hbox (badness 7379) in paragraph at lines 1807--1812
[]@textrm If an application-specific com-ple-tion func-tion as-signed to @text
tt rl_attempted_
@@ -198,16 +195,16 @@ tt rl_attempted_
.@glue 3.65 plus 1.825 minus 1.21666
.etc.
[46] [47] [48] [49] [50] [51] [52] [53] [54]) Appendix A [55] [56] (fdl.texi
[57] [58] [59] [60] [61] [62]) (Concept Index) [63] [64] (rlman.cps)
(Function and Variable Index) [65] [66] (rlman.fns [67] [68]) [69] [70] )
[47] [48] [49] [50] [51] [52] [53] [54]) Appendix A [55] [56] (./fdl.texi
[57] [58] [59] [60] [61] [62]) (Concept Index) [63] [64] (./rlman.cps)
(Function and Variable Index) [65] [66] (./rlman.fns [67] [68]) [69] [70] )
Here is how much of TeX's memory you used:
1489 strings out of 13013
18360 string characters out of 97233
58248 words of memory out of 263001
2361 multiletter control sequences out of 10000+0
31953 words of font info for 111 fonts, out of 400000 for 1000
1499 strings out of 98002
18486 string characters out of 1221987
58299 words of memory out of 1000001
2361 multiletter control sequences out of 10000+50000
31953 words of font info for 111 fonts, out of 500000 for 1000
19 hyphenation exceptions out of 1000
15i,8n,17p,309b,695s stack positions out of 300i,100n,500p,50000b,4000s
15i,8n,17p,281b,695s stack positions out of 1500i,500n,5000p,200000b,5000s
Output written on rlman.dvi (74 pages, 274068 bytes).
Output written on rlman.dvi (74 pages, 276580 bytes).
Binary file not shown.
+196 -178
View File
@@ -1,6 +1,6 @@
<HTML>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- Created on July, 27 2004 by texi2html 1.64 -->
<!-- Created on October, 27 2005 by texi2html 1.64 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
Karl Berry <karl@freefriends.org>
@@ -559,7 +559,12 @@ change from the default Emacs-like key binding to use
</pre></td></tr></table></P><P>
Variable names and values, where appropriate, are recognized without regard
to case.
to case. Unrecognized variable names are ignored.
</P><P>
Boolean variables (those that can be set to on or off) are set to on if
the value is null or empty, <VAR>on</VAR> (case-insensitive), or 1. Any other
value results in the variable being set to off.
</P><P>
A great deal of run-time behavior is changeable with the following
@@ -578,8 +583,15 @@ If set to <SAMP>`audible'</SAMP> (the default), Readline attempts to ring
the terminal's bell.
<P>
<DT><CODE>comment-begin</CODE>
<DT><CODE>bind-tty-special-chars</CODE>
<DD><A NAME="IDX6"></A>
If set to <SAMP>`on'</SAMP>, Readline attempts to bind the control characters
treated specially by the kernel's terminal driver to their Readline
equivalents.
<P>
<DT><CODE>comment-begin</CODE>
<DD><A NAME="IDX7"></A>
The string to insert at the beginning of the line when the
<CODE>insert-comment</CODE> command is executed. The default value
is <CODE>"#"</CODE>.
@@ -592,18 +604,19 @@ The default value is <SAMP>`off'</SAMP>.
<P>
<DT><CODE>completion-query-items</CODE>
<DD><A NAME="IDX7"></A>
<DD><A NAME="IDX8"></A>
The number of possible completions that determines when the user is
asked whether the list of possibilities should be displayed.
If the number of possible completions is greater than this value,
Readline will ask the user whether or not he wishes to view
them; otherwise, they are simply listed.
This variable must be set to an integer value greater than or equal to 0.
A negative value means Readline should never ask.
The default limit is <CODE>100</CODE>.
<P>
<DT><CODE>convert-meta</CODE>
<DD><A NAME="IDX8"></A>
<DD><A NAME="IDX9"></A>
If set to <SAMP>`on'</SAMP>, Readline will convert characters with the
eighth bit set to an ASCII key sequence by stripping the eighth
bit and prefixing an <KBD>ESC</KBD> character, converting them to a
@@ -611,14 +624,14 @@ meta-prefixed key sequence. The default value is <SAMP>`on'</SAMP>.
<P>
<DT><CODE>disable-completion</CODE>
<DD><A NAME="IDX9"></A>
<DD><A NAME="IDX10"></A>
If set to <SAMP>`On'</SAMP>, Readline will inhibit word completion.
Completion characters will be inserted into the line as if they had
been mapped to <CODE>self-insert</CODE>. The default is <SAMP>`off'</SAMP>.
<P>
<DT><CODE>editing-mode</CODE>
<DD><A NAME="IDX10"></A>
<DD><A NAME="IDX11"></A>
The <CODE>editing-mode</CODE> variable controls which default set of
key bindings is used. By default, Readline starts up in Emacs editing
mode, where the keystrokes are most similar to Emacs. This variable can be
@@ -626,26 +639,27 @@ set to either <SAMP>`emacs'</SAMP> or <SAMP>`vi'</SAMP>.
<P>
<DT><CODE>enable-keypad</CODE>
<DD><A NAME="IDX11"></A>
<DD><A NAME="IDX12"></A>
When set to <SAMP>`on'</SAMP>, Readline will try to enable the application
keypad when it is called. Some systems need this to enable the
arrow keys. The default is <SAMP>`off'</SAMP>.
<P>
<DT><CODE>expand-tilde</CODE>
<DD><A NAME="IDX12"></A>
<DD><A NAME="IDX13"></A>
If set to <SAMP>`on'</SAMP>, tilde expansion is performed when Readline
attempts word completion. The default is <SAMP>`off'</SAMP>.
<P>
<A NAME="IDX13"></A>
<DT><CODE>history-preserve-point</CODE>
<DD><A NAME="IDX14"></A>
If set to <SAMP>`on'</SAMP>, the history code attempts to place point at the
same location on each history line retrieved with <CODE>previous-history</CODE>
or <CODE>next-history</CODE>.
</P><P>
or <CODE>next-history</CODE>. The default is <SAMP>`off'</SAMP>.
<P>
<DT><CODE>horizontal-scroll-mode</CODE>
<DD><A NAME="IDX14"></A>
<DD><A NAME="IDX15"></A>
This variable can be set to either <SAMP>`on'</SAMP> or <SAMP>`off'</SAMP>. Setting it
to <SAMP>`on'</SAMP> means that the text of the lines being edited will scroll
horizontally on a single screen line when they are longer than the width
@@ -654,8 +668,8 @@ this variable is set to <SAMP>`off'</SAMP>.
<P>
<DT><CODE>input-meta</CODE>
<DD><A NAME="IDX15"></A>
<A NAME="IDX16"></A>
<DD><A NAME="IDX16"></A>
<A NAME="IDX17"></A>
If set to <SAMP>`on'</SAMP>, Readline will enable eight-bit input (it
will not clear the eighth bit in the characters it reads),
regardless of what the terminal claims it can support. The
@@ -664,7 +678,7 @@ synonym for this variable.
<P>
<DT><CODE>isearch-terminators</CODE>
<DD><A NAME="IDX17"></A>
<DD><A NAME="IDX18"></A>
The string of characters that should terminate an incremental search without
subsequently executing the character as a command (see section <A HREF="rluserman.html#SEC8">1.2.5 Searching for Commands in the History</A>).
If this variable has not been given a value, the characters <KBD>ESC</KBD> and
@@ -672,7 +686,7 @@ If this variable has not been given a value, the characters <KBD>ESC</KBD> and
<P>
<DT><CODE>keymap</CODE>
<DD><A NAME="IDX18"></A>
<DD><A NAME="IDX19"></A>
Sets Readline's idea of the current keymap for key binding commands.
Acceptable <CODE>keymap</CODE> names are
<CODE>emacs</CODE>,
@@ -695,14 +709,14 @@ appended. The default is <SAMP>`on'</SAMP>.
<P>
<DT><CODE>mark-modified-lines</CODE>
<DD><A NAME="IDX19"></A>
<DD><A NAME="IDX20"></A>
This variable, when set to <SAMP>`on'</SAMP>, causes Readline to display an
asterisk (<SAMP>`*'</SAMP>) at the start of history lines which have been modified.
This variable is <SAMP>`off'</SAMP> by default.
<P>
<DT><CODE>mark-symlinked-directories</CODE>
<DD><A NAME="IDX20"></A>
<DD><A NAME="IDX21"></A>
If set to <SAMP>`on'</SAMP>, completed names which are symbolic links
to directories have a slash appended (subject to the value of
<CODE>mark-directories</CODE>).
@@ -710,7 +724,7 @@ The default is <SAMP>`off'</SAMP>.
<P>
<DT><CODE>match-hidden-files</CODE>
<DD><A NAME="IDX21"></A>
<DD><A NAME="IDX22"></A>
This variable, when set to <SAMP>`on'</SAMP>, causes Readline to match files whose
names begin with a <SAMP>`.'</SAMP> (hidden files) when performing filename
completion, unless the leading <SAMP>`.'</SAMP> is
@@ -719,14 +733,14 @@ This variable is <SAMP>`on'</SAMP> by default.
<P>
<DT><CODE>output-meta</CODE>
<DD><A NAME="IDX22"></A>
<DD><A NAME="IDX23"></A>
If set to <SAMP>`on'</SAMP>, Readline will display characters with the
eighth bit set directly rather than as a meta-prefixed escape
sequence. The default is <SAMP>`off'</SAMP>.
<P>
<DT><CODE>page-completions</CODE>
<DD><A NAME="IDX23"></A>
<DD><A NAME="IDX24"></A>
If set to <SAMP>`on'</SAMP>, Readline uses an internal <CODE>more</CODE>-like pager
to display a screenful of possible completions at a time.
This variable is <SAMP>`on'</SAMP> by default.
@@ -739,7 +753,7 @@ The default is <SAMP>`off'</SAMP>.
<P>
<DT><CODE>show-all-if-ambiguous</CODE>
<DD><A NAME="IDX24"></A>
<DD><A NAME="IDX25"></A>
This alters the default behavior of the completion functions. If
set to <SAMP>`on'</SAMP>,
words which have more than one possible completion cause the
@@ -748,7 +762,7 @@ The default value is <SAMP>`off'</SAMP>.
<P>
<DT><CODE>show-all-if-unmodified</CODE>
<DD><A NAME="IDX25"></A>
<DD><A NAME="IDX26"></A>
This alters the default behavior of the completion functions in
a fashion similar to <VAR>show-all-if-ambiguous</VAR>.
If set to <SAMP>`on'</SAMP>,
@@ -760,7 +774,7 @@ The default value is <SAMP>`off'</SAMP>.
<P>
<DT><CODE>visible-stats</CODE>
<DD><A NAME="IDX26"></A>
<DD><A NAME="IDX27"></A>
If set to <SAMP>`on'</SAMP>, a character denoting a file's type
is appended to the filename when listing possible
completions. The default is <SAMP>`off'</SAMP>.
@@ -1174,54 +1188,54 @@ The text between the point and mark is referred to as the <EM>region</EM>.
<H3> 1.4.1 Commands For Moving </H3>
<!--docid::SEC14::-->
<DL COMPACT>
<A NAME="IDX27"></A>
<A NAME="IDX28"></A>
<DT><CODE>beginning-of-line (C-a)</CODE>
<DD><A NAME="IDX28"></A>
<DD><A NAME="IDX29"></A>
Move to the start of the current line.
<P>
<A NAME="IDX29"></A>
<A NAME="IDX30"></A>
<DT><CODE>end-of-line (C-e)</CODE>
<DD><A NAME="IDX30"></A>
<DD><A NAME="IDX31"></A>
Move to the end of the line.
<P>
<A NAME="IDX31"></A>
<A NAME="IDX32"></A>
<DT><CODE>forward-char (C-f)</CODE>
<DD><A NAME="IDX32"></A>
<DD><A NAME="IDX33"></A>
Move forward a character.
<P>
<A NAME="IDX33"></A>
<A NAME="IDX34"></A>
<DT><CODE>backward-char (C-b)</CODE>
<DD><A NAME="IDX34"></A>
<DD><A NAME="IDX35"></A>
Move back a character.
<P>
<A NAME="IDX35"></A>
<A NAME="IDX36"></A>
<DT><CODE>forward-word (M-f)</CODE>
<DD><A NAME="IDX36"></A>
<DD><A NAME="IDX37"></A>
Move forward to the end of the next word. Words are composed of
letters and digits.
<P>
<A NAME="IDX37"></A>
<A NAME="IDX38"></A>
<DT><CODE>backward-word (M-b)</CODE>
<DD><A NAME="IDX38"></A>
<DD><A NAME="IDX39"></A>
Move back to the start of the current or previous word. Words are
composed of letters and digits.
<P>
<A NAME="IDX39"></A>
<A NAME="IDX40"></A>
<DT><CODE>clear-screen (C-l)</CODE>
<DD><A NAME="IDX40"></A>
<DD><A NAME="IDX41"></A>
Clear the screen and redraw the current line,
leaving the current line at the top of the screen.
<P>
<A NAME="IDX41"></A>
<A NAME="IDX42"></A>
<DT><CODE>redraw-current-line ()</CODE>
<DD><A NAME="IDX42"></A>
<DD><A NAME="IDX43"></A>
Refresh the current line. By default, this is unbound.
<P>
@@ -1247,9 +1261,9 @@ Refresh the current line. By default, this is unbound.
<P>
<DL COMPACT>
<A NAME="IDX43"></A>
<A NAME="IDX44"></A>
<DT><CODE>accept-line (Newline or Return)</CODE>
<DD><A NAME="IDX44"></A>
<DD><A NAME="IDX45"></A>
Accept the line regardless of where the cursor is.
If this line is
non-empty, it may be added to the history list for future recall with
@@ -1258,97 +1272,101 @@ If this line is a modified history line, the history line is restored
to its original state.
<P>
<A NAME="IDX45"></A>
<A NAME="IDX46"></A>
<DT><CODE>previous-history (C-p)</CODE>
<DD><A NAME="IDX46"></A>
<DD><A NAME="IDX47"></A>
Move `back' through the history list, fetching the previous command.
<P>
<A NAME="IDX47"></A>
<A NAME="IDX48"></A>
<DT><CODE>next-history (C-n)</CODE>
<DD><A NAME="IDX48"></A>
<DD><A NAME="IDX49"></A>
Move `forward' through the history list, fetching the next command.
<P>
<A NAME="IDX49"></A>
<A NAME="IDX50"></A>
<DT><CODE>beginning-of-history (M-&#60;)</CODE>
<DD><A NAME="IDX50"></A>
<DD><A NAME="IDX51"></A>
Move to the first line in the history.
<P>
<A NAME="IDX51"></A>
<A NAME="IDX52"></A>
<DT><CODE>end-of-history (M-&#62;)</CODE>
<DD><A NAME="IDX52"></A>
<DD><A NAME="IDX53"></A>
Move to the end of the input history, i.e., the line currently
being entered.
<P>
<A NAME="IDX53"></A>
<A NAME="IDX54"></A>
<DT><CODE>reverse-search-history (C-r)</CODE>
<DD><A NAME="IDX54"></A>
<DD><A NAME="IDX55"></A>
Search backward starting at the current line and moving `up' through
the history as necessary. This is an incremental search.
<P>
<A NAME="IDX55"></A>
<A NAME="IDX56"></A>
<DT><CODE>forward-search-history (C-s)</CODE>
<DD><A NAME="IDX56"></A>
<DD><A NAME="IDX57"></A>
Search forward starting at the current line and moving `down' through
the the history as necessary. This is an incremental search.
<P>
<A NAME="IDX57"></A>
<A NAME="IDX58"></A>
<DT><CODE>non-incremental-reverse-search-history (M-p)</CODE>
<DD><A NAME="IDX58"></A>
<DD><A NAME="IDX59"></A>
Search backward starting at the current line and moving `up'
through the history as necessary using a non-incremental search
for a string supplied by the user.
<P>
<A NAME="IDX59"></A>
<A NAME="IDX60"></A>
<DT><CODE>non-incremental-forward-search-history (M-n)</CODE>
<DD><A NAME="IDX60"></A>
<DD><A NAME="IDX61"></A>
Search forward starting at the current line and moving `down'
through the the history as necessary using a non-incremental search
for a string supplied by the user.
<P>
<A NAME="IDX61"></A>
<A NAME="IDX62"></A>
<DT><CODE>history-search-forward ()</CODE>
<DD><A NAME="IDX62"></A>
<DD><A NAME="IDX63"></A>
Search forward through the history for the string of characters
between the start of the current line and the point.
This is a non-incremental search.
By default, this command is unbound.
<P>
<A NAME="IDX63"></A>
<A NAME="IDX64"></A>
<DT><CODE>history-search-backward ()</CODE>
<DD><A NAME="IDX64"></A>
<DD><A NAME="IDX65"></A>
Search backward through the history for the string of characters
between the start of the current line and the point. This
is a non-incremental search. By default, this command is unbound.
<P>
<A NAME="IDX65"></A>
<A NAME="IDX66"></A>
<DT><CODE>yank-nth-arg (M-C-y)</CODE>
<DD><A NAME="IDX66"></A>
<DD><A NAME="IDX67"></A>
Insert the first argument to the previous command (usually
the second word on the previous line) at point.
With an argument <VAR>n</VAR>,
insert the <VAR>n</VAR>th word from the previous command (the words
in the previous command begin with word 0). A negative argument
inserts the <VAR>n</VAR>th word from the end of the previous command.
Once the argument <VAR>n</VAR> is computed, the argument is extracted
as if the <SAMP>`!<VAR>n</VAR>'</SAMP> history expansion had been specified.
<P>
<A NAME="IDX67"></A>
<A NAME="IDX68"></A>
<DT><CODE>yank-last-arg (M-. or M-_)</CODE>
<DD><A NAME="IDX68"></A>
<DD><A NAME="IDX69"></A>
Insert last argument to the previous command (the last word of the
previous history entry). With an
argument, behave exactly like <CODE>yank-nth-arg</CODE>.
Successive calls to <CODE>yank-last-arg</CODE> move back through the history
list, inserting the last argument of each line in turn.
The history expansion facilities are used to extract the last argument,
as if the <SAMP>`!$'</SAMP> history expansion had been specified.
<P>
</DL>
@@ -1373,52 +1391,52 @@ list, inserting the last argument of each line in turn.
<P>
<DL COMPACT>
<A NAME="IDX69"></A>
<A NAME="IDX70"></A>
<DT><CODE>delete-char (C-d)</CODE>
<DD><A NAME="IDX70"></A>
<DD><A NAME="IDX71"></A>
Delete the character at point. If point is at the
beginning of the line, there are no characters in the line, and
the last character typed was not bound to <CODE>delete-char</CODE>, then
return EOF.
<P>
<A NAME="IDX71"></A>
<A NAME="IDX72"></A>
<DT><CODE>backward-delete-char (Rubout)</CODE>
<DD><A NAME="IDX72"></A>
<DD><A NAME="IDX73"></A>
Delete the character behind the cursor. A numeric argument means
to kill the characters instead of deleting them.
<P>
<A NAME="IDX73"></A>
<A NAME="IDX74"></A>
<DT><CODE>forward-backward-delete-char ()</CODE>
<DD><A NAME="IDX74"></A>
<DD><A NAME="IDX75"></A>
Delete the character under the cursor, unless the cursor is at the
end of the line, in which case the character behind the cursor is
deleted. By default, this is not bound to a key.
<P>
<A NAME="IDX75"></A>
<A NAME="IDX76"></A>
<DT><CODE>quoted-insert (C-q or C-v)</CODE>
<DD><A NAME="IDX76"></A>
<DD><A NAME="IDX77"></A>
Add the next character typed to the line verbatim. This is
how to insert key sequences like <KBD>C-q</KBD>, for example.
<P>
<A NAME="IDX77"></A>
<A NAME="IDX78"></A>
<DT><CODE>tab-insert (M-<KBD>TAB</KBD>)</CODE>
<DD><A NAME="IDX78"></A>
<DD><A NAME="IDX79"></A>
Insert a tab character.
<P>
<A NAME="IDX79"></A>
<A NAME="IDX80"></A>
<DT><CODE>self-insert (a, b, A, 1, !, <small>...</small>)</CODE>
<DD><A NAME="IDX80"></A>
<DD><A NAME="IDX81"></A>
Insert yourself.
<P>
<A NAME="IDX81"></A>
<A NAME="IDX82"></A>
<DT><CODE>transpose-chars (C-t)</CODE>
<DD><A NAME="IDX82"></A>
<DD><A NAME="IDX83"></A>
Drag the character before the cursor forward over
the character at the cursor, moving the
cursor forward as well. If the insertion point
@@ -1427,39 +1445,39 @@ transposes the last two characters of the line.
Negative arguments have no effect.
<P>
<A NAME="IDX83"></A>
<A NAME="IDX84"></A>
<DT><CODE>transpose-words (M-t)</CODE>
<DD><A NAME="IDX84"></A>
<DD><A NAME="IDX85"></A>
Drag the word before point past the word after point,
moving point past that word as well.
If the insertion point is at the end of the line, this transposes
the last two words on the line.
<P>
<A NAME="IDX85"></A>
<A NAME="IDX86"></A>
<DT><CODE>upcase-word (M-u)</CODE>
<DD><A NAME="IDX86"></A>
<DD><A NAME="IDX87"></A>
Uppercase the current (or following) word. With a negative argument,
uppercase the previous word, but do not move the cursor.
<P>
<A NAME="IDX87"></A>
<A NAME="IDX88"></A>
<DT><CODE>downcase-word (M-l)</CODE>
<DD><A NAME="IDX88"></A>
<DD><A NAME="IDX89"></A>
Lowercase the current (or following) word. With a negative argument,
lowercase the previous word, but do not move the cursor.
<P>
<A NAME="IDX89"></A>
<A NAME="IDX90"></A>
<DT><CODE>capitalize-word (M-c)</CODE>
<DD><A NAME="IDX90"></A>
<DD><A NAME="IDX91"></A>
Capitalize the current (or following) word. With a negative argument,
capitalize the previous word, but do not move the cursor.
<P>
<A NAME="IDX91"></A>
<A NAME="IDX92"></A>
<DT><CODE>overwrite-mode ()</CODE>
<DD><A NAME="IDX92"></A>
<DD><A NAME="IDX93"></A>
Toggle overwrite mode. With an explicit positive numeric argument,
switches to overwrite mode. With an explicit non-positive numeric
argument, switches to insert mode. This command affects only
@@ -1499,106 +1517,106 @@ By default, this command is unbound.
<DL COMPACT>
<A NAME="IDX93"></A>
<A NAME="IDX94"></A>
<DT><CODE>kill-line (C-k)</CODE>
<DD><A NAME="IDX94"></A>
<DD><A NAME="IDX95"></A>
Kill the text from point to the end of the line.
<P>
<A NAME="IDX95"></A>
<A NAME="IDX96"></A>
<DT><CODE>backward-kill-line (C-x Rubout)</CODE>
<DD><A NAME="IDX96"></A>
<DD><A NAME="IDX97"></A>
Kill backward to the beginning of the line.
<P>
<A NAME="IDX97"></A>
<A NAME="IDX98"></A>
<DT><CODE>unix-line-discard (C-u)</CODE>
<DD><A NAME="IDX98"></A>
<DD><A NAME="IDX99"></A>
Kill backward from the cursor to the beginning of the current line.
<P>
<A NAME="IDX99"></A>
<A NAME="IDX100"></A>
<DT><CODE>kill-whole-line ()</CODE>
<DD><A NAME="IDX100"></A>
<DD><A NAME="IDX101"></A>
Kill all characters on the current line, no matter where point is.
By default, this is unbound.
<P>
<A NAME="IDX101"></A>
<A NAME="IDX102"></A>
<DT><CODE>kill-word (M-d)</CODE>
<DD><A NAME="IDX102"></A>
<DD><A NAME="IDX103"></A>
Kill from point to the end of the current word, or if between
words, to the end of the next word.
Word boundaries are the same as <CODE>forward-word</CODE>.
<P>
<A NAME="IDX103"></A>
<A NAME="IDX104"></A>
<DT><CODE>backward-kill-word (M-<KBD>DEL</KBD>)</CODE>
<DD><A NAME="IDX104"></A>
<DD><A NAME="IDX105"></A>
Kill the word behind point.
Word boundaries are the same as <CODE>backward-word</CODE>.
<P>
<A NAME="IDX105"></A>
<A NAME="IDX106"></A>
<DT><CODE>unix-word-rubout (C-w)</CODE>
<DD><A NAME="IDX106"></A>
<DD><A NAME="IDX107"></A>
Kill the word behind point, using white space as a word boundary.
The killed text is saved on the kill-ring.
<P>
<A NAME="IDX107"></A>
<A NAME="IDX108"></A>
<DT><CODE>unix-filename-rubout ()</CODE>
<DD><A NAME="IDX108"></A>
<DD><A NAME="IDX109"></A>
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.
<P>
<A NAME="IDX109"></A>
<A NAME="IDX110"></A>
<DT><CODE>delete-horizontal-space ()</CODE>
<DD><A NAME="IDX110"></A>
<DD><A NAME="IDX111"></A>
Delete all spaces and tabs around point. By default, this is unbound.
<P>
<A NAME="IDX111"></A>
<A NAME="IDX112"></A>
<DT><CODE>kill-region ()</CODE>
<DD><A NAME="IDX112"></A>
<DD><A NAME="IDX113"></A>
Kill the text in the current region.
By default, this command is unbound.
<P>
<A NAME="IDX113"></A>
<A NAME="IDX114"></A>
<DT><CODE>copy-region-as-kill ()</CODE>
<DD><A NAME="IDX114"></A>
<DD><A NAME="IDX115"></A>
Copy the text in the region to the kill buffer, so it can be yanked
right away. By default, this command is unbound.
<P>
<A NAME="IDX115"></A>
<A NAME="IDX116"></A>
<DT><CODE>copy-backward-word ()</CODE>
<DD><A NAME="IDX116"></A>
<DD><A NAME="IDX117"></A>
Copy the word before point to the kill buffer.
The word boundaries are the same as <CODE>backward-word</CODE>.
By default, this command is unbound.
<P>
<A NAME="IDX117"></A>
<A NAME="IDX118"></A>
<DT><CODE>copy-forward-word ()</CODE>
<DD><A NAME="IDX118"></A>
<DD><A NAME="IDX119"></A>
Copy the word following point to the kill buffer.
The word boundaries are the same as <CODE>forward-word</CODE>.
By default, this command is unbound.
<P>
<A NAME="IDX119"></A>
<A NAME="IDX120"></A>
<DT><CODE>yank (C-y)</CODE>
<DD><A NAME="IDX120"></A>
<DD><A NAME="IDX121"></A>
Yank the top of the kill ring into the buffer at point.
<P>
<A NAME="IDX121"></A>
<A NAME="IDX122"></A>
<DT><CODE>yank-pop (M-y)</CODE>
<DD><A NAME="IDX122"></A>
<DD><A NAME="IDX123"></A>
Rotate the kill-ring, and yank the new top. You can only do this if
the prior command is <CODE>yank</CODE> or <CODE>yank-pop</CODE>.
</DL>
@@ -1622,16 +1640,16 @@ the prior command is <CODE>yank</CODE> or <CODE>yank-pop</CODE>.
<!--docid::SEC18::-->
<DL COMPACT>
<A NAME="IDX123"></A>
<A NAME="IDX124"></A>
<DT><CODE>digit-argument (<KBD>M-0</KBD>, <KBD>M-1</KBD>, <small>...</small> <KBD>M--</KBD>)</CODE>
<DD><A NAME="IDX124"></A>
<DD><A NAME="IDX125"></A>
Add this digit to the argument already accumulating, or start a new
argument. <KBD>M--</KBD> starts a negative argument.
<P>
<A NAME="IDX125"></A>
<A NAME="IDX126"></A>
<DT><CODE>universal-argument ()</CODE>
<DD><A NAME="IDX126"></A>
<DD><A NAME="IDX127"></A>
This is another way to specify an argument.
If this command is followed by one or more digits, optionally with a
leading minus sign, those digits define the argument.
@@ -1666,30 +1684,30 @@ By default, this is not bound to a key.
<P>
<DL COMPACT>
<A NAME="IDX127"></A>
<A NAME="IDX128"></A>
<DT><CODE>complete (<KBD>TAB</KBD>)</CODE>
<DD><A NAME="IDX128"></A>
<DD><A NAME="IDX129"></A>
Attempt to perform completion on the text before point.
The actual completion performed is application-specific.
The default is filename completion.
<P>
<A NAME="IDX129"></A>
<A NAME="IDX130"></A>
<DT><CODE>possible-completions (M-?)</CODE>
<DD><A NAME="IDX130"></A>
<DD><A NAME="IDX131"></A>
List the possible completions of the text before point.
<P>
<A NAME="IDX131"></A>
<A NAME="IDX132"></A>
<DT><CODE>insert-completions (M-*)</CODE>
<DD><A NAME="IDX132"></A>
<DD><A NAME="IDX133"></A>
Insert all completions of the text before point that would have
been generated by <CODE>possible-completions</CODE>.
<P>
<A NAME="IDX133"></A>
<A NAME="IDX134"></A>
<DT><CODE>menu-complete ()</CODE>
<DD><A NAME="IDX134"></A>
<DD><A NAME="IDX135"></A>
Similar to <CODE>complete</CODE>, but replaces the word to be completed
with a single match from the list of possible completions.
Repeated execution of <CODE>menu-complete</CODE> steps through the list
@@ -1704,9 +1722,9 @@ This command is intended to be bound to <KBD>TAB</KBD>, but is unbound
by default.
<P>
<A NAME="IDX135"></A>
<A NAME="IDX136"></A>
<DT><CODE>delete-char-or-list ()</CODE>
<DD><A NAME="IDX136"></A>
<DD><A NAME="IDX137"></A>
Deletes the character under the cursor if not at the beginning or
end of the line (like <CODE>delete-char</CODE>).
If at the end of the line, behaves identically to
@@ -1735,22 +1753,22 @@ This command is unbound by default.
<!--docid::SEC20::-->
<DL COMPACT>
<A NAME="IDX137"></A>
<A NAME="IDX138"></A>
<DT><CODE>start-kbd-macro (C-x ()</CODE>
<DD><A NAME="IDX138"></A>
<DD><A NAME="IDX139"></A>
Begin saving the characters typed into the current keyboard macro.
<P>
<A NAME="IDX139"></A>
<A NAME="IDX140"></A>
<DT><CODE>end-kbd-macro (C-x ))</CODE>
<DD><A NAME="IDX140"></A>
<DD><A NAME="IDX141"></A>
Stop saving the characters typed into the current keyboard macro
and save the definition.
<P>
<A NAME="IDX141"></A>
<A NAME="IDX142"></A>
<DT><CODE>call-last-kbd-macro (C-x e)</CODE>
<DD><A NAME="IDX142"></A>
<DD><A NAME="IDX143"></A>
Re-execute the last keyboard macro defined, by making the characters
in the macro appear as if typed at the keyboard.
<P>
@@ -1776,87 +1794,87 @@ in the macro appear as if typed at the keyboard.
<!--docid::SEC21::-->
<DL COMPACT>
<A NAME="IDX143"></A>
<A NAME="IDX144"></A>
<DT><CODE>re-read-init-file (C-x C-r)</CODE>
<DD><A NAME="IDX144"></A>
<DD><A NAME="IDX145"></A>
Read in the contents of the <VAR>inputrc</VAR> file, and incorporate
any bindings or variable assignments found there.
<P>
<A NAME="IDX145"></A>
<A NAME="IDX146"></A>
<DT><CODE>abort (C-g)</CODE>
<DD><A NAME="IDX146"></A>
<DD><A NAME="IDX147"></A>
Abort the current editing command and
ring the terminal's bell (subject to the setting of
<CODE>bell-style</CODE>).
<P>
<A NAME="IDX147"></A>
<A NAME="IDX148"></A>
<DT><CODE>do-uppercase-version (M-a, M-b, M-<VAR>x</VAR>, <small>...</small>)</CODE>
<DD><A NAME="IDX148"></A>
<DD><A NAME="IDX149"></A>
If the metafied character <VAR>x</VAR> is lowercase, run the command
that is bound to the corresponding uppercase character.
<P>
<A NAME="IDX149"></A>
<A NAME="IDX150"></A>
<DT><CODE>prefix-meta (<KBD>ESC</KBD>)</CODE>
<DD><A NAME="IDX150"></A>
<DD><A NAME="IDX151"></A>
Metafy the next character typed. This is for keyboards
without a meta key. Typing <SAMP>`<KBD>ESC</KBD> f'</SAMP> is equivalent to typing
<KBD>M-f</KBD>.
<P>
<A NAME="IDX151"></A>
<A NAME="IDX152"></A>
<DT><CODE>undo (C-_ or C-x C-u)</CODE>
<DD><A NAME="IDX152"></A>
<DD><A NAME="IDX153"></A>
Incremental undo, separately remembered for each line.
<P>
<A NAME="IDX153"></A>
<A NAME="IDX154"></A>
<DT><CODE>revert-line (M-r)</CODE>
<DD><A NAME="IDX154"></A>
<DD><A NAME="IDX155"></A>
Undo all changes made to this line. This is like executing the <CODE>undo</CODE>
command enough times to get back to the beginning.
<P>
<A NAME="IDX155"></A>
<A NAME="IDX156"></A>
<DT><CODE>tilde-expand (M-~)</CODE>
<DD><A NAME="IDX156"></A>
<DD><A NAME="IDX157"></A>
Perform tilde expansion on the current word.
<P>
<A NAME="IDX157"></A>
<A NAME="IDX158"></A>
<DT><CODE>set-mark (C-@)</CODE>
<DD><A NAME="IDX158"></A>
<DD><A NAME="IDX159"></A>
Set the mark to the point. If a
numeric argument is supplied, the mark is set to that position.
<P>
<A NAME="IDX159"></A>
<A NAME="IDX160"></A>
<DT><CODE>exchange-point-and-mark (C-x C-x)</CODE>
<DD><A NAME="IDX160"></A>
<DD><A NAME="IDX161"></A>
Swap the point with the mark. The current cursor position is set to
the saved position, and the old cursor position is saved as the mark.
<P>
<A NAME="IDX161"></A>
<A NAME="IDX162"></A>
<DT><CODE>character-search (C-])</CODE>
<DD><A NAME="IDX162"></A>
<DD><A NAME="IDX163"></A>
A character is read and point is moved to the next occurrence of that
character. A negative count searches for previous occurrences.
<P>
<A NAME="IDX163"></A>
<A NAME="IDX164"></A>
<DT><CODE>character-search-backward (M-C-])</CODE>
<DD><A NAME="IDX164"></A>
<DD><A NAME="IDX165"></A>
A character is read and point is moved to the previous occurrence
of that character. A negative count searches for subsequent
occurrences.
<P>
<A NAME="IDX165"></A>
<A NAME="IDX166"></A>
<DT><CODE>insert-comment (M-#)</CODE>
<DD><A NAME="IDX166"></A>
<DD><A NAME="IDX167"></A>
Without a numeric argument, the value of the <CODE>comment-begin</CODE>
variable is inserted at the beginning of the current line.
If a numeric argument is supplied, this command acts as a toggle: if
@@ -1867,43 +1885,43 @@ the line.
In either case, the line is accepted as if a newline had been typed.
<P>
<A NAME="IDX167"></A>
<A NAME="IDX168"></A>
<DT><CODE>dump-functions ()</CODE>
<DD><A NAME="IDX168"></A>
<DD><A NAME="IDX169"></A>
Print all of the functions and their key bindings to the
Readline output stream. If a numeric argument is supplied,
the output is formatted in such a way that it can be made part
of an <VAR>inputrc</VAR> file. This command is unbound by default.
<P>
<A NAME="IDX169"></A>
<A NAME="IDX170"></A>
<DT><CODE>dump-variables ()</CODE>
<DD><A NAME="IDX170"></A>
<DD><A NAME="IDX171"></A>
Print all of the settable variables and their values to the
Readline output stream. If a numeric argument is supplied,
the output is formatted in such a way that it can be made part
of an <VAR>inputrc</VAR> file. This command is unbound by default.
<P>
<A NAME="IDX171"></A>
<A NAME="IDX172"></A>
<DT><CODE>dump-macros ()</CODE>
<DD><A NAME="IDX172"></A>
<DD><A NAME="IDX173"></A>
Print all of the Readline key sequences bound to macros and the
strings they output. If a numeric argument is supplied,
the output is formatted in such a way that it can be made part
of an <VAR>inputrc</VAR> file. This command is unbound by default.
<P>
<A NAME="IDX173"></A>
<A NAME="IDX174"></A>
<DT><CODE>emacs-editing-mode (C-e)</CODE>
<DD><A NAME="IDX174"></A>
<DD><A NAME="IDX175"></A>
When in <CODE>vi</CODE> command mode, this causes a switch to <CODE>emacs</CODE>
editing mode.
<P>
<A NAME="IDX175"></A>
<A NAME="IDX176"></A>
<DT><CODE>vi-editing-mode (M-C-j)</CODE>
<DD><A NAME="IDX176"></A>
<DD><A NAME="IDX177"></A>
When in <CODE>emacs</CODE> editing mode, this causes a switch to <CODE>vi</CODE>
editing mode.
<P>
@@ -1990,7 +2008,7 @@ so forth.
<!--docid::SEC24::-->
<P>
<A NAME="IDX177"></A>
<A NAME="IDX178"></A>
<center>
Version 1.2, November 2002
</center>
@@ -2608,7 +2626,7 @@ to permit their use in free software.
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="rluserman.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H1>About this document</H1>
This document was generated by <I>Chet Ramey</I> on <I>July, 27 2004</I>
This document was generated by <I>Chet Ramey</I> on <I>October, 27 2005</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
<P></P>
@@ -2770,7 +2788,7 @@ the following structure:
<BR>
<FONT SIZE="-1">
This document was generated
by <I>Chet Ramey</I> on <I>July, 27 2004</I>
by <I>Chet Ramey</I> on <I>October, 27 2005</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
+139 -124
View File
@@ -1,12 +1,12 @@
This is rluserman.info, produced by makeinfo version 4.5 from
This is rluserman.info, produced by makeinfo version 4.7 from
./rluserman.texi.
This manual describes the end user interface of the GNU Readline Library
(version 5.0, 28 January 2004), a library which aids in the consistency
of user interface across discrete programs which provide a command line
interface.
This manual describes the end user interface of the GNU Readline
Library (version 5.1-beta1, 7 October 2005), a library which aids in the
consistency of user interface across discrete programs which provide a
command line interface.
Copyright (C) 1988-2004 Free Software Foundation, Inc.
Copyright (C) 1988-2005 Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim copies of this
manual provided the copyright notice and this permission notice are
@@ -23,7 +23,7 @@ preserved on all copies.
(a) The FSF's Back-Cover Text is: "You have freedom to copy and
modify this GNU Manual, like GNU software. Copies published by
the Free Software Foundation raise funds for GNU development."
INFO-DIR-SECTION Libraries
START-INFO-DIR-ENTRY
* RLuserman: (rluserman). The GNU readline library User's Manual.
@@ -35,7 +35,7 @@ File: rluserman.info, Node: Top, Next: Command Line Editing, Up: (dir)
GNU Readline Library
********************
This document describes the end user interface of the GNU Readline
This document describes the end user interface of the GNU Readline
Library, a utility which aids in the consistency of user interface
across discrete programs which provide a command line interface.
@@ -47,10 +47,10 @@ across discrete programs which provide a command line interface.

File: rluserman.info, Node: Command Line Editing, Next: Copying This Manual, Prev: Top, Up: Top
Command Line Editing
********************
1 Command Line Editing
**********************
This chapter describes the basic features of the GNU command line
This chapter describes the basic features of the GNU command line
editing interface.
* Menu:
@@ -66,10 +66,10 @@ editing interface.

File: rluserman.info, Node: Introduction and Notation, Next: Readline Interaction, Up: Command Line Editing
Introduction to Line Editing
============================
1.1 Introduction to Line Editing
================================
The following paragraphs describe the notation used to represent
The following paragraphs describe the notation used to represent
keystrokes.
The text `C-k' is read as `Control-K' and describes the character
@@ -102,10 +102,10 @@ some keyboards.

File: rluserman.info, Node: Readline Interaction, Next: Readline Init File, Prev: Introduction and Notation, Up: Command Line Editing
Readline Interaction
====================
1.2 Readline Interaction
========================
Often during an interactive session you type in a long line of text,
Often during an interactive session you type in a long line of text,
only to notice that the first word on the line is misspelled. The
Readline library gives you a set of commands for manipulating the text
as you type it in, allowing you to just fix your typo, and not forcing
@@ -127,13 +127,13 @@ location of the cursor within the line.

File: rluserman.info, Node: Readline Bare Essentials, Next: Readline Movement Commands, Up: Readline Interaction
Readline Bare Essentials
------------------------
1.2.1 Readline Bare Essentials
------------------------------
In order to enter characters into the line, simply type them. The
typed character appears where the cursor was, and then the cursor moves
one space to the right. If you mistype a character, you can use your
erase character to back up and delete the mistyped character.
In order to enter characters into the line, simply type them. The typed
character appears where the cursor was, and then the cursor moves one
space to the right. If you mistype a character, you can use your erase
character to back up and delete the mistyped character.
Sometimes you may mistype a character, and not notice the error
until you have typed several other characters. In that case, you can
@@ -175,10 +175,10 @@ character to the left of the cursor.)

File: rluserman.info, Node: Readline Movement Commands, Next: Readline Killing Commands, Prev: Readline Bare Essentials, Up: Readline Interaction
Readline Movement Commands
--------------------------
1.2.2 Readline Movement Commands
--------------------------------
The above table describes the most basic keystrokes that you need in
The above table describes the most basic keystrokes that you need in
order to do editing of the input line. For your convenience, many
other commands have been added in addition to `C-b', `C-f', `C-d', and
<DEL>. Here are some commands for moving more rapidly about the line.
@@ -206,11 +206,11 @@ operate on characters while meta keystrokes operate on words.

File: rluserman.info, Node: Readline Killing Commands, Next: Readline Arguments, Prev: Readline Movement Commands, Up: Readline Interaction
Readline Killing Commands
-------------------------
1.2.3 Readline Killing Commands
-------------------------------
"Killing" text means to delete the text from the line, but to save
it away for later use, usually by "yanking" (re-inserting) it back into
"Killing" text means to delete the text from the line, but to save it
away for later use, usually by "yanking" (re-inserting) it back into
the line. (`Cut' and `paste' are more recent jargon for `kill' and
`yank'.)
@@ -222,7 +222,7 @@ place later.
Any number of consecutive kills save all of the killed text together, so
that when you yank it back, you get it all. The kill ring is not line
specific; the text that you killed on a previously typed line is
available to be yanked back later, when you are typing another line.
available to be yanked back later, when you are typing another line.
Here is the list of commands for killing text.
@@ -259,10 +259,10 @@ copy the most-recently-killed text from the kill buffer.

File: rluserman.info, Node: Readline Arguments, Next: Searching, Prev: Readline Killing Commands, Up: Readline Interaction
Readline Arguments
------------------
1.2.4 Readline Arguments
------------------------
You can pass numeric arguments to Readline commands. Sometimes the
You can pass numeric arguments to Readline commands. Sometimes the
argument acts as a repeat count, other times it is the sign of the
argument that is significant. If you pass a negative argument to a
command which normally acts in a forward direction, that command will
@@ -280,10 +280,10 @@ will delete the next ten characters on the input line.

File: rluserman.info, Node: Searching, Prev: Readline Arguments, Up: Readline Interaction
Searching for Commands in the History
-------------------------------------
1.2.5 Searching for Commands in the History
-------------------------------------------
Readline provides commands for searching through the command history
Readline provides commands for searching through the command history
for lines containing a specified string. There are two search modes:
"incremental" and "non-incremental".
@@ -321,10 +321,10 @@ typed by the user or be part of the contents of the current line.

File: rluserman.info, Node: Readline Init File, Next: Bindable Readline Commands, Prev: Readline Interaction, Up: Command Line Editing
Readline Init File
==================
1.3 Readline Init File
======================
Although the Readline library comes with a set of Emacs-like
Although the Readline library comes with a set of Emacs-like
keybindings installed by default, it is possible to use a different set
of keybindings. Any user can customize programs that use Readline by
putting commands in an "inputrc" file, conventionally in his home
@@ -349,10 +349,10 @@ incorporating any changes that you might have made to it.

File: rluserman.info, Node: Readline Init File Syntax, Next: Conditional Init Constructs, Up: Readline Init File
Readline Init File Syntax
-------------------------
1.3.1 Readline Init File Syntax
-------------------------------
There are only a few basic constructs allowed in the Readline init
There are only a few basic constructs allowed in the Readline init
file. Blank lines are ignored. Lines beginning with a `#' are
comments. Lines beginning with a `$' indicate conditional constructs
(*note Conditional Init Constructs::). Other lines denote variable
@@ -371,7 +371,11 @@ Variable Settings
set editing-mode vi
Variable names and values, where appropriate, are recognized
without regard to case.
without regard to case. Unrecognized variable names are ignored.
Boolean variables (those that can be set to on or off) are set to
on if the value is null or empty, ON (case-insensitive), or 1.
Any other value results in the variable being set to off.
A great deal of run-time behavior is changeable with the following
variables.
@@ -383,6 +387,11 @@ Variable Settings
one is available. If set to `audible' (the default),
Readline attempts to ring the terminal's bell.
`bind-tty-special-chars'
If set to `on', Readline attempts to bind the control
characters treated specially by the kernel's terminal driver
to their Readline equivalents.
`comment-begin'
The string to insert at the beginning of the line when the
`insert-comment' command is executed. The default value is
@@ -400,7 +409,8 @@ Variable Settings
than this value, Readline will ask the user whether or not he
wishes to view them; otherwise, they are simply listed. This
variable must be set to an integer value greater than or
equal to 0. The default limit is `100'.
equal to 0. A negative value means Readline should never ask.
The default limit is `100'.
`convert-meta'
If set to `on', Readline will convert characters with the
@@ -428,9 +438,10 @@ Variable Settings
If set to `on', tilde expansion is performed when Readline
attempts word completion. The default is `off'.
`history-preserve-point'
If set to `on', the history code attempts to place point at
the same location on each history line retrieved with
`previous-history' or `next-history'.
`previous-history' or `next-history'. The default is `off'.
`horizontal-scroll-mode'
This variable can be set to either `on' or `off'. Setting it
@@ -639,10 +650,10 @@ Key Bindings

File: rluserman.info, Node: Conditional Init Constructs, Next: Sample Init File, Prev: Readline Init File Syntax, Up: Readline Init File
Conditional Init Constructs
---------------------------
1.3.2 Conditional Init Constructs
---------------------------------
Readline implements a facility similar in spirit to the conditional
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 four parser directives used.
@@ -699,11 +710,11 @@ are four parser directives used.

File: rluserman.info, Node: Sample Init File, Prev: Conditional Init Constructs, Up: Readline Init File
Sample Init File
----------------
1.3.3 Sample Init File
----------------------
Here is an example of an INPUTRC file. This illustrates key
binding, variable assignment, and conditional syntax.
Here is an example of an INPUTRC file. This illustrates key binding,
variable assignment, and conditional syntax.
# This file controls the behaviour of line input editing for
@@ -716,16 +727,16 @@ binding, variable assignment, and conditional syntax.
# First, include any systemwide bindings and variable
# assignments from /etc/Inputrc
$include /etc/Inputrc
#
# Set various bindings for emacs mode.
set editing-mode emacs
$if mode=emacs
Meta-Control-h: backward-kill-word Text after the function name is ignored
#
# Arrow keys in keypad mode
#
@@ -754,14 +765,14 @@ binding, variable assignment, and conditional syntax.
#"\M-\C-[C": forward-char
#"\M-\C-[A": previous-history
#"\M-\C-[B": next-history
C-q: quoted-insert
$endif
# An old-style binding. This happens to be the default.
TAB: complete
# Macros that are convenient for shell interaction
$if Bash
# edit the path
@@ -780,25 +791,25 @@ binding, variable assignment, and conditional syntax.
# Edit variable on current line.
"\M-\C-v": "\C-a\C-k$\C-y\M-\C-e\C-a\C-y="
$endif
# use a visible bell if one is available
set bell-style visible
# don't strip characters to 7 bits when reading
set input-meta on
# allow iso-latin1 characters to be inserted rather
# than converted to prefix-meta sequences
set convert-meta off
# display characters with the eighth bit set directly
# rather than as meta-prefixed characters
set output-meta on
# if there are more than 150 possible completions for
# a word, ask the user if he wants to see all of them
set completion-query-items 150
# For FTP
$if Ftp
"\C-xg": "get \M-?"
@@ -809,8 +820,8 @@ binding, variable assignment, and conditional syntax.

File: rluserman.info, Node: Bindable Readline Commands, Next: Readline vi Mode, Prev: Readline Init File, Up: Command Line Editing
Bindable Readline Commands
==========================
1.4 Bindable Readline Commands
==============================
* Menu:
@@ -835,8 +846,8 @@ as the "region".

File: rluserman.info, Node: Commands For Moving, Next: Commands For History, Up: Bindable Readline Commands
Commands For Moving
-------------------
1.4.1 Commands For Moving
-------------------------
`beginning-of-line (C-a)'
Move to the start of the current line.
@@ -869,8 +880,8 @@ Commands For Moving

File: rluserman.info, Node: Commands For History, Next: Commands For Text, Prev: Commands For Moving, Up: Bindable Readline Commands
Commands For Manipulating The History
-------------------------------------
1.4.2 Commands For Manipulating The History
-------------------------------------------
`accept-line (Newline or Return)'
Accept the line regardless of where the cursor is. If this line is
@@ -926,21 +937,24 @@ Commands For Manipulating The History
second word on the previous line) at point. With an argument N,
insert the Nth word from the previous command (the words in the
previous command begin with word 0). A negative argument inserts
the Nth word from the end of the previous command.
the Nth word from the end of the previous command. Once the
argument N is computed, the argument is extracted as if the `!N'
history expansion had been specified.
`yank-last-arg (M-. or M-_)'
Insert last argument to the previous command (the last word of the
previous history entry). With an argument, behave exactly like
`yank-nth-arg'. Successive calls to `yank-last-arg' move back
through the history list, inserting the last argument of each line
in turn.
in turn. The history expansion facilities are used to extract the
last argument, as if the `!$' history expansion had been specified.

File: rluserman.info, Node: Commands For Text, Next: Commands For Killing, Prev: Commands For History, Up: Bindable Readline Commands
Commands For Changing Text
--------------------------
1.4.3 Commands For Changing Text
--------------------------------
`delete-char (C-d)'
Delete the character at point. If point is at the beginning of
@@ -1007,8 +1021,8 @@ Commands For Changing Text

File: rluserman.info, Node: Commands For Killing, Next: Numeric Arguments, Prev: Commands For Text, Up: Bindable Readline Commands
Killing And Yanking
-------------------
1.4.4 Killing And Yanking
-------------------------
`kill-line (C-k)'
Kill the text from point to the end of the line.
@@ -1073,8 +1087,8 @@ Killing And Yanking

File: rluserman.info, Node: Numeric Arguments, Next: Commands For Completion, Prev: Commands For Killing, Up: Bindable Readline Commands
Specifying Numeric Arguments
----------------------------
1.4.5 Specifying Numeric Arguments
----------------------------------
`digit-argument (M-0, M-1, ... M--)'
Add this digit to the argument already accumulating, or start a new
@@ -1096,8 +1110,8 @@ Specifying Numeric Arguments

File: rluserman.info, Node: Commands For Completion, Next: Keyboard Macros, Prev: Numeric Arguments, Up: Bindable Readline Commands
Letting Readline Type For You
-----------------------------
1.4.6 Letting Readline Type For You
-----------------------------------
`complete (<TAB>)'
Attempt to perform completion on the text before point. The
@@ -1133,8 +1147,8 @@ Letting Readline Type For You

File: rluserman.info, Node: Keyboard Macros, Next: Miscellaneous Commands, Prev: Commands For Completion, Up: Bindable Readline Commands
Keyboard Macros
---------------
1.4.7 Keyboard Macros
---------------------
`start-kbd-macro (C-x ()'
Begin saving the characters typed into the current keyboard macro.
@@ -1151,8 +1165,8 @@ Keyboard Macros

File: rluserman.info, Node: Miscellaneous Commands, Prev: Keyboard Macros, Up: Bindable Readline Commands
Some Miscellaneous Commands
---------------------------
1.4.8 Some Miscellaneous Commands
---------------------------------
`re-read-init-file (C-x C-r)'
Read in the contents of the INPUTRC file, and incorporate any
@@ -1239,10 +1253,10 @@ Some Miscellaneous Commands

File: rluserman.info, Node: Readline vi Mode, Prev: Bindable Readline Commands, Up: Command Line Editing
Readline vi Mode
================
1.5 Readline vi Mode
====================
While the Readline library does not have a full set of `vi' editing
While the Readline library does not have a full set of `vi' editing
functions, it does contain enough to allow simple editing of the line.
The Readline `vi' mode behaves as specified in the POSIX 1003.2
standard.
@@ -1261,8 +1275,8 @@ the standard `vi' movement keys, move to previous history lines with

File: rluserman.info, Node: Copying This Manual, Prev: Command Line Editing, Up: Top
Copying This Manual
*******************
Appendix A Copying This Manual
******************************
* Menu:
@@ -1271,13 +1285,14 @@ Copying This Manual

File: rluserman.info, Node: GNU Free Documentation License, Up: Copying This Manual
GNU Free Documentation License
==============================
A.1 GNU Free Documentation License
==================================
Version 1.2, November 2002
Copyright (C) 2000,2001,2002 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@@ -1668,10 +1683,10 @@ GNU Free Documentation License
you may choose any version ever published (not as a draft) by the
Free Software Foundation.
ADDENDUM: How to use this License for your documents
----------------------------------------------------
A.1.1 ADDENDUM: How to use this License for your documents
----------------------------------------------------------
To use this License in a document you have written, include a copy of
To use this License in a document you have written, include a copy of
the License in the document and put the following copyright and license
notices just after the title page:
@@ -1702,30 +1717,30 @@ permit their use in free software.

Tag Table:
Node: Top1339
Node: Command Line Editing1774
Node: Introduction and Notation2416
Node: Readline Interaction4035
Node: Readline Bare Essentials5223
Node: Readline Movement Commands7005
Node: Readline Killing Commands7963
Node: Readline Arguments9874
Node: Searching10911
Node: Readline Init File13055
Node: Readline Init File Syntax14117
Node: Conditional Init Constructs25481
Node: Sample Init File28007
Node: Bindable Readline Commands31192
Node: Commands For Moving32243
Node: Commands For History33094
Node: Commands For Text35954
Node: Commands For Killing38670
Node: Numeric Arguments40802
Node: Commands For Completion41931
Node: Keyboard Macros43465
Node: Miscellaneous Commands44026
Node: Readline vi Mode47377
Node: Copying This Manual48293
Node: GNU Free Documentation License48503
Node: Top1344
Node: Command Line Editing1776
Node: Introduction and Notation2419
Node: Readline Interaction4043
Node: Readline Bare Essentials5236
Node: Readline Movement Commands7027
Node: Readline Killing Commands7994
Node: Readline Arguments9916
Node: Searching10962
Node: Readline Init File13115
Node: Readline Init File Syntax14182
Node: Conditional Init Constructs26118
Node: Sample Init File28653
Node: Bindable Readline Commands31772
Node: Commands For Moving32831
Node: Commands For History33694
Node: Commands For Text36820
Node: Commands For Killing39548
Node: Numeric Arguments41692
Node: Commands For Completion42833
Node: Keyboard Macros44379
Node: Miscellaneous Commands44952
Node: Readline vi Mode48315
Node: Copying This Manual49236
Node: GNU Free Documentation License49468

End Tag Table
+27 -29
View File
@@ -1,9 +1,7 @@
This is TeX, Version 3.14159 (Web2C 7.3.1) (format=tex 2001.2.12) 27 JUL 2004 09:31
**/net/celerra-dm1/fs04/src/ns-engr/work/chet/src/bash/src/lib/readline/doc/rlu
serman.texi
(/net/celerra-dm1/fs04/src/ns-engr/work/chet/src/bash/src/lib/readline/doc/rlus
erman.texi (texinfo.tex Loading texinfo [version 2003-02-03.16]: Basics,
This is TeX, Version 3.14159 (Web2C 7.4.5) (format=tex 2005.3.22) 27 OCT 2005 17:26
**/usr/homes/chet/src/bash/src/lib/readline/doc/rluserman.texi
(/usr/homes/chet/src/bash/src/lib/readline/doc/rluserman.texi (./texinfo.tex
Loading texinfo [version 2003-02-03.16]: Basics,
\bindingoffset=\dimen16
\normaloffset=\dimen17
\pagewidth=\dimen18
@@ -34,8 +32,7 @@ erman.texi (texinfo.tex Loading texinfo [version 2003-02-03.16]: Basics,
\toksD=\toks18
\boxA=\box19
\countA=\count30
fonts,
fonts,
\sffam=\fam8
\textleading=\dimen26
\mainmagstep=\count31
@@ -47,7 +44,8 @@ fonts,
\oddheadline=\toks20
\evenfootline=\toks21
\oddfootline=\toks22
tables,
tables,
\tableindent=\dimen27
\itemindent=\dimen28
\itemmargin=\dimen29
@@ -81,8 +79,7 @@ fonts,
\lastnegativepageno=\count43
\shortappendixwidth=\dimen33
\tocindent=\dimen34
environments,
environments,
\errorbox=\box22
\lispnarrowing=\skip30
\envskipamount=\skip31
@@ -104,12 +101,12 @@ environments,
\macscribble=\write1
\paramno=\count45
\macname=\toks23
cross references,
cross references,
\auxfile=\write2
\savesfregister=\count46
\footnoteno=\count47
(/usr/local/share/texmf/tex/plain/dvips/epsf.tex
(/sw/share/texmf/tex/generic/misc/epsf.tex
\epsffilein=\read0
\epsfframemargin=\dimen39
\epsfframethickness=\dimen40
@@ -126,14 +123,15 @@ environments,
\nolanghelp=\toks26
\defaultparindent=\dimen47
and turning on texinfo input format.) (rluserman.aux)
and turning on texinfo input format.) (./rluserman.aux)
@cpindfile=@write3
@fnindfile=@write4
@vrindfile=@write5
@tpindfile=@write6
@kyindfile=@write7
@pgindfile=@write8
(version.texi) [1
(./version.texi)
[1
\openout2 = `rluserman.aux'.
\openout3 = `rluserman.cp'.
@@ -148,8 +146,7 @@ and turning on texinfo input format.) (rluserman.aux)
\openout8 = `rluserman.pg'.
]
[2] (rluserman.toc) [-1] [-2] (rluser.texi
] [2] (./rluserman.toc) [-1] [-2] (./rluser.texi
@btindfile=@write9
Chapter 1
\openout0 = `rluserman.toc'.
@@ -157,8 +154,9 @@ and turning on texinfo input format.) (rluserman.aux)
[1
\openout9 = `rluserman.bt'.
] [2] [3] [4] [5]
Underfull \hbox (badness 5231) in paragraph at lines 488--504
] [2] [3]
[4] [5]
Underfull \hbox (badness 5231) in paragraph at lines 500--516
@texttt emacs-meta[]@textrm , @texttt emacs-ctlx[]@textrm , @texttt vi[]@textr
m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
@@ -171,7 +169,7 @@ m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
.etc.
[6] [7] [8] [9] [10]
Overfull \hbox (26.43913pt too wide) in paragraph at lines 801--801
Overfull \hbox (26.43913pt too wide) in paragraph at lines 813--813
[]@texttt Meta-Control-h: backward-kill-word Text after the function name is i
gnored[] |
@@ -183,15 +181,15 @@ gnored[] |
.@texttt t
.etc.
[11] [12] [13] [14] [15] [16] [17] [18]) Appendix A [19] [20] (fdl.texi
[11] [12] [13] [14] [15] [16] [17] [18]) Appendix A [19] [20] (./fdl.texi
[21] [22] [23] [24] [25] [26]) [27] [28] )
Here is how much of TeX's memory you used:
1398 strings out of 13013
16289 string characters out of 97233
44933 words of memory out of 263001
2276 multiletter control sequences out of 10000+0
31953 words of font info for 111 fonts, out of 400000 for 1000
1405 strings out of 98002
16392 string characters out of 1221987
44924 words of memory out of 1000001
2276 multiletter control sequences out of 10000+50000
31953 words of font info for 111 fonts, out of 500000 for 1000
19 hyphenation exceptions out of 1000
13i,8n,10p,313b,695s stack positions out of 300i,100n,500p,50000b,4000s
13i,8n,10p,285b,695s stack positions out of 1500i,500n,5000p,200000b,5000s
Output written on rluserman.dvi (32 pages, 91852 bytes).
Output written on rluserman.dvi (32 pages, 92856 bytes).
+4549 -2391
View File
File diff suppressed because it is too large Load Diff
+6 -5
View File
@@ -1,20 +1,21 @@
\entry{bell-style}{5}{\code {bell-style}}
\entry{bind-tty-special-chars}{5}{\code {bind-tty-special-chars}}
\entry{comment-begin}{5}{\code {comment-begin}}
\entry{completion-query-items}{5}{\code {completion-query-items}}
\entry{convert-meta}{5}{\code {convert-meta}}
\entry{disable-completion}{5}{\code {disable-completion}}
\entry{editing-mode}{5}{\code {editing-mode}}
\entry{enable-keypad}{5}{\code {enable-keypad}}
\entry{expand-tilde}{5}{\code {expand-tilde}}
\entry{history-preserve-point}{5}{\code {history-preserve-point}}
\entry{enable-keypad}{6}{\code {enable-keypad}}
\entry{expand-tilde}{6}{\code {expand-tilde}}
\entry{history-preserve-point}{6}{\code {history-preserve-point}}
\entry{horizontal-scroll-mode}{6}{\code {horizontal-scroll-mode}}
\entry{input-meta}{6}{\code {input-meta}}
\entry{meta-flag}{6}{\code {meta-flag}}
\entry{isearch-terminators}{6}{\code {isearch-terminators}}
\entry{keymap}{6}{\code {keymap}}
\entry{mark-modified-lines}{6}{\code {mark-modified-lines}}
\entry{mark-symlinked-directories}{6}{\code {mark-symlinked-directories}}
\entry{match-hidden-files}{6}{\code {match-hidden-files}}
\entry{mark-symlinked-directories}{7}{\code {mark-symlinked-directories}}
\entry{match-hidden-files}{7}{\code {match-hidden-files}}
\entry{output-meta}{7}{\code {output-meta}}
\entry{page-completions}{7}{\code {page-completions}}
\entry{show-all-if-ambiguous}{7}{\code {show-all-if-ambiguous}}
+6 -5
View File
@@ -1,5 +1,6 @@
\initial {B}
\entry {\code {bell-style}}{5}
\entry {\code {bind-tty-special-chars}}{5}
\initial {C}
\entry {\code {comment-begin}}{5}
\entry {\code {completion-query-items}}{5}
@@ -8,10 +9,10 @@
\entry {\code {disable-completion}}{5}
\initial {E}
\entry {\code {editing-mode}}{5}
\entry {\code {enable-keypad}}{5}
\entry {\code {expand-tilde}}{5}
\entry {\code {enable-keypad}}{6}
\entry {\code {expand-tilde}}{6}
\initial {H}
\entry {\code {history-preserve-point}}{5}
\entry {\code {history-preserve-point}}{6}
\entry {\code {horizontal-scroll-mode}}{6}
\initial {I}
\entry {\code {input-meta}}{6}
@@ -20,8 +21,8 @@
\entry {\code {keymap}}{6}
\initial {M}
\entry {\code {mark-modified-lines}}{6}
\entry {\code {mark-symlinked-directories}}{6}
\entry {\code {match-hidden-files}}{6}
\entry {\code {mark-symlinked-directories}}{7}
\entry {\code {match-hidden-files}}{7}
\entry {\code {meta-flag}}{6}
\initial {O}
\entry {\code {output-meta}}{7}
+10 -3
View File
@@ -6839,12 +6839,16 @@ add_string:
{
t_index = sindex++;
if (expanded_something)
*expanded_something = 1;
temp = string_extract (string, &sindex, "`", EX_REQMATCH);
/* The test of sindex against t_index is to allow bare instances of
` to pass through, for backwards compatibility. */
if (temp == &extract_string_error || temp == &extract_string_fatal)
{
if (sindex - 1 == t_index)
{
sindex = t_index;
goto add_character;
}
report_error ("bad substitution: no closing \"`\" in %s", string+t_index);
free (string);
free (istring);
@@ -6852,6 +6856,9 @@ add_string:
: &expand_word_fatal);
}
if (expanded_something)
*expanded_something = 1;
if (word->flags & W_NOCOMSUB)
/* sindex + 1 because string[sindex] == '`' */
temp1 = substring (string, t_index, sindex + 1);
+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
@@ -33,6 +33,8 @@ x3y
x10y x9y x8y x7y x6y x5y x4y x3y x2y x1y
a b c d e f
f e d c b a
a ` _ ^ ] [ Z Y X W V U T S R Q P O N M L K J I H G F E D C B A
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ ] ^ _ ` a
f
{1..f}
{f..1}
+2 -2
View File
@@ -54,8 +54,8 @@ echo x{10..1}y
echo {a..f}
echo {f..a}
#echo {a..A}
#echo {A..a}
echo {a..A}
echo {A..a}
echo {f..f}