From d19d2a576e818d6732b0d1b1ae72e3cc96fc29a3 Mon Sep 17 00:00:00 2001
From: Chet Ramey
Date: Wed, 23 Nov 2011 18:50:16 -0500
Subject: [PATCH] Readline-4.0 import
---
CHANGELOG | 139 +
CHANGES | 131 +-
MANIFEST | 18 +
Makefile.in | 268 +-
README | 111 +-
aclocal.m4 | 167 +-
bind.c | 62 +-
callback.c | 2 +-
complete.c | 219 +-
configure | 301 ++-
configure.in | 39 +-
display.c | 118 +-
doc/Makefile.in | 25 +-
doc/hist.texinfo | 19 +-
doc/history.dvi | Bin 35068 -> 48188 bytes
doc/history.html | 202 +-
doc/history.info | 49 +-
doc/history.ps | 1494 ++++++-----
doc/manvers.texinfo | 6 +
doc/readline.0 | 514 ++--
doc/readline.3 | 43 +-
doc/readline.dvi | Bin 185100 -> 199980 bytes
doc/readline.html | 1728 +++++++++----
doc/readline.info | 335 ++-
doc/readline.ps | 5585 +++++++++++++++++++++--------------------
doc/rlman.texinfo | 19 +-
doc/rltech.texinfo | 163 +-
doc/rluser.texinfo | 50 +-
doc/texi2dvi | 467 ++--
doc/texi2html | 144 +-
examples/Makefile.in | 13 +-
examples/rl.c | 3 +-
examples/rlversion.c | 21 +
funmap.c | 2 +
histexpand.c | 22 +-
histfile.c | 12 +-
histlib.h | 1 +
history.c | 2 +-
history.h | 91 +-
input.c | 66 +-
isearch.c | 32 +-
keymaps.c | 2 +-
keymaps.h | 21 +-
kill.c | 13 +-
posixjmp.h | 10 +-
readline.c | 85 +-
readline.h | 471 +++-
rlconf.h | 4 +-
rlstdc.h | 79 +
rltty.c | 11 +-
savestring.c | 33 +
search.c | 5 +-
shell.c | 43 +-
shlib/Makefile.in | 316 +++
signals.c | 247 +-
support/config.guess | 26 +-
support/config.sub | 69 +-
support/mkdist | 2 +-
support/shlib-install | 105 +
support/shobj-conf | 341 +++
terminal.c | 10 +
tilde.c | 42 +-
util.c | 3 +-
vi_mode.c | 40 +-
64 files changed, 9115 insertions(+), 5546 deletions(-)
create mode 100644 doc/manvers.texinfo
create mode 100644 examples/rlversion.c
create mode 100644 rlstdc.h
create mode 100644 savestring.c
create mode 100644 shlib/Makefile.in
create mode 100755 support/shlib-install
create mode 100755 support/shobj-conf
diff --git a/CHANGELOG b/CHANGELOG
index 8094590..479e6c0 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -75,3 +75,142 @@ examples/Makefile.in
---
configure.in
- bumped LIBVERSION up to 2.2
+
+ 4/18
+ ----
+[readline-2.2 released]
+
+ 4/20
+ ----
+Makefile.in
+ - make `libhistory.a' a dependency of `install'
+ - fixed a typo in the recipe for `install' that copied libreadline.a
+ to libhistory.old right after installing it
+
+ 4/27
+ ----
+doc/Makefile.in
+ - install {readline,history}.info out of the source directory if
+ they are not found in the current (build) directory -- only an
+ issue if the libraries are built in a different directory than
+ the source directory
+
+ 5/1
+ ---
+support/shobj-conf
+ - script from the bash distribution to do shared object and library
+ configuration
+
+shlib/Makefile.in
+ - new directory and makefile to handle building shared versions of
+ libreadline and libhistory, controlled by support/shobj-conf
+
+ 5/7
+ ---
+doc/Makefile.in
+ - set SHELL to /bin/sh, rather than relying on make to be correct
+
+ 5/14
+ ----
+savestring.c
+ - new file, moved from shell.c, for backwards compatibility
+
+Makefile.in, shlib/Makefile.in
+ - make sure savestring.c is compiled and added to libreadline and
+ libhistory
+
+[THERE ARE NO MORE #ifdef SHELL LINES IN THE C SOURCE FILES.]
+
+ 5/15
+ ----
+README
+ - updated description of shared library creation for the new scheme
+
+[THERE ARE NO MORE #ifdef SHELL LINES IN ANY OF THE SOURCE FILES.]
+
+Makefile.in
+ - bumped SHLIB_MAJOR up to 4 since we've augmented the library
+ API
+ - rlconf.h is now one of the installed headers, so applications can
+ find out whether things like vi-mode are available in the installed
+ libreadline
+
+ 5/20
+ ----
+configure.in
+ - changed RL_LIBRARY_VERSION to 4.0 to match the version of the
+ installed shared libraries
+
+ 6/5
+ ---
+rlstdc.h
+ - new file
+
+Makefile.in
+ - rlstdc.h is now one of the installed headers
+
+ 8/3
+ ---
+shlib/Makefile.in
+ - made the suffix rule that creates xx.so from xx.c write the
+ compiler output to `a.o', which is then mv'd to xx.so, because
+ some compilers (Sun WSpro 4.2, for example) don't allow any
+ suffixes other than `.o' for `cc -c' (not even `a.out')
+
+ 9/15
+ ----
+
+Makefile.in
+ - AR and ARFLAGS are now substituted by configure, used in recipes
+ that build the libraries
+
+configure.in
+ - use AC_CHECK_PROG to check for ar
+ - set ARFLAGS if it has not already been set in the environment
+
+ 10/5
+ ----
+Makefile.in
+ - removed savestring.o from object file list
+
+ 10/28
+ -----
+shlib/Makefile.in
+ - don't use a fixed filename in the .c.so suffix rule to avoid
+ problems with parallel makes
+
+ 12/21
+ -----
+support/shlib-install
+ - new script to install shared readline and history libraries
+
+shlib/Makefile.in
+ - changed to call shlib-install for install and uninstall targets
+
+[readline-4.0-beta1 frozen]
+
+ 12/22
+ -----
+configure.in
+ - call AC_SUBST for SHOBJ_XLDFLAGS and SHLIB_LIBS
+
+shlib/Makefile.in
+ - SHOBJ_XLDFLAGS and SHLIB_LIBS are now substituted by configure
+ - add $(SHLIB_LIBS) at end of command line that builds the shared
+ libraries (currently needed only by AIX 4.2)
+
+ 12/31
+ -----
+MANIFEST, MANIFEST.doc
+ - the TOC html files are no longer generated and no longer part of
+ the distribution
+
+ 2/18/1999
+ ---------
+configure.in
+ - set MAKE_SHELL to /bin/sh and substitute into the Makefiles
+
+Makefile.in,{doc,examples,shlib}/Makefile.in
+ - set SHELL from @MAKE_SHELL@
+
+[readline-4.0 released]
diff --git a/CHANGES b/CHANGES
index 382406e..65339c2 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,22 +1,131 @@
-This document details the changes between this version, readline-2.2.1,
+This document details the changes between this version, readline-4.0,
and the previous version, readline-2.2.
1. Changes to Readline
-a. The `make install' target was corrected so that it did not move the
- newly-installed libreadline.a to libhistory.old
+a. The version number is now 4.0, to match the major and minor version
+ numbers on the shared readline and history libraries. Future
+ releases will maintain the identical numbering.
-b. The `make install' target for the documentation will now install the
- info files from the source directory if they do not appear in the
- build directory, since they are shipped in the readline tar file.
+b. Fixed a typo in the `make install' recipe that copied libreadline.a
+ to libhistory.old right after installing it.
-c. Fixed a problem with redisplay that showed up when the prompt string was
- longer than the screen width and the prompt contained invisible characters.
+c. The readline and history info files are now installed out of the source
+ directory if they are not found in the build directory.
-d. Fixed a problem with the paren matching code -- the blink was far too
- short (it's specified in microseconds, not milliseconds, Chet!).
+d. The library no longer exports a function named `savestring' -- backwards
+ compatibility be damned.
-------------------------------------------------------------------------------
+e. There is no longer any #ifdef SHELL code in the source files.
+
+f. Some changes were made to the key binding code to fix memory leaks and
+ better support Win32 systems.
+
+g. Fixed a silly typo in the paren matching code -- it's microseconds, not
+ milliseconds.
+
+h. The readline library should be compilable by C++ compilers.
+
+i. The readline.h public header file now includes function prototypes for
+ all readline functions, and some changes were made to fix errors in the
+ source files uncovered by the use of prototypes.
+
+j. The maximum numeric argument is now clamped at 1000000.
+
+k. Fixes to rl_yank_last_arg to make it behave better.
+
+l. Fixed a bug in the display code that caused core dumps if the prompt
+ string length exceeded 1024 characters.
+
+m. The menu completion code was fixed to properly insert a single completion
+ if there is only one match.
+
+n. A bug was fixed that caused the display code to improperly display tabs
+ after newlines.
+
+o. A fix was made to the completion code in which a typo caused the wrong
+ value to be passed to the function that computed the longest common
+ prefix of the list of matches.
+
+p. The completion code now checks the value of rl_filename_completion_desired,
+ which is set by application-supplied completion functions to indicate
+ that filename completion is being performed, to decide whether or not to
+ call an application-supplied `ignore completions' function.
+
+q. Code was added to the history library to catch history substitutions
+ using `&' without a previous history substitution or search having been
+ performed.
+
+
+2. New Features in Readline
+
+a. There is a new script, support/shobj-conf, to do system-specific shared
+ object and library configuration. It generates variables for configure
+ to substitute into makefiles. The README file provides a detailed
+ explanation of the shared library creation process.
+
+b. Shared libraries and objects are now built in the `shlib' subdirectory.
+ There is a shlib/Makefile.in to control the build process. `make shared'
+ from the top-level directory is still the right way to build shared
+ versions of the libraries.
+
+c. rlconf.h is now installed, so applications can find out which features
+ have been compiled into the installed readline and history libraries.
+
+d. rlstdc.h is now an installed header file.
+
+e. Many changes to the signal handling:
+ o Readline now catches SIGQUIT and cleans up the tty before returning;
+ o A new variable, rl_catch_signals, is available to application writers
+ to indicate to readline whether or not it should install its own
+ signal handlers for SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP,
+ SIGTTIN, and SIGTTOU;
+ o A new variable, rl_catch_sigwinch, is available to application
+ writers to indicate to readline whether or not it should install its
+ own signal handler for SIGWINCH, which will chain to the calling
+ applications's SIGWINCH handler, if one is installed;
+ o There is a new function, rl_free_line_state, for application signal
+ handlers to call to free up the state associated with the current
+ line after receiving a signal;
+ o There is a new function, rl_cleanup_after_signal, to clean up the
+ display and terminal state after receiving a signal;
+ o There is a new function, rl_reset_after_signal, to reinitialize the
+ terminal and display state after an application signal handler
+ returns and readline continues
+
+f. There is a new function, rl_resize_terminal, to reset readline's idea of
+ the screen size after a SIGWINCH.
+
+g. New public functions: rl_save_prompt and rl_restore_prompt. These were
+ previously private functions with a `_' prefix. These functions are
+ used when an application wants to write a message to the `message area'
+ with rl_message and have the prompt restored correctly when the message
+ is erased.
+
+h. New function hook: rl_pre_input_hook, called just before readline starts
+ reading input, after initialization.
+
+i. New function hook: rl_display_matches_hook, called when readline would
+ display the list of completion matches. The new function
+ rl_display_match_list is what readline uses internally, and is available
+ for use by application functions called via this hook.
+
+j. New bindable function, delete-char-or-list, like tcsh.
+
+k. A new variable, rl_erase_empty_line, which, if set by an application using
+ readline, will cause readline to erase, prompt and all, lines on which the
+ only thing typed was a newline.
+
+l. There is a new script, support/shlib-install, to install and uninstall
+ the shared readline and history libraries.
+
+m. A new bindable variable, `isearch-terminators', which is a string
+ containing the set of characters that should terminate an incremental
+ search without being executed as a command.
+
+n. A new bindable function, forward-backward-delete-char.
+
+-------------------------------------------------------------------------------
This document details the changes between this version, readline-2.2,
and the previous version, readline-2.1.
diff --git a/MANIFEST b/MANIFEST
index e9e1c40..f23ff41 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -4,6 +4,7 @@
doc d
examples d
support d
+shlib d
COPYING f
README f
MANIFEST f
@@ -27,6 +28,7 @@ posixstat.h f
readline.h f
rlconf.h f
rldefs.h f
+rlstdc.h f
rltty.h f
rlwinsize.h f
tcap.h f
@@ -45,6 +47,7 @@ nls.c f
parens.c f
readline.c f
rltty.c f
+savestring.c f
search.c f
shell.c f
signals.c f
@@ -60,13 +63,17 @@ history.c f
histexpand.c f
histfile.c f
histsearch.c f
+shlib/Makefile.in f
support/config.guess f
support/config.sub f
support/install.sh f
support/mkdirs f
support/mkdist f
+support/shobj-conf f
+support/shlib-install f
doc/Makefile.in f
doc/texinfo.tex f
+doc/manvers.texinfo f
doc/rlman.texinfo f
doc/rltech.texinfo f
doc/rluser.texinfo f
@@ -81,5 +88,16 @@ examples/fileman.c f
examples/manexamp.c f
examples/rltest.c f
examples/rl.c f
+examples/rlversion.c f
examples/histexamp.c f
examples/Inputrc f
+# formatted documentation, from MANIFEST.doc
+doc/readline.ps f
+doc/history.ps f
+doc/readline.dvi f
+doc/history.dvi f
+doc/readline.info f
+doc/history.info f
+doc/readline.html f
+doc/history.html f
+doc/readline.0 f
diff --git a/Makefile.in b/Makefile.in
index 63ac038..746c83c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -28,13 +28,15 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
CC = @CC@
-LD = ld # needed when building shared libraries
RANLIB = @RANLIB@
-AR = ar
+AR = @AR@
+ARFLAGS = @ARFLAGS@
RM = rm -f
CP = cp
MV = mv
+SHELL = @MAKE_SHELL@
+
prefix = @prefix@
exec_prefix = @exec_prefix@
@@ -47,8 +49,6 @@ infodir = @infodir@
man3dir = $(mandir)/man3
-SHELL = /bin/sh
-
# Programs to make tags files.
ETAGS = etags -tw
CTAGS = ctags -tw
@@ -56,7 +56,6 @@ CTAGS = ctags -tw
CFLAGS = @CFLAGS@
LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"'
CPPFLAGS = @CPPFLAGS@
-LDFLAGS = @LDFLAGS@ @LOCAL_LDFLAGS@ @CFLAGS@
DEFS = @DEFS@
LOCAL_DEFS = @LOCAL_DEFS@
@@ -66,34 +65,14 @@ INCLUDES = -I. -I$(srcdir) -I$(includedir)
CCFLAGS = $(DEFS) $(LOCAL_DEFS) $(CPPFLAGS) $(INCLUDES) $(LOCAL_CFLAGS) $(CFLAGS)
-# these two options need tweaking for compiler/OS versions other than gcc
-# and SunOS4
-PICFLAG= -fpic # -pic for some versions of cc
-SHLIB_OPTS= -assert pure-text -ldl # -Bshareable for some versions of gcc
-
-MAJOR= 3
-# shared library systems like SVR4's do not use minor versions
-MINOR= .0
-
-.SUFFIXES: .so
-
.c.o:
+ ${RM} $@
$(CC) -c $(CCFLAGS) $<
-.c.so:
- -mv $*.o z$*.o
- $(CC) -c $(PICFLAG) $(CCFLAGS) $<
- mv $*.o $@
- -mv z$*.o $*.o
-
# The name of the main library target.
LIBRARY_NAME = libreadline.a
STATIC_LIBS = libreadline.a libhistory.a
-SHARED_READLINE = libreadline.so.$(MAJOR)$(MINOR)
-SHARED_HISTORY = libhistory.so.$(MAJOR)$(MINOR)
-SHARED_LIBS = $(SHARED_READLINE) $(SHARED_HISTORY)
-
# The C code source files for this library.
CSOURCES = $(srcdir)/readline.c $(srcdir)/funmap.c $(srcdir)/keymaps.c \
$(srcdir)/vi_mode.c $(srcdir)/parens.c $(srcdir)/rltty.c \
@@ -104,65 +83,50 @@ CSOURCES = $(srcdir)/readline.c $(srcdir)/funmap.c $(srcdir)/keymaps.c \
$(srcdir)/callback.c $(srcdir)/terminal.c $(srcdir)/xmalloc.c \
$(srcdir)/history.c $(srcdir)/histsearch.c $(srcdir)/histexpand.c \
$(srcdir)/histfile.c $(srcdir)/nls.c $(srcdir)/search.c \
- $(srcdir)/shell.c $(srcdir)/tilde.c
+ $(srcdir)/shell.c $(srcdir)/savestring.c $(srcdir)/tilde.c
# The header files for this library.
HSOURCES = readline.h rldefs.h chardefs.h keymaps.h history.h histlib.h \
posixstat.h posixdir.h posixjmp.h tilde.h rlconf.h rltty.h \
- ansi_stdlib.h tcap.h
+ ansi_stdlib.h tcap.h rlstdc.h
-HISTOBJ = history.o histexpand.o histfile.o histsearch.o shell.o
+HISTOBJ = history.o histexpand.o histfile.o histsearch.o shell.o
TILDEOBJ = tilde.o
OBJECTS = readline.o vi_mode.o funmap.o keymaps.o parens.o search.o \
rltty.o complete.o bind.o isearch.o display.o signals.o \
util.o kill.o undo.o macro.o input.o callback.o terminal.o \
nls.o xmalloc.o $(HISTOBJ) $(TILDEOBJ)
-SHARED_HISTOBJ = history.so histexpand.so histfile.so histsearch.so shell.so
-SHARED_TILDEOBJ = tilde.so
-SHARED_OBJ = readline.so vi_mode.so funmap.so keymaps.so parens.so search.so \
- rltty.so complete.so bind.so isearch.so display.so signals.so \
- util.so kill.so undo.so macro.so input.so callback.so terminal.so \
- nls.so xmalloc.so $(SHARED_HISTOBJ) $(SHARED_TILDEOBJ)
-
# The texinfo files which document this library.
DOCSOURCE = doc/rlman.texinfo doc/rltech.texinfo doc/rluser.texinfo
DOCOBJECT = doc/readline.dvi
DOCSUPPORT = doc/Makefile
DOCUMENTATION = $(DOCSOURCE) $(DOCOBJECT) $(DOCSUPPORT)
-CREATED_MAKEFILES = Makefile doc/Makefile examples/Makefile
+CREATED_MAKEFILES = Makefile doc/Makefile examples/Makefile shlib/Makefile
CREATED_CONFIGURE = config.status config.h config.cache config.log \
stamp-config stamp-h
CREATED_TAGS = TAGS tags
-INSTALLED_HEADERS = readline.h chardefs.h keymaps.h history.h tilde.h
+INSTALLED_HEADERS = readline.h chardefs.h keymaps.h history.h tilde.h \
+ rlstdc.h rlconf.h
##########################################################################
all: static
static: $(STATIC_LIBS)
-shared: $(SHARED_LIBS)
libreadline.a: $(OBJECTS)
$(RM) $@
- $(AR) cr $@ $(OBJECTS)
+ $(AR) $(ARFLAGS) $@ $(OBJECTS)
-test -n "$(RANLIB)" && $(RANLIB) $@
libhistory.a: $(HISTOBJ) xmalloc.o
$(RM) $@
- $(AR) cr $@ $(HISTOBJ) xmalloc.o
+ $(AR) $(ARFLAGS) $@ $(HISTOBJ) xmalloc.o
-test -n "$(RANLIB)" && $(RANLIB) $@
-$(SHARED_READLINE): $(SHARED_OBJ)
- $(RM) $@
- $(LD) ${SHLIB_OPTS} -o $@ $(SHARED_OBJ)
-
-$(SHARED_HISTORY): $(SHARED_HISTOBJ) xmalloc.so
- $(RM) $@
- $(LD) ${SHLIB_OPTS} -o $@ $(SHARED_HISTOBJ) xmalloc.so
-
readline: $(OBJECTS) readline.h rldefs.h chardefs.h
$(CC) $(CCFLAGS) -o $@ ./examples/rl.c ./libreadline.a -ltermcap
@@ -186,6 +150,11 @@ stamp-h: config.status $(srcdir)/config.h.in
$(srcdir)/configure: $(srcdir)/configure.in ## Comment-me-out in distribution
cd $(srcdir) && autoconf ## Comment-me-out in distribution
+
+shared: force
+ -test -d shlib || mkdir shlib
+ -( cd shlib ; ${MAKE} ${MFLAGS} all )
+
documentation: force
-test -d doc || mkdir doc
-( cd doc && $(MAKE) $(MFLAGS) )
@@ -222,13 +191,10 @@ uninstall:
${RM} libreadline.a libreadline.old libhistory.a libhistory.old $(SHARED_LIBS)
install-shared: installdirs shared
- -$(MV) $(libdir)/$(SHARED_HISTORY) $(libdir)/$(SHARED_HISTORY).old
- $(INSTALL_DATA) $(SHARED_HISTORY) $(libdir)/$(SHARED_HISTORY)
- -$(MV) $(libdir)/$(SHARED_READLINE) $(libdir)/$(SHARED_READLINE).old
- $(INSTALL_DATA) $(SHARED_READLINE) $(libdir)/$(SHARED_READLINE)
+ -( cd shlib ; ${MAKE} ${MFLAGS} install )
uninstall-shared:
- -test -n "$(libdir)" && cd $(libdir) && ${RM} ${SHARED_LIBS}
+ -( cd shlib; ${MAKE} ${MFLAGS} uninstall )
TAGS: force
$(ETAGS) $(CSOURCES) $(HSOURCES)
@@ -238,15 +204,17 @@ tags: force
clean: force
$(RM) $(OBJECTS) $(STATIC_LIBS)
- $(RM) $(SHARED_OBJ) $(SHARED_LIBS)
+ -( cd shlib && $(MAKE) $(MFLAGS) $@ )
-( cd doc && $(MAKE) $(MFLAGS) $@ )
-( cd examples && $(MAKE) $(MFLAGS) $@ )
mostlyclean: clean
+ -( cd shlib && $(MAKE) $(MFLAGS) $@ )
-( cd doc && $(MAKE) $(MFLAGS) $@ )
-( cd examples && $(MAKE) $(MFLAGS) $@ )
distclean maintainer-clean: clean
+ -( cd shlib && $(MAKE) $(MFLAGS) $@ )
-( cd doc && $(MAKE) $(MFLAGS) $@ )
-( cd examples && $(MAKE) $(MFLAGS) $@ )
$(RM) Makefile
@@ -274,89 +242,89 @@ dist: force
# Dependencies
bind.o: ansi_stdlib.h posixstat.h
bind.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-bind.o: readline.h keymaps.h chardefs.h tilde.h
+bind.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
bind.o: history.h
callback.o: rlconf.h
callback.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-callback.o: readline.h keymaps.h chardefs.h tilde.h
+callback.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
complete.o: ansi_stdlib.h posixdir.h posixstat.h
complete.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-complete.o: readline.h keymaps.h chardefs.h tilde.h
+complete.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
display.o: ansi_stdlib.h posixstat.h
display.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
display.o: tcap.h
display.o: readline.h keymaps.h chardefs.h tilde.h
-display.o: history.h
+display.o: history.h rlstdc.h
funmap.o: readline.h keymaps.h chardefs.h tilde.h
-funmap.o: rlconf.h ansi_stdlib.h
+funmap.o: rlconf.h ansi_stdlib.h rlstdc.h
funmap.o: ${BUILD_DIR}/config.h
histexpand.o: ansi_stdlib.h
-histexpand.o: history.h histlib.h
+histexpand.o: history.h histlib.h rlstdc.h
histexpand.o: ${BUILD_DIR}/config.h
histfile.o: ansi_stdlib.h
-histfile.o: history.h histlib.h
+histfile.o: history.h histlib.h rlstdc.h
histfile.o: ${BUILD_DIR}/config.h
history.o: ansi_stdlib.h
-history.o: history.h histlib.h
+history.o: history.h histlib.h rlstdc.h
history.o: ${BUILD_DIR}/config.h
histsearch.o: ansi_stdlib.h
-histsearch.o: history.h histlib.h
+histsearch.o: history.h histlib.h rlstdc.h
histsearch.o: ${BUILD_DIR}/config.h
input.o: ansi_stdlib.h
input.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-input.o: readline.h keymaps.h chardefs.h tilde.h
+input.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
isearch.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
isearch.o: readline.h keymaps.h chardefs.h tilde.h
-isearch.o: ansi_stdlib.h history.h
+isearch.o: ansi_stdlib.h history.h rlstdc.h
keymaps.o: emacs_keymap.c vi_keymap.c
keymaps.o: keymaps.h chardefs.h rlconf.h ansi_stdlib.h
keymaps.o: readline.h keymaps.h chardefs.h tilde.h
-keymaps.o: ${BUILD_DIR}/config.h
+keymaps.o: ${BUILD_DIR}/config.h rlstdc.h
kill.o: ansi_stdlib.h
kill.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
kill.o: readline.h keymaps.h chardefs.h tilde.h
-kill.o: history.h
+kill.o: history.h rlstdc.h
macro.o: ansi_stdlib.h
macro.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
macro.o: readline.h keymaps.h chardefs.h tilde.h
-macro.o: history.h
+macro.o: history.h rlstdc.h
nls.o: ansi_stdlib.h
nls.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
parens.o: rlconf.h
parens.o: ${BUILD_DIR}/config.h
-parens.o: readline.h keymaps.h chardefs.h tilde.h
+parens.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
readline.o: readline.h keymaps.h chardefs.h tilde.h
readline.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-readline.o: history.h
+readline.o: history.h rlstdc.h
readline.o: posixstat.h ansi_stdlib.h posixjmp.h
rltty.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
rltty.o: rltty.h
-rltty.o: readline.h keymaps.h chardefs.h tilde.h
+rltty.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
search.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
search.o: readline.h keymaps.h chardefs.h tilde.h
-search.o: ansi_stdlib.h history.h
+search.o: ansi_stdlib.h history.h rlstdc.h
shell.o: ${BUILD_DIR}/config.h
shell.o: ansi_stdlib.h
signals.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
signals.o: readline.h keymaps.h chardefs.h tilde.h
-signals.o: history.h
+signals.o: history.h rlstdc.h
terminal.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
terminal.o: tcap.h
terminal.o: readline.h keymaps.h chardefs.h tilde.h
-terminal.o: history.h
+terminal.o: history.h rlstdc.h
tilde.o: ansi_stdlib.h
tilde.o: ${BUILD_DIR}/config.h
tilde.o: tilde.h
undo.o: ansi_stdlib.h
undo.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
undo.o: readline.h keymaps.h chardefs.h tilde.h
-undo.o: history.h
+undo.o: history.h rlstdc.h
util.o: posixjmp.h ansi_stdlib.h
util.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-util.o: readline.h keymaps.h chardefs.h tilde.h
+util.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h
vi_mode.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
vi_mode.o: readline.h keymaps.h chardefs.h tilde.h
-vi_mode.o: history.h ansi_stdlib.h
+vi_mode.o: history.h ansi_stdlib.h rlstdc.h
xmalloc.o: ${BUILD_DIR}/config.h
xmalloc.o: ansi_stdlib.h
@@ -385,95 +353,10 @@ history.o: $(srcdir)/history.c
histexpand.o: $(srcdir)/histexpand.c
histfile.o: $(srcdir)/histfile.c
histsearch.o: $(srcdir)/histsearch.c
+savestring.o: $(srcdir)/savestring.c
shell.o: $(srcdir)/shell.c
tilde.o: $(srcdir)/tilde.c
-bind.so: ansi_stdlib.h posixstat.h
-bind.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-bind.so: readline.h keymaps.h chardefs.h tilde.h
-bind.so: history.h
-callback.so: rlconf.h
-callback.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-callback.so: readline.h keymaps.h chardefs.h tilde.h
-complete.so: ansi_stdlib.h posixdir.h posixstat.h
-complete.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-complete.so: readline.h keymaps.h chardefs.h tilde.h
-display.so: ansi_stdlib.h posixstat.h
-display.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-display.so: tcap.h
-display.so: readline.h keymaps.h chardefs.h tilde.h
-display.so: history.h
-funmap.so: readline.h keymaps.h chardefs.h tilde.h
-funmap.so: rlconf.h ansi_stdlib.h
-funmap.so: ${BUILD_DIR}/config.h
-histexpand.so: ansi_stdlib.h
-histexpand.so: history.h histlib.h
-histexpand.so: ${BUILD_DIR}/config.h
-histfile.so: ansi_stdlib.h
-histfile.so: history.h histlib.h
-histfile.so: ${BUILD_DIR}/config.h
-history.so: ansi_stdlib.h
-history.so: history.h histlib.h
-history.so: ${BUILD_DIR}/config.h
-histsearch.so: ansi_stdlib.h
-histsearch.so: history.h histlib.h
-histsearch.so: ${BUILD_DIR}/config.h
-input.so: ansi_stdlib.h
-input.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-input.so: readline.h keymaps.h chardefs.h tilde.h
-isearch.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-isearch.so: readline.h keymaps.h chardefs.h tilde.h
-isearch.so: ansi_stdlib.h history.h
-keymaps.so: emacs_keymap.c vi_keymap.c
-keymaps.so: keymaps.h chardefs.h rlconf.h ansi_stdlib.h
-keymaps.so: readline.h keymaps.h chardefs.h tilde.h
-keymaps.so: ${BUILD_DIR}/config.h
-kill.so: ansi_stdlib.h
-kill.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-kill.so: readline.h keymaps.h chardefs.h tilde.h
-kill.so: history.h
-macro.so: ansi_stdlib.h
-macro.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-macro.so: readline.h keymaps.h chardefs.h tilde.h
-macro.so: history.h
-nls.so: ansi_stdlib.h
-nls.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-parens.so: rlconf.h
-parens.so: ${BUILD_DIR}/config.h
-parens.so: readline.h keymaps.h chardefs.h tilde.h
-readline.so: readline.h keymaps.h chardefs.h tilde.h
-readline.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-readline.so: history.h
-readline.so: posixstat.h ansi_stdlib.h posixjmp.h
-rltty.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-rltty.so: rltty.h
-rltty.so: readline.h keymaps.h chardefs.h tilde.h
-search.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-search.so: readline.h keymaps.h chardefs.h tilde.h
-search.so: ansi_stdlib.h history.h
-signals.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-signals.so: readline.h keymaps.h chardefs.h tilde.h
-signals.so: history.h
-terminal.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-terminal.so: tcap.h
-terminal.so: readline.h keymaps.h chardefs.h tilde.h
-terminal.so: history.h
-tilde.so: ansi_stdlib.h
-tilde.so: ${BUILD_DIR}/config.h
-tilde.so: tilde.h
-undo.so: ansi_stdlib.h
-undo.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-undo.so: readline.h keymaps.h chardefs.h tilde.h
-undo.so: history.h
-util.so: posixjmp.h ansi_stdlib.h
-util.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-util.so: readline.h keymaps.h chardefs.h tilde.h
-vi_mode.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h
-vi_mode.so: readline.h keymaps.h chardefs.h tilde.h
-vi_mode.so: history.h ansi_stdlib.h
-xmalloc.so: ${BUILD_DIR}/config.h
-xmalloc.so: ansi_stdlib.h
-
readline.o: readline.c
vi_mode.o: vi_mode.c
funmap.o: funmap.c
@@ -499,61 +382,6 @@ history.o: history.c
histexpand.o: histexpand.c
histfile.o: histfile.c
histsearch.o: histsearch.c
+savestring.o: savestring.c
shell.o: shell.c
tilde.o: tilde.c
-
-readline.so: $(srcdir)/readline.c
-vi_mode.so: $(srcdir)/vi_mode.c
-funmap.so: $(srcdir)/funmap.c
-keymaps.so: $(srcdir)/keymaps.c
-parens.so: $(srcdir)/parens.c
-search.so: $(srcdir)/search.c
-rltty.so: $(srcdir)/rltty.c
-complete.so: $(srcdir)/complete.c
-bind.so: $(srcdir)/bind.c
-isearch.so: $(srcdir)/isearch.c
-display.so: $(srcdir)/display.c
-signals.so: $(srcdir)/signals.c
-util.so: $(srcdir)/util.c
-kill.so: $(srcdir)/kill.c
-undo.so: $(srcdir)/undo.c
-macro.so: $(srcdir)/macro.c
-input.so: $(srcdir)/input.c
-callback.so: $(srcdir)/callback.c
-terminal.so: $(srcdir)/terminal.c
-nls.so: $(srcdir)/nls.c
-xmalloc.so: $(srcdir)/xmalloc.c
-history.so: $(srcdir)/history.c
-histexpand.so: $(srcdir)/histexpand.c
-histfile.so: $(srcdir)/histfile.c
-histsearch.so: $(srcdir)/histsearch.c
-shell.so: $(srcdir)/shell.c
-tilde.so: $(srcdir)/tilde.c
-
-readline.so: readline.c
-vi_mode.so: vi_mode.c
-funmap.so: funmap.c
-keymaps.so: keymaps.c
-parens.so: parens.c
-search.so: search.c
-rltty.so: rltty.c
-complete.so: complete.c
-bind.so: bind.c
-isearch.so: isearch.c
-display.so: display.c
-signals.so: signals.c
-util.so: util.c
-kill.so: kill.c
-undo.so: undo.c
-macro.so: macro.c
-input.so: input.c
-callback.so: callback.c
-terminal.so: terminal.c
-nls.so: nls.c
-xmalloc.so: xmalloc.c
-history.so: history.c
-histexpand.so: histexpand.c
-histfile.so: histfile.c
-histsearch.so: histsearch.c
-shell.so: shell.c
-tilde.so: tilde.c
diff --git a/README b/README
index f19f925..56565b2 100644
--- a/README
+++ b/README
@@ -1,7 +1,7 @@
Introduction
============
-This is the Gnu Readline library, version 2.2
+This is the Gnu Readline library, version 4.0.
The Readline library provides a set of functions for use by applications
that allow users to edit command lines as they are typed in. Both
@@ -34,8 +34,8 @@ may work:
Read the file INSTALL in this directory for more information about how
to customize and control the build process.
-The file rlconf.h contains defines that enable and disable certain
-Readline features.
+The file rlconf.h contains C preprocessor defines that enable and disable
+certain Readline features.
Examples
========
@@ -49,32 +49,83 @@ Shared Libraries
================
There is skeletal support for building shared versions of the
-Readline and History libraries.
-
-Typing `make shared' will cause shared versions of the Readline and
-History libraries to be built on SunOS 4.1.x. For versions of Unix
-other than SunOS, you will have to make some changes to Makefile.in.
-The relevant variables are:
-
-PICFLAG Options to give to the compiler to produce position-independent
- code. The value `-fpic' works for most versions of gcc.
-SHLIB_OPTS Options to give to the linker to produce a shared library.
- The value `-assert pure-text -ldl' works on SunOS 4.1.x.
- The value `-Bshareable' works for some versions of GNU ld.
-
-MAJOR The major version number of the shared library. You should
- not need to change this.
-MINOR The minor version number of the shared library. Some systems,
- such as SVR4 and its descendents (e.g., Solaris, Unixware),
- do not use minor version numbers. For those systems, this
- variable should be left unset.
-
-LD The linker. The value of `ld' is correct for SunOS 4.1.x.
- You may need to change it to `gcc'; make sure to change
- SHLIB_OPTS if you do so.
-
-Once you have edited Makefile.in, type `make Makefile' to rebuild the
-Makefile, then `make shared' to build the shared libraries.
+Readline and History libraries. The configure script creates
+a Makefile in the `shlib' subdirectory, and typing `make shared'
+will cause shared versions of the Readline and History libraries
+to be built on supported platforms.
+
+Configure calls the script support/shobj-conf to test whether or
+not shared library creation is supported and to generate the values
+of variables that are substituted into shlib/Makefile. If you
+try to build shared libraries on an unsupported platform, `make'
+will display a message asking you to update support/shobj-conf for
+your platform.
+
+If you need to update support/shobj-conf, you will need to create
+a `stanza' for your operating system and compiler. The script uses
+the value of host_os and ${CC} as determined by configure. For
+instance, FreeBSD 2.2.5 with any version of gcc is identified as
+`freebsd2.2.5-gcc*'.
+
+In the stanza for your operating system-compiler pair, you will need to
+define several variables. They are:
+
+SHOBJ_CC The C compiler used to compile source files into shareable
+ object files. This is normally set to the value of ${CC}
+ by configure, and should not need to be changed.
+
+SHOBJ_CFLAGS Flags to pass to the C compiler ($SHOBJ_CC) to create
+ position-independent code. If you are using gcc, this
+ should probably be set to `-fpic'.
+
+SHOBJ_LD The link editor to be used to create the shared library from
+ the object files created by $SHOBJ_CC. If you are using
+ gcc, a value of `gcc' will probably work.
+
+SHOBJ_LDFLAGS Flags to pass to SHOBJ_LD to enable shared object creation.
+ If you are using gcc, `-shared' may be all that is necessary.
+ These should be the flags needed for generic shared object
+ creation.
+
+SHLIB_XLDFLAGS Additional flags to pass to SHOBJ_LD for shared library
+ creation. Many systems use the -R option to the link
+ editor to embed a path within the library for run-time
+ library searches. A reasonable value for such systems would
+ be `-R$(libdir)'.
+
+SHLIB_LIBS Any additional libraries that shared libraries should be
+ linked against when they are created.
+
+SHLIB_LIBSUFF The suffix to add to `libreadline' and `libhistory' when
+ generating the filename of the shared library. Many systems
+ use `so'; HP-UX uses `sl'.
+
+SHLIB_LIBVERSION The string to append to the filename to indicate the version
+ of the shared library. It should begin with $(SHLIB_LIBSUFF),
+ and possibly include version information that allows the
+ run-time loader to load the version of the shared library
+ appropriate for a particular program. Systems using shared
+ libraries similar to SunOS 4.x use major and minor library
+ version numbers; for those systems a value of
+ `$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)' is appropriate.
+ Systems based on System V Release 4 don't use minor version
+ numbers; use `$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)' on those systems.
+ Other Unix versions use different schemes.
+
+SHLIB_STATUS Set this to `supported' when you have defined the other
+ necessary variables. Make uses this to determine whether
+ or not shared library creation should be attempted.
+
+You should look at the existing stanzas in support/shobj-conf for ideas.
+
+Once you have updated support/shobj-conf, re-run configure and type
+`make shared'. The shared libraries will be created in the shlib
+subdirectory.
+
+Since shared libraries are not created on all platforms, `make install'
+will not automatically install the shared libraries. To install them,
+change the current directory to shlib and type `make install'. Running
+`make install-shared' from the top-level build directory will also work.
Documentation
=============
@@ -93,7 +144,7 @@ Bug reports for Readline should be sent to:
When reporting a bug, please include the following information:
- * the version number and release status of Readline (e.g., 2.2-release)
+ * the version number and release status of Readline (e.g., 4.0-release)
* the machine and OS that it is running on
* a list of the compilation flags or the contents of `config.h', if
appropriate
diff --git a/aclocal.m4 b/aclocal.m4
index 822ead0..c277a0c 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -26,7 +26,7 @@ main()
exit(fl != 1);
}
], bash_cv_dup2_broken=yes, bash_cv_dup2_broken=no,
- [AC_MSG_ERROR(cannot check dup2 if cross compiling -- defaulting to no)
+ [AC_MSG_WARN(cannot check dup2 if cross compiling -- defaulting to no)
bash_cv_dup2_broken=no])
])
AC_MSG_RESULT($bash_cv_dup2_broken)
@@ -129,7 +129,7 @@ main()
exit(ok ? 0 : 5);
}
], bash_cv_pgrp_pipe=no,bash_cv_pgrp_pipe=yes,
- [AC_MSG_ERROR(cannot check pgrp synchronization if cross compiling -- defaulting to no)
+ [AC_MSG_WARN(cannot check pgrp synchronization if cross compiling -- defaulting to no)
bash_cv_pgrp_pipe=no])
])
AC_MSG_RESULT($bash_cv_pgrp_pipe)
@@ -187,7 +187,7 @@ main()
#endif
exit(1);
}], bash_cv_type_rlimit=quad_t, bash_cv_type_rlimit=long,
- [AC_MSG_ERROR(cannot check quad_t if cross compiling -- defaulting to long)
+ [AC_MSG_WARN(cannot check quad_t if cross compiling -- defaulting to long)
bash_cv_type_rlimit=long])])
])
AC_MSG_RESULT($bash_cv_type_rlimit)
@@ -211,7 +211,7 @@ AC_CACHE_VAL(bash_cv_decl_under_sys_siglist,
#include
#endif], [ char *msg = _sys_siglist[2]; ],
bash_cv_decl_under_sys_siglist=yes, bash_cv_decl_under_sys_siglist=no,
- [AC_MSG_ERROR(cannot check for _sys_siglist[] if cross compiling -- defaulting to no)])])dnl
+ [AC_MSG_WARN(cannot check for _sys_siglist[] if cross compiling -- defaulting to no)])])dnl
AC_MSG_RESULT($bash_cv_decl_under_sys_siglist)
if test $bash_cv_decl_under_sys_siglist = yes; then
AC_DEFINE(UNDER_SYS_SIGLIST_DECLARED)
@@ -237,7 +237,7 @@ char *msg = (char *)_sys_siglist[2];
exit(msg == 0);
}],
bash_cv_under_sys_siglist=yes, bash_cv_under_sys_siglist=no,
- [AC_MSG_ERROR(cannot check for _sys_siglist[] if cross compiling -- defaulting to no)
+ [AC_MSG_WARN(cannot check for _sys_siglist[] if cross compiling -- defaulting to no)
bash_cv_under_sys_siglist=no])])
AC_MSG_RESULT($bash_cv_under_sys_siglist)
if test $bash_cv_under_sys_siglist = yes; then
@@ -264,7 +264,7 @@ char *msg = sys_siglist[2];
exit(msg == 0);
}],
bash_cv_sys_siglist=yes, bash_cv_sys_siglist=no,
- [AC_MSG_ERROR(cannot check for sys_siglist if cross compiling -- defaulting to no)
+ [AC_MSG_WARN(cannot check for sys_siglist if cross compiling -- defaulting to no)
bash_cv_sys_siglist=no])])
AC_MSG_RESULT($bash_cv_sys_siglist)
if test $bash_cv_sys_siglist = yes; then
@@ -325,7 +325,7 @@ dir = opendir("/tmp/not_a_directory");
unlink("/tmp/not_a_directory");
exit (dir == 0);
}], bash_cv_opendir_not_robust=yes,bash_cv_opendir_not_robust=no,
- [AC_MSG_ERROR(cannot check opendir if cross compiling -- defaulting to no)
+ [AC_MSG_WARN(cannot check opendir if cross compiling -- defaulting to no)
bash_cv_opendir_not_robust=no]
)])
AC_MSG_RESULT($bash_cv_opendir_not_robust)
@@ -356,109 +356,47 @@ fi
AC_DEFUN(BASH_TYPE_INT32_T,
[
-if test "X$bash_cv_type_int32_t" = "X"; then
-_bash_needmsg=yes
+if test "$ac_cv_sizeof_int" = 4; then
+ AC_CHECK_TYPE(int32_t, int)
+elif test "$ac_cv_sizeof_long" = 4; then
+ AC_CHECK_TYPE(int32_t, long)
else
-AC_MSG_CHECKING(which builtin C type is 32 bits wide)
-_bash_needmsg=
-fi
-AC_CACHE_VAL(bash_cv_type_int32_t,
-[AC_TRY_RUN([
-main()
-{
-#if SIZEOF_INT == 4
-exit (0);
-#else
-# if SIZEOF_LONG == 4
-exit (1);
-# else
-# error cannot find 32 bit type...
-# endif
-#endif
-}], bash_cv_type_int32_t=int, bash_cv_type_int32_t=long,
- [AC_MSG_ERROR(cannot check type sizes if cross-compiling -- defaulting to int)
- bash_cv_type_int32_t=int]
-)])
-if test "X$_bash_needmsg" = "Xyes"; then
-AC_MSG_CHECKING(which builtin C type is 32 bits wide)
-fi
-AC_MSG_RESULT($bash_cv_type_int32_t);
-if test "$bash_cv_type_int32_t" = "int"; then
-AC_DEFINE(int32_t, int)
-else
-AC_DEFINE(int32_t, long)
+ AC_CHECK_TYPE(int32_t, int)
fi
])
AC_DEFUN(BASH_TYPE_U_INT32_T,
[
-if test "X$bash_cv_type_u_int32_t" = "X"; then
-_bash_needmsg=yes
-else
-AC_MSG_CHECKING(which unsigned builtin C type is 32 bits wide)
-_bash_needmsg=
-fi
-AC_CACHE_VAL(bash_cv_type_u_int32_t,
-[AC_TRY_RUN([
-main()
-{
-#if SIZEOF_INT == 4
-exit (0);
-#else
-# if SIZEOF_LONG == 4
-exit (1);
-# else
-# error cannot find 32 bit type...
-# endif
-#endif
-}], bash_cv_type_u_int32_t=int, bash_cv_type_u_int32_t=long,
- [AC_MSG_ERROR(cannot check type sizes if cross-compiling -- defaulting to int)
- bash_cv_type_u_int32_t=int]
-)])
-if test "X$_bash_needmsg" = "Xyes"; then
-AC_MSG_CHECKING(which unsigned builtin C type is 32 bits wide)
-fi
-AC_MSG_RESULT($bash_cv_type_u_int32_t);
-if test "$bash_cv_type_u_int32_t" = "int"; then
-AC_DEFINE(u_int32_t, unsigned int)
+if test "$ac_cv_sizeof_int" = 4; then
+ AC_CHECK_TYPE(u_int32_t, unsigned int)
+elif test "$ac_cv_sizeof_long" = 4; then
+ AC_CHECK_TYPE(u_int32_t, unsigned long)
else
-AC_DEFINE(u_int32_t, unsigned long)
+ AC_CHECK_TYPE(u_int32_t, unsigned int)
fi
])
AC_DEFUN(BASH_TYPE_PTRDIFF_T,
[
-if test "X$bash_cv_type_ptrdiff_t" = "X"; then
-_bash_needmsg=yes
+if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
+ AC_CHECK_TYPE(ptrdiff_t, int)
+elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
+ AC_CHECK_TYPE(ptrdiff_t, long)
else
-AC_MSG_CHECKING(which builtin C type is correct for ptrdiff_t)
-_bash_needmsg=
+ AC_CHECK_TYPE(ptrdiff_t, int)
fi
-AC_CACHE_VAL(bash_cv_type_ptrdiff_t,
-[AC_TRY_RUN([
-main()
-{
-#if SIZEOF_CHAR_P == SIZEOF_INT
-exit (0);
-#else
-# if SIZEOF_CHAR_P == SIZEOF_LONG
-exit (1);
-# else
-# error cannot find type for pointer arithmetic...
-# endif
-#endif
-}], bash_cv_type_ptrdiff_t=int, bash_cv_type_ptrdiff_t=long,
- [AC_MSG_ERROR(cannot check type sizes if cross-compiling -- defaulting to int)
- bash_cv_type_ptrdiff_t=int]
-)])
-if test "X$_bash_needmsg" = "Xyes"; then
-AC_MSG_CHECKING(which builtin C type is correct for ptrdiff_t)
-fi
-AC_MSG_RESULT($bash_cv_type_ptrdiff_t);
-if test "$bash_cv_type_ptrdiff_t" = "int"; then
-AC_DEFINE(ptrdiff_t, int)
+])
+
+AC_DEFUN(BASH_TYPE_BITS64_T,
+[
+if test "$ac_sv_sizeof_char_p" = 8; then
+ AC_CHECK_TYPE(bits64_t, char *)
+elif test "$ac_cv_sizeof_double" = 8; then
+ AC_CHECK_TYPE(bits64_t, double)
+elif test "$ac_cv_sizeof_long" = 8; then
+ AC_CHECK_TYPE(bits64_t, long)
else
-AC_DEFINE(ptrdiff_t, long)
+ AC_CHECK_TYPE(bits64_t, double)
fi
])
@@ -548,7 +486,7 @@ s = getenv("ABCDE");
exit(s == 0); /* force optimizer to leave getenv in */
}
], bash_cv_getenv_redef=yes, bash_cv_getenv_redef=no,
- [AC_MSG_ERROR(cannot check getenv redefinition if cross compiling -- defaulting to yes)
+ [AC_MSG_WARN(cannot check getenv redefinition if cross compiling -- defaulting to yes)
bash_cv_getenv_redef=yes]
)])
AC_MSG_RESULT($bash_cv_getenv_redef)
@@ -574,7 +512,7 @@ pf = (_bashfunc) printf;
exit(pf == 0);
}
], bash_cv_printf_declared=yes, bash_cv_printf_declared=no,
- [AC_MSG_ERROR(cannot check printf declaration if cross compiling -- defaulting to yes)
+ [AC_MSG_WARN(cannot check printf declaration if cross compiling -- defaulting to yes)
bash_cv_printf_declared=yes]
)])
AC_MSG_RESULT($bash_cv_printf_declared)
@@ -593,7 +531,7 @@ long maxfds = ulimit(4, 0L);
exit (maxfds == -1L);
}
], bash_cv_ulimit_maxfds=yes, bash_cv_ulimit_maxfds=no,
- [AC_MSG_ERROR(cannot check ulimit if cross compiling -- defaulting to no)
+ [AC_MSG_WARN(cannot check ulimit if cross compiling -- defaulting to no)
bash_cv_ulimit_maxfds=no]
)])
AC_MSG_RESULT($bash_cv_ulimit_maxfds)
@@ -690,7 +628,7 @@ main()
exit (popen_called);
}
], bash_cv_getcwd_calls_popen=no, bash_cv_getcwd_calls_popen=yes,
- [AC_MSG_ERROR(cannot check whether getcwd calls popen if cross compiling -- defaulting to no)
+ [AC_MSG_WARN(cannot check whether getcwd calls popen if cross compiling -- defaulting to no)
bash_cv_getcwd_calls_popen=no]
)])
AC_MSG_RESULT($bash_cv_getcwd_calls_popen)
@@ -814,7 +752,7 @@ main()
exit(nsigint != 2);
}
], bash_cv_must_reinstall_sighandlers=no, bash_cv_must_reinstall_sighandlers=yes,
- [AC_MSG_ERROR(cannot check signal handling if cross compiling -- defaulting to no)
+ [AC_MSG_WARN(cannot check signal handling if cross compiling -- defaulting to no)
bash_cv_must_reinstall_sighandlers=no]
)])
AC_MSG_RESULT($bash_cv_must_reinstall_sighandlers)
@@ -883,7 +821,7 @@ exit(1);
exit(0);
}], bash_cv_job_control_missing=present, bash_cv_job_control_missing=missing,
- [AC_MSG_ERROR(cannot check job control if cross-compiling -- defaulting to missing)
+ [AC_MSG_WARN(cannot check job control if cross-compiling -- defaulting to missing)
bash_cv_job_control_missing=missing]
)])
AC_MSG_RESULT($bash_cv_job_control_missing)
@@ -928,7 +866,7 @@ close(fd);
unlink ("/tmp/sh-np-autoconf");
exit(0);
}], bash_cv_sys_named_pipes=present, bash_cv_sys_named_pipes=missing,
- [AC_MSG_ERROR(cannot check for named pipes if cross-compiling -- defaulting to missing)
+ [AC_MSG_WARN(cannot check for named pipes if cross-compiling -- defaulting to missing)
bash_cv_sys_named_pipes=missing]
)])
AC_MSG_RESULT($bash_cv_sys_named_pipes)
@@ -979,7 +917,7 @@ siglongjmp(xx, 10);
exit(1);
#endif
}], bash_cv_func_sigsetjmp=present, bash_cv_func_sigsetjmp=missing,
- [AC_MSG_ERROR(cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing)
+ [AC_MSG_WARN(cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing)
bash_cv_func_sigsetjmp=missing]
)])
AC_MSG_RESULT($bash_cv_func_sigsetjmp)
@@ -1246,7 +1184,7 @@ char *v[];
exit (r1 > 0 && r2 > 0);
}
], bash_cv_func_strcoll_broken=yes, bash_cv_func_strcoll_broken=no,
- [AC_MSG_ERROR(cannot check strcoll if cross compiling -- defaulting to no)
+ [AC_MSG_WARN(cannot check strcoll if cross compiling -- defaulting to no)
bash_cv_func_strcoll_broken=no]
)])
AC_MSG_RESULT($bash_cv_func_strcoll_broken)
@@ -1336,9 +1274,28 @@ main ()
#endif
}
], bash_cv_sys_restartable_syscalls=yes, bash_cv_sys_restartable_syscalls=no,
- AC_MSG_ERROR(cannot check restartable syscalls if cross compiling))
+ AC_MSG_WARN(cannot check restartable syscalls if cross compiling))
])
if test $bash_cv_sys_restartable_syscalls = yes; then
AC_DEFINE(HAVE_RESTARTABLE_SYSCALLS)
fi
])
+dnl
+dnl Check for 64-bit off_t -- used for malloc alignment
+dnl
+dnl C does not allow duplicate case labels, so the compile will fail if
+dnl sizeof(off_t) is > 4.
+dnl
+AC_DEFUN(BASH_CHECK_OFF_T_64,
+[AC_CACHE_CHECK(for 64-bit off_t, bash_cv_off_t_64,
+AC_TRY_COMPILE([
+#ifdef HAVE_UNISTD_H
+#include
+#endif
+#include
+],[
+switch (0) case 0: case (sizeof (off_t) <= 4):;
+], bash_cv_off_t_64=no, bash_cv_off_t_64=yes))
+if test $bash_cv_off_t_64 = yes; then
+ AC_DEFINE(HAVE_OFF_T_64)
+fi])
diff --git a/bind.c b/bind.c
index 300530a..f446dc8 100644
--- a/bind.c
+++ b/bind.c
@@ -83,6 +83,7 @@ extern int rl_complete_with_tilde_expansion;
extern int rl_completion_query_items;
extern int rl_inhibit_completion;
extern char *_rl_comment_begin;
+extern unsigned char *_rl_isearch_terminators;
extern int rl_explicit_arg;
extern int rl_editing_mode;
@@ -207,13 +208,17 @@ rl_unbind_function_in_map (func, map)
Function *func;
Keymap map;
{
- register int i;
+ register int i, rval;
- for (i = 0; i < KEYMAP_SIZE; i++)
+ for (i = rval = 0; i < KEYMAP_SIZE; i++)
{
if (map[i].type == ISFUNC && map[i].function == func)
- map[i].function = (Function *)NULL;
+ {
+ map[i].function = (Function *)NULL;
+ rval = 1;
+ }
}
+ return rval;
}
int
@@ -222,7 +227,6 @@ rl_unbind_command_in_map (command, map)
Keymap map;
{
Function *func;
- register int i;
func = rl_named_function (command);
if (func == 0)
@@ -663,7 +667,11 @@ _rl_read_file (filename, sizep)
i = read (file, buffer, file_size);
close (file);
+#if 0
if (i < file_size)
+#else
+ if (i < 0)
+#endif
{
free (buffer);
return ((char *)NULL);
@@ -727,6 +735,8 @@ _rl_read_init_file (filename, include_level)
openname = tilde_expand (filename);
buffer = _rl_read_file (openname, &file_size);
+ free (openname);
+
if (buffer == 0)
return (errno);
@@ -1338,7 +1348,34 @@ rl_variable_bind (name, value)
else
_rl_bell_preference = AUDIBLE_BELL;
}
+ else if (_rl_stricmp (name, "isearch-terminators") == 0)
+ {
+ /* Isolate the value and translate it into a character string. */
+ int beg, end;
+ char *v;
+ v = savestring (value);
+ FREE (_rl_isearch_terminators);
+ if (v[0] == '"' || v[0] == '\'')
+ {
+ int delim = v[0];
+ for (beg = end = 1; v[end] && v[end] != delim; end++)
+ ;
+ }
+ else
+ {
+ for (beg = end = 0; whitespace (v[end]) == 0; end++)
+ ;
+ }
+
+ v[end] = '\0';
+ /* The value starts at v + beg. Translate it into a character string. */
+ _rl_isearch_terminators = (unsigned char *)xmalloc (2 * strlen (v) + 1);
+ rl_translate_keyseq (v + beg, _rl_isearch_terminators, &end);
+ _rl_isearch_terminators[end] = '\0';
+ free (v);
+ }
+
/* For the time being, unknown variable names are simply ignored. */
return 0;
}
@@ -1492,7 +1529,7 @@ _rl_get_keyname (key)
int key;
{
char *keyname;
- int i, c, v;
+ int i, c;
keyname = (char *)xmalloc (8);
@@ -1897,6 +1934,21 @@ rl_variable_dumper (print_readably)
fprintf (rl_outstream, "set keymap %s\n", kname ? kname : "none");
else
fprintf (rl_outstream, "keymap is set to `%s'\n", kname ? kname : "none");
+
+ /* isearch-terminators */
+ if (_rl_isearch_terminators)
+ {
+ char *disp;
+
+ disp = _rl_untranslate_macro_value (_rl_isearch_terminators);
+
+ if (print_readably)
+ fprintf (rl_outstream, "set isearch-terminators \"%s\"\n", disp);
+ else
+ fprintf (rl_outstream, "isearch-terminators is set to \"%s\"\n", disp);
+
+ free (disp);
+ }
}
/* Print all of the current variables and their values to
diff --git a/callback.c b/callback.c
index 34dbc72..6915be4 100644
--- a/callback.c
+++ b/callback.c
@@ -36,7 +36,7 @@
#include "rldefs.h"
#include "readline.h"
-extern void readline_internal_startup ();
+extern void readline_internal_setup ();
extern char *readline_internal_teardown ();
extern int readline_internal_char ();
extern void _rl_init_line_state ();
diff --git a/complete.c b/complete.c
index 985e898..714a2bf 100644
--- a/complete.c
+++ b/complete.c
@@ -85,6 +85,15 @@ extern void _rl_move_vert ();
extern int _rl_vis_botlin;
extern int rl_display_fixed;
+/* If non-zero, then this is the address of a function to call when
+ completing a word would normally display the list of possible matches.
+ This function is called instead of actually doing the display.
+ It takes three arguments: (char **matches, int num_matches, int max_length)
+ where MATCHES is the array of strings that matched, NUM_MATCHES is the
+ number of strings in that array, and MAX_LENGTH is the length of the
+ longest string in that array. */
+VFunction *rl_completion_display_matches_hook = (VFunction *)NULL;
+
/* Forward declarations for functions defined and used in this file. */
char *filename_completion_function ();
char **completion_matches ();
@@ -674,6 +683,7 @@ gen_completion_matches (text, start, end, our_func, found_quote, quote_char)
we are doing filename completion and the application has defined a
filename dequoting function. */
temp = (char *)NULL;
+
if (found_quote && our_func == (Function *)filename_completion_function &&
rl_filename_dequoting_function)
{
@@ -682,7 +692,7 @@ gen_completion_matches (text, start, end, our_func, found_quote, quote_char)
text = temp; /* not freeing text is not a memory leak */
}
- matches = completion_matches (text, our_func);
+ matches = completion_matches (text, (CPFunction *)our_func);
FREE (temp);
return matches;
}
@@ -813,8 +823,7 @@ compute_lcd_of_matches (match_list, matches, text)
}
static int
-postprocess_matches (text, matchesp, matching_filenames)
- char *text;
+postprocess_matches (matchesp, matching_filenames)
char ***matchesp;
int matching_filenames;
{
@@ -845,7 +854,6 @@ postprocess_matches (text, matchesp, matching_filenames)
if (matches == 0 || matches[0] == 0)
{
FREE (matches);
- ding ();
*matchesp = (char **)0;
return 0;
}
@@ -857,7 +865,7 @@ postprocess_matches (text, matchesp, matching_filenames)
if (i > 1 && i < nmatch)
{
t = matches[0];
- compute_lcd_of_matches (matches, i - 1, text);
+ compute_lcd_of_matches (matches, i - 1, t);
FREE (t);
}
}
@@ -867,66 +875,19 @@ postprocess_matches (text, matchesp, matching_filenames)
return (1);
}
-static void
-display_matches (matches)
+/* A convenience function for displaying a list of strings in
+ columnar format on readline's output stream. MATCHES is the list
+ of strings, in argv format, LEN is the number of strings in MATCHES,
+ and MAX is the length of the longest string in MATCHES. */
+void
+rl_display_match_list (matches, len, max)
char **matches;
+ int len, max;
{
- int len, count, limit, max, printed_len;
+ int count, limit, printed_len;
int i, j, k, l;
char *temp;
- /* Move to the last visible line of a possibly-multiple-line command. */
- _rl_move_vert (_rl_vis_botlin);
-
- /* Handle simple case first. What if there is only one answer? */
- if (matches[1] == 0)
- {
- temp = printable_part (matches[0]);
- crlf ();
- print_filename (temp, matches[0]);
- crlf ();
-#if 0
- rl_on_new_line ();
-#else
- rl_forced_update_display ();
- rl_display_fixed = 1;
-#endif
- return;
- }
-
- /* There is more than one answer. Find out how many there are,
- and find the maximum printed length of a single entry. */
- for (max = 0, i = 1; matches[i]; i++)
- {
- temp = printable_part (matches[i]);
- len = strlen (temp);
-
- if (len > max)
- max = len;
- }
-
- len = i - 1;
-
- /* If there are many items, then ask the user if she really wants to
- see them all. */
- if (len >= rl_completion_query_items)
- {
- crlf ();
- fprintf (rl_outstream, "Display all %d possibilities? (y or n)", len);
- fflush (rl_outstream);
- if (get_y_or_n () == 0)
- {
- crlf ();
-#if 0
- rl_on_new_line ();
-#else
- rl_forced_update_display ();
- rl_display_fixed = 1;
-#endif
- return;
- }
- }
-
/* How many items of MAX length can we fit in the screen window? */
max += 2;
limit = screenwidth / max;
@@ -993,13 +954,85 @@ display_matches (matches)
}
crlf ();
}
+}
+
+/* Display MATCHES, a list of matching filenames in argv format. This
+ handles the simple case -- a single match -- first. If there is more
+ than one match, we compute the number of strings in the list and the
+ length of the longest string, which will be needed by the display
+ function. If the application wants to handle displaying the list of
+ matches itself, it sets RL_COMPLETION_DISPLAY_MATCHES_HOOK to the
+ address of a function, and we just call it. If we're handling the
+ display ourselves, we just call rl_display_match_list. We also check
+ that the list of matches doesn't exceed the user-settable threshold,
+ and ask the user if he wants to see the list if there are more matches
+ than RL_COMPLETION_QUERY_ITEMS. */
+static void
+display_matches (matches)
+ char **matches;
+{
+ int len, max, i;
+ char *temp;
+
+ /* Move to the last visible line of a possibly-multiple-line command. */
+ _rl_move_vert (_rl_vis_botlin);
+
+ /* Handle simple case first. What if there is only one answer? */
+ if (matches[1] == 0)
+ {
+ temp = printable_part (matches[0]);
+ crlf ();
+ print_filename (temp, matches[0]);
+ crlf ();
+
+ rl_forced_update_display ();
+ rl_display_fixed = 1;
+
+ return;
+ }
+
+ /* There is more than one answer. Find out how many there are,
+ and find the maximum printed length of a single entry. */
+ for (max = 0, i = 1; matches[i]; i++)
+ {
+ temp = printable_part (matches[i]);
+ len = strlen (temp);
+
+ if (len > max)
+ max = len;
+ }
+
+ len = i - 1;
+
+ /* If the caller has defined a display hook, then call that now. */
+ if (rl_completion_display_matches_hook)
+ {
+ (*rl_completion_display_matches_hook) (matches, len, max);
+ return;
+ }
+
+ /* If there are many items, then ask the user if she really wants to
+ see them all. */
+ if (len >= rl_completion_query_items)
+ {
+ crlf ();
+ fprintf (rl_outstream, "Display all %d possibilities? (y or n)", len);
+ fflush (rl_outstream);
+ if (get_y_or_n () == 0)
+ {
+ crlf ();
+
+ rl_forced_update_display ();
+ rl_display_fixed = 1;
+
+ return;
+ }
+ }
+
+ rl_display_match_list (matches, len, max);
-#if 0
- rl_on_new_line ();
-#else
rl_forced_update_display ();
rl_display_fixed = 1;
-#endif
}
static char *
@@ -1026,11 +1059,8 @@ make_quoted_replacement (match, mtype, qc)
rl_filename_quoting_desired;
if (should_quote)
-#if defined (SHELL)
- should_quote = should_quote && (!qc || !*qc || *qc == '"' || *qc == '\'');
-#else /* !SHELL */
- should_quote = should_quote && (!qc || !*qc);
-#endif /* !SHELL */
+ should_quote = should_quote && (!qc || !*qc ||
+ (rl_completer_quote_characters && strchr (rl_completer_quote_characters, *qc)));
if (should_quote)
{
@@ -1168,6 +1198,17 @@ insert_all_matches (matches, point, qc)
rl_end_undo_group ();
}
+static void
+free_match_list (matches)
+ char **matches;
+{
+ register int i;
+
+ for (i = 0; matches[i]; i++)
+ free (matches[i]);
+ free (matches);
+}
+
/* Complete the word at or before point.
WHAT_TO_DO says what to do with the completion.
`?' means list the possible completions.
@@ -1210,27 +1251,34 @@ rl_complete_internal (what_to_do)
text = rl_copy_text (start, end);
matches = gen_completion_matches (text, start, end, our_func, found_quote, quote_char);
+ free (text);
if (matches == 0)
{
ding ();
FREE (saved_line_buffer);
- free (text);
return (0);
}
+#if 0
/* If we are matching filenames, our_func will have been set to
filename_completion_function */
i = our_func == (Function *)filename_completion_function;
- if (postprocess_matches (text, &matches, i) == 0)
+#else
+ /* If we are matching filenames, the attempted completion function will
+ have set rl_filename_completion_desired to a non-zero value. The basic
+ filename_completion_function does this. */
+ i = rl_filename_completion_desired;
+#endif
+
+ if (postprocess_matches (&matches, i) == 0)
{
+ ding ();
FREE (saved_line_buffer);
- free (text);
+ completion_changed_buffer = 0;
return (0);
}
- free (text);
-
switch (what_to_do)
{
case TAB:
@@ -1277,9 +1325,7 @@ rl_complete_internal (what_to_do)
return 1;
}
- for (i = 0; matches[i]; i++)
- free (matches[i]);
- free (matches);
+ free_match_list (matches);
/* Check to see if the line has changed through all of this manipulation. */
if (saved_line_buffer)
@@ -1358,10 +1404,10 @@ completion_matches (text, entry_function)
character (usually `~'). */
char *
username_completion_function (text, state)
- int state;
char *text;
+ int state;
{
-#if defined (__GO32__) || defined (__WIN32__)
+#if defined (__GO32__) || defined (__WIN32__) || defined (__OPENNT)
return (char *)NULL;
#else /* !__GO32__ */
static char *username = (char *)NULL;
@@ -1415,8 +1461,8 @@ username_completion_function (text, state)
completion for a command. */
char *
filename_completion_function (text, state)
- int state;
char *text;
+ int state;
{
static DIR *directory = (DIR *)NULL;
static char *filename = (char *)NULL;
@@ -1574,7 +1620,7 @@ filename_completion_function (text, state)
strcpy (temp, users_dirname);
}
- strcpy (temp + dirlen, entry->d_name); /* strcat (temp, entry->d_name); */
+ strcpy (temp + dirlen, entry->d_name);
}
else
temp = savestring (entry->d_name);
@@ -1649,10 +1695,17 @@ rl_menu_complete (count, ignore)
matches = gen_completion_matches (orig_text, orig_start, orig_end,
our_func, found_quote, quote_char);
+#if 0
/* If we are matching filenames, our_func will have been set to
filename_completion_function */
matching_filenames = our_func == (Function *)filename_completion_function;
- if (matches == 0 || postprocess_matches (orig_text, &matches, matching_filenames) == 0)
+#else
+ /* If we are matching filenames, the attempted completion function will
+ have set rl_filename_completion_desired to a non-zero value. The basic
+ filename_completion_function does this. */
+ matching_filenames = rl_filename_completion_desired;
+#endif
+ if (matches == 0 || postprocess_matches (&matches, matching_filenames) == 0)
{
ding ();
FREE (matches);
@@ -1686,7 +1739,7 @@ rl_menu_complete (count, ignore)
if (match_list_index < 0)
match_list_index += match_list_size;
- if (match_list_index == 0)
+ if (match_list_index == 0 && match_list_size > 1)
{
ding ();
insert_match (orig_text, orig_start, MULT_MATCH, "e_char);
diff --git a/configure b/configure
index b9bb2b9..454a177 100755
--- a/configure
+++ b/configure
@@ -1,7 +1,10 @@
#! /bin/sh
-# From configure.in for Readline 2.2, version 2.07, from autoconf version 2.12
-LIBVERSION=2.2
+# From configure.in for Readline 4.0, version 2.14, from autoconf version 2.12
+LIBVERSION=4.0
+
+
+
@@ -639,7 +642,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi
echo $ac_n "checking host system type""... $ac_c" 1>&6
-echo "configure:643: checking host system type" >&5
+echo "configure:646: checking host system type" >&5
host_alias=$host
case "$host_alias" in
@@ -680,7 +683,7 @@ test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:684: checking for $ac_word" >&5
+echo "configure:687: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -709,7 +712,7 @@ if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:713: checking for $ac_word" >&5
+echo "configure:716: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -757,7 +760,7 @@ fi
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:761: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+echo "configure:764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
@@ -767,11 +770,11 @@ ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS
cross_compiling=$ac_cv_prog_cc_cross
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
@@ -791,12 +794,12 @@ if test $ac_cv_prog_cc_works = no; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:795: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:798: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
-echo "configure:800: checking whether we are using GNU C" >&5
+echo "configure:803: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -805,7 +808,7 @@ else
yes;
#endif
EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
@@ -820,7 +823,7 @@ if test $ac_cv_prog_gcc = yes; then
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
-echo "configure:824: checking whether ${CC-cc} accepts -g" >&5
+echo "configure:827: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -848,7 +851,7 @@ else
fi
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
-echo "configure:852: checking how to run the C preprocessor" >&5
+echo "configure:855: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
@@ -863,13 +866,13 @@ else
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
@@ -880,13 +883,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
@@ -910,17 +913,17 @@ echo "$ac_t""$CPP" 1>&6
ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
-echo "configure:914: checking for minix/config.h" >&5
+echo "configure:917: checking for minix/config.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -963,13 +966,13 @@ test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
if test $ac_cv_prog_gcc = yes; then
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
-echo "configure:967: checking whether ${CC-cc} needs -traditional" >&5
+echo "configure:970: checking whether ${CC-cc} needs -traditional" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_pattern="Autoconf.*'x'"
cat > conftest.$ac_ext <
Autoconf TIOCGETP
@@ -987,7 +990,7 @@ rm -f conftest*
if test $ac_cv_prog_gcc_traditional = no; then
cat > conftest.$ac_ext <
Autoconf TCGETA
@@ -1019,7 +1022,7 @@ fi
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
-echo "configure:1023: checking for a BSD compatible install" >&5
+echo "configure:1026: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -1068,10 +1071,39 @@ test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+# Extract the first word of "ar", so it can be a program name with args.
+set dummy ar; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:1078: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test -n "$AR"; then
+ ac_cv_prog_AR="$AR" # Let the user override the test.
+else
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
+ for ac_dir in $PATH; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ ac_cv_prog_AR="ar"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+fi
+fi
+AR="$ac_cv_prog_AR"
+if test -n "$AR"; then
+ echo "$ac_t""$AR" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+test -n "$ARFLAGS" || ARFLAGS="cr"
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1075: checking for $ac_word" >&5
+echo "configure:1107: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1098,13 +1130,16 @@ else
fi
+MAKE_SHELL=/bin/sh
+
+
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
-echo "configure:1103: checking return type of signal handlers" >&5
+echo "configure:1138: checking return type of signal handlers" >&5
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#include
@@ -1121,7 +1156,7 @@ int main() {
int i;
; return 0; }
EOF
-if { (eval echo configure:1125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_type_signal=void
else
@@ -1141,12 +1176,12 @@ EOF
echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
-echo "configure:1145: checking whether stat file-mode macros are broken" >&5
+echo "configure:1180: checking whether stat file-mode macros are broken" >&5
if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#include
@@ -1201,12 +1236,12 @@ for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
-echo "configure:1205: checking for $ac_hdr that defines DIR" >&5
+echo "configure:1240: checking for $ac_hdr that defines DIR" >&5
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#include <$ac_hdr>
@@ -1214,7 +1249,7 @@ int main() {
DIR *dirp = 0;
; return 0; }
EOF
-if { (eval echo configure:1218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_header_dirent_$ac_safe=yes"
else
@@ -1239,7 +1274,7 @@ done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
-echo "configure:1243: checking for opendir in -ldir" >&5
+echo "configure:1278: checking for opendir in -ldir" >&5
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -1247,7 +1282,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-ldir $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:1297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -1280,7 +1315,7 @@ fi
else
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
-echo "configure:1284: checking for opendir in -lx" >&5
+echo "configure:1319: checking for opendir in -lx" >&5
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -1288,7 +1323,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lx $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -1325,12 +1360,12 @@ fi
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:1329: checking for $ac_func" >&5
+echo "configure:1364: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:1392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -1379,7 +1414,7 @@ done
echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
-echo "configure:1383: checking for working strcoll" >&5
+echo "configure:1418: checking for working strcoll" >&5
if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1387,7 +1422,7 @@ else
ac_cv_func_strcoll_works=no
else
cat > conftest.$ac_ext <
main ()
@@ -1397,7 +1432,7 @@ main ()
strcoll ("123", "456") >= 0);
}
EOF
-if { (eval echo configure:1401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:1436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_func_strcoll_works=yes
else
@@ -1426,17 +1461,17 @@ for ac_hdr in unistd.h stdlib.h varargs.h stdarg.h string.h \
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:1430: checking for $ac_hdr" >&5
+echo "configure:1465: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -1465,13 +1500,13 @@ done
echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
-echo "configure:1469: checking for type of signal functions" >&5
+echo "configure:1504: checking for type of signal functions" >&5
if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
int main() {
@@ -1484,7 +1519,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:1523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
bash_cv_signal_vintage=posix
else
@@ -1493,7 +1528,7 @@ else
rm -rf conftest*
cat > conftest.$ac_ext <
int main() {
@@ -1503,7 +1538,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:1507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:1542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
bash_cv_signal_vintage=4.2bsd
else
@@ -1512,7 +1547,7 @@ else
rm -rf conftest*
cat > conftest.$ac_ext <
@@ -1525,7 +1560,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:1529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:1564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
bash_cv_signal_vintage=svr3
else
@@ -1566,17 +1601,17 @@ fi
echo $ac_n "checking if signal handlers must be reinstalled when invoked""... $ac_c" 1>&6
-echo "configure:1570: checking if signal handlers must be reinstalled when invoked" >&5
+echo "configure:1605: checking if signal handlers must be reinstalled when invoked" >&5
if eval "test \"`echo '$''{'bash_cv_must_reinstall_sighandlers'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
- { echo "configure: error: cannot check signal handling if cross compiling -- defaulting to no" 1>&2; exit 1; }
+ echo "configure: warning: cannot check signal handling if cross compiling -- defaulting to no" 1>&2
bash_cv_must_reinstall_sighandlers=no
else
cat > conftest.$ac_ext <
@@ -1623,7 +1658,7 @@ main()
}
EOF
-if { (eval echo configure:1627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:1662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
bash_cv_must_reinstall_sighandlers=no
else
@@ -1648,17 +1683,17 @@ fi
echo $ac_n "checking for presence of POSIX-style sigsetjmp/siglongjmp""... $ac_c" 1>&6
-echo "configure:1652: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
+echo "configure:1687: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
if eval "test \"`echo '$''{'bash_cv_func_sigsetjmp'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
- { echo "configure: error: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" 1>&2; exit 1; }
+ echo "configure: warning: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" 1>&2
bash_cv_func_sigsetjmp=missing
else
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
bash_cv_func_sigsetjmp=present
else
@@ -1722,12 +1757,12 @@ EOF
fi
echo $ac_n "checking for lstat""... $ac_c" 1>&6
-echo "configure:1726: checking for lstat" >&5
+echo "configure:1761: checking for lstat" >&5
if eval "test \"`echo '$''{'bash_cv_func_lstat'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
@@ -1737,7 +1772,7 @@ int main() {
lstat(".",(struct stat *)0);
; return 0; }
EOF
-if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:1776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
bash_cv_func_lstat=yes
else
@@ -1758,12 +1793,12 @@ EOF
fi
echo $ac_n "checking whether programs are able to redeclare getpw functions""... $ac_c" 1>&6
-echo "configure:1762: checking whether programs are able to redeclare getpw functions" >&5
+echo "configure:1797: checking whether programs are able to redeclare getpw functions" >&5
if eval "test \"`echo '$''{'bash_cv_can_redecl_getpw'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#include
@@ -1774,7 +1809,7 @@ int main() {
struct passwd *z; z = getpwent(); z = getpwuid(0); z = getpwnam("root");
; return 0; }
EOF
-if { (eval echo configure:1778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
bash_cv_can_redecl_getpw=yes
else
@@ -1796,17 +1831,17 @@ fi
echo $ac_n "checking whether or not strcoll and strcmp differ""... $ac_c" 1>&6
-echo "configure:1800: checking whether or not strcoll and strcmp differ" >&5
+echo "configure:1835: checking whether or not strcoll and strcmp differ" >&5
if eval "test \"`echo '$''{'bash_cv_func_strcoll_broken'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
- { echo "configure: error: cannot check strcoll if cross compiling -- defaulting to no" 1>&2; exit 1; }
+ echo "configure: warning: cannot check strcoll if cross compiling -- defaulting to no" 1>&2
bash_cv_func_strcoll_broken=no
else
cat > conftest.$ac_ext <
@@ -1845,7 +1880,7 @@ char *v[];
}
EOF
-if { (eval echo configure:1849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:1884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
bash_cv_func_strcoll_broken=yes
else
@@ -1869,12 +1904,12 @@ fi
echo $ac_n "checking whether signal handlers are of type void""... $ac_c" 1>&6
-echo "configure:1873: checking whether signal handlers are of type void" >&5
+echo "configure:1908: checking whether signal handlers are of type void" >&5
if eval "test \"`echo '$''{'bash_cv_void_sighandler'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#include
@@ -1889,7 +1924,7 @@ int main() {
int i;
; return 0; }
EOF
-if { (eval echo configure:1893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
bash_cv_void_sighandler=yes
else
@@ -1909,12 +1944,12 @@ EOF
fi
echo $ac_n "checking for TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
-echo "configure:1913: checking for TIOCGWINSZ in sys/ioctl.h" >&5
+echo "configure:1948: checking for TIOCGWINSZ in sys/ioctl.h" >&5
if eval "test \"`echo '$''{'bash_cv_tiocgwinsz_in_ioctl'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#include
@@ -1922,7 +1957,7 @@ int main() {
int x = TIOCGWINSZ;
; return 0; }
EOF
-if { (eval echo configure:1926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
bash_cv_tiocgwinsz_in_ioctl=yes
else
@@ -1943,12 +1978,12 @@ EOF
fi
echo $ac_n "checking for TIOCSTAT in sys/ioctl.h""... $ac_c" 1>&6
-echo "configure:1947: checking for TIOCSTAT in sys/ioctl.h" >&5
+echo "configure:1982: checking for TIOCSTAT in sys/ioctl.h" >&5
if eval "test \"`echo '$''{'bash_cv_tiocstat_in_ioctl'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#include
@@ -1956,7 +1991,7 @@ int main() {
int x = TIOCSTAT;
; return 0; }
EOF
-if { (eval echo configure:1960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
bash_cv_tiocstat_in_ioctl=yes
else
@@ -1977,12 +2012,12 @@ EOF
fi
echo $ac_n "checking for FIONREAD in sys/ioctl.h""... $ac_c" 1>&6
-echo "configure:1981: checking for FIONREAD in sys/ioctl.h" >&5
+echo "configure:2016: checking for FIONREAD in sys/ioctl.h" >&5
if eval "test \"`echo '$''{'bash_cv_fionread_in_ioctl'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#include
@@ -1990,7 +2025,7 @@ int main() {
int x = FIONREAD;
; return 0; }
EOF
-if { (eval echo configure:1994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
bash_cv_fionread_in_ioctl=yes
else
@@ -2011,19 +2046,19 @@ EOF
fi
echo $ac_n "checking for speed_t in sys/types.h""... $ac_c" 1>&6
-echo "configure:2015: checking for speed_t in sys/types.h" >&5
+echo "configure:2050: checking for speed_t in sys/types.h" >&5
if eval "test \"`echo '$''{'bash_cv_speed_t_in_sys_types'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
int main() {
speed_t x;
; return 0; }
EOF
-if { (eval echo configure:2027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
bash_cv_speed_t_in_sys_types=yes
else
@@ -2044,12 +2079,12 @@ EOF
fi
echo $ac_n "checking for struct winsize in sys/ioctl.h and termios.h""... $ac_c" 1>&6
-echo "configure:2048: checking for struct winsize in sys/ioctl.h and termios.h" >&5
+echo "configure:2083: checking for struct winsize in sys/ioctl.h and termios.h" >&5
if eval "test \"`echo '$''{'bash_cv_struct_winsize_header'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#include
@@ -2057,7 +2092,7 @@ int main() {
struct winsize x;
; return 0; }
EOF
-if { (eval echo configure:2061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
bash_cv_struct_winsize_header=ioctl_h
else
@@ -2065,7 +2100,7 @@ else
cat conftest.$ac_ext >&5
rm -rf conftest*
cat > conftest.$ac_ext <
#include
@@ -2073,7 +2108,7 @@ int main() {
struct winsize x;
; return 0; }
EOF
-if { (eval echo configure:2077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
bash_cv_struct_winsize_header=termios_h
else
@@ -2106,12 +2141,12 @@ fi
echo $ac_n "checking if struct dirent has a d_ino member""... $ac_c" 1>&6
-echo "configure:2110: checking if struct dirent has a d_ino member" >&5
+echo "configure:2145: checking if struct dirent has a d_ino member" >&5
if eval "test \"`echo '$''{'bash_cv_dirent_has_dino'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
@@ -2140,7 +2175,7 @@ struct dirent d; int z; z = d.d_ino;
; return 0; }
EOF
-if { (eval echo configure:2144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
bash_cv_dirent_has_dino=yes
else
@@ -2162,12 +2197,12 @@ fi
echo $ac_n "checking if struct dirent has a d_fileno member""... $ac_c" 1>&6
-echo "configure:2166: checking if struct dirent has a d_fileno member" >&5
+echo "configure:2201: checking if struct dirent has a d_fileno member" >&5
if eval "test \"`echo '$''{'bash_cv_dirent_has_d_fileno'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
@@ -2196,7 +2231,7 @@ struct dirent d; int z; z = d.d_fileno;
; return 0; }
EOF
-if { (eval echo configure:2200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
bash_cv_dirent_has_d_fileno=yes
else
@@ -2225,14 +2260,14 @@ if test "X$bash_cv_termcap_lib" = "X"; then
_bash_needmsg=yes
else
echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
-echo "configure:2229: checking which library has the termcap functions" >&5
+echo "configure:2264: checking which library has the termcap functions" >&5
_bash_needmsg=
fi
if eval "test \"`echo '$''{'bash_cv_termcap_lib'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
-echo "configure:2236: checking for tgetent in -ltermcap" >&5
+echo "configure:2271: checking for tgetent in -ltermcap" >&5
ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -2240,7 +2275,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-ltermcap $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -2270,7 +2305,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
-echo "configure:2274: checking for tgetent in -lcurses" >&5
+echo "configure:2309: checking for tgetent in -lcurses" >&5
ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -2278,7 +2313,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lcurses $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -2308,7 +2343,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
-echo "configure:2312: checking for tgetent in -lncurses" >&5
+echo "configure:2347: checking for tgetent in -lncurses" >&5
ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -2316,7 +2351,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lncurses $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -2356,7 +2391,7 @@ fi
if test "X$_bash_needmsg" = "Xyes"; then
echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
-echo "configure:2360: checking which library has the termcap functions" >&5
+echo "configure:2395: checking which library has the termcap functions" >&5
fi
echo "$ac_t""using $bash_cv_termcap_lib" 1>&6
if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
@@ -2386,6 +2421,30 @@ case "$host_os" in
isc*) LOCAL_CFLAGS=-Disc386 ;;
esac
+# shared library configuration section
+#
+# Shared object configuration section. These values are generated by
+# ${srcdir}/support/shobj-conf
+#
+if test -f ${srcdir}/support/shobj-conf; then
+ echo $ac_n "checking configuration for building shared libraries""... $ac_c" 1>&6
+echo "configure:2432: checking configuration for building shared libraries" >&5
+ eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C ${CC} -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
+
+
+
+
+
+
+
+
+
+
+
+
+ echo "$ac_t""$SHLIB_STATUS" 1>&6
+fi
+
BUILD_DIR=`pwd`
@@ -2401,6 +2460,9 @@ BUILD_DIR=`pwd`
+
+
+
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
@@ -2502,7 +2564,7 @@ done
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
-trap 'rm -fr `echo "Makefile doc/Makefile examples/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
+trap 'rm -fr `echo "Makefile doc/Makefile examples/Makefile shlib/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
diff --git a/configure.in b/configure.in
index cab431a..240a3ad 100644
--- a/configure.in
+++ b/configure.in
@@ -4,8 +4,8 @@ dnl
dnl report bugs to chet@po.cwru.edu
dnl
dnl Process this file with autoconf to produce a configure script.
-AC_REVISION([for Readline 2.2, version 2.07, from autoconf version] AC_ACVERSION)
-LIBVERSION=2.2
+AC_REVISION([for Readline 4.0, version 2.14, from autoconf version] AC_ACVERSION)
+LIBVERSION=4.0
AC_INIT(readline.h)
AC_CONFIG_HEADER(config.h)
@@ -39,8 +39,15 @@ test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
AC_PROG_GCC_TRADITIONAL
AC_PROG_INSTALL
+AC_CHECK_PROG(AR, ar, ar)
+dnl Set default for ARFLAGS, since autoconf does not have a macro for it.
+dnl This allows people to set it when running configure or make
+test -n "$ARFLAGS" || ARFLAGS="cr"
AC_PROG_RANLIB
+MAKE_SHELL=/bin/sh
+AC_SUBST(MAKE_SHELL)
+
AC_RETSIGTYPE
AC_HEADER_STAT
@@ -88,6 +95,29 @@ case "$host_os" in
isc*) LOCAL_CFLAGS=-Disc386 ;;
esac
+# shared library configuration section
+#
+# Shared object configuration section. These values are generated by
+# ${srcdir}/support/shobj-conf
+#
+if test -f ${srcdir}/support/shobj-conf; then
+ AC_MSG_CHECKING(configuration for building shared libraries)
+ eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C ${CC} -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
+ AC_SUBST(SHOBJ_CC)
+ AC_SUBST(SHOBJ_CFLAGS)
+ AC_SUBST(SHOBJ_LD)
+ AC_SUBST(SHOBJ_LDFLAGS)
+ AC_SUBST(SHOBJ_XLDFLAGS)
+ AC_SUBST(SHOBJ_LIBS)
+ AC_SUBST(SHOBJ_STATUS)
+ AC_SUBST(SHLIB_STATUS)
+ AC_SUBST(SHLIB_XLDFLAGS)
+ AC_SUBST(SHLIB_LIBSUFF)
+ AC_SUBST(SHLIB_LIBVERSION)
+ AC_SUBST(SHLIB_LIBS)
+ AC_MSG_RESULT($SHLIB_STATUS)
+fi
+
BUILD_DIR=`pwd`
AC_SUBST(BUILD_DIR)
@@ -96,6 +126,9 @@ AC_SUBST(LOCAL_CFLAGS)
AC_SUBST(LOCAL_LDFLAGS)
AC_SUBST(LOCAL_DEFS)
+AC_SUBST(AR)
+AC_SUBST(ARFLAGS)
+
AC_SUBST(host_cpu)
AC_SUBST(host_os)
@@ -103,7 +136,7 @@ AC_SUBST(LIBVERSION)
AC_SUBST(TERMCAP_LIB)
-AC_OUTPUT([Makefile doc/Makefile examples/Makefile],
+AC_OUTPUT([Makefile doc/Makefile examples/Makefile shlib/Makefile],
[
# Makefile uses this timestamp file to record whether config.h is up to date.
echo > stamp-h
diff --git a/display.c b/display.c
index f7ec69b..25aba64 100644
--- a/display.c
+++ b/display.c
@@ -280,7 +280,7 @@ rl_expand_prompt (prompt)
if (local_prompt_prefix)
free (local_prompt_prefix);
local_prompt = local_prompt_prefix = (char *)0;
- last_invisible = 0;
+ last_invisible = visible_length = 0;
if (prompt == 0 || *prompt == 0)
return (0);
@@ -373,6 +373,13 @@ rl_redisplay ()
if (local_len > 0)
{
+ temp = local_len + out + 2;
+ if (temp >= line_size)
+ {
+ line_size = (temp + 1024) - (temp % 1024);
+ visible_line = xrealloc (visible_line, line_size);
+ line = invisible_line = xrealloc (invisible_line, line_size);
+ }
strncpy (line + out, local_prompt, local_len);
out += local_len;
}
@@ -399,6 +406,13 @@ rl_redisplay ()
}
pmtlen = strlen (prompt_this_line);
+ temp = pmtlen + out + 2;
+ if (temp >= line_size)
+ {
+ line_size = (temp + 1024) - (temp % 1024);
+ visible_line = xrealloc (visible_line, line_size);
+ line = invisible_line = xrealloc (invisible_line, line_size);
+ }
strncpy (line + out, prompt_this_line, pmtlen);
out += pmtlen;
line[out] = '\0';
@@ -407,12 +421,12 @@ rl_redisplay ()
#define CHECK_LPOS() \
do { \
- lpos++; \
- if (lpos >= screenwidth) \
- { \
- inv_lbreaks[++newlines] = out; \
- lpos = 0; \
- } \
+ lpos++; \
+ if (lpos >= screenwidth) \
+ { \
+ inv_lbreaks[++newlines] = out; \
+ lpos = 0; \
+ } \
} while (0)
/* inv_lbreaks[i] is where line i starts in the buffer. */
@@ -481,7 +495,12 @@ rl_redisplay ()
else if (c == '\t')
{
register int temp, newout;
+
+#if 0
newout = (out | (int)7) + 1;
+#else
+ newout = out + 8 - lpos % 8;
+#endif
temp = newout - out;
if (lpos + temp >= screenwidth)
{
@@ -501,11 +520,11 @@ rl_redisplay ()
}
#endif
else if (c == '\n' && _rl_horizontal_scroll_mode == 0 && term_up && *term_up)
- {
- line[out++] = '\0'; /* XXX - sentinel */
- inv_lbreaks[++newlines] = out;
- lpos = 0;
- }
+ {
+ line[out++] = '\0'; /* XXX - sentinel */
+ inv_lbreaks[++newlines] = out;
+ lpos = 0;
+ }
else if (CTRL_CHAR (c) || c == RUBOUT)
{
line[out++] = '^';
@@ -616,11 +635,11 @@ rl_redisplay ()
{
_rl_move_vert (cursor_linenum);
/* If we moved up to the line with the prompt using term_up,
- the physical cursor position on the screen stays the same,
- but the buffer position needs to be adjusted to account
- for invisible characters. */
+ the physical cursor position on the screen stays the same,
+ but the buffer position needs to be adjusted to account
+ for invisible characters. */
if (cursor_linenum == 0 && wrap_offset)
- _rl_last_c_pos += wrap_offset;
+ _rl_last_c_pos += wrap_offset;
}
/* We have to reprint the prompt if it contains invisible
@@ -673,16 +692,16 @@ rl_redisplay ()
ndisp = c_pos - wrap_offset;
nleft = visible_length + wrap_offset;
/* Where the new cursor position will be on the screen. This can be
- longer than SCREENWIDTH; if it is, lmargin will be adjusted. */
+ longer than SCREENWIDTH; if it is, lmargin will be adjusted. */
phys_c_pos = c_pos - (last_lmargin ? last_lmargin : wrap_offset);
t = screenwidth / 3;
/* If the number of characters had already exceeded the screenwidth,
- last_lmargin will be > 0. */
+ last_lmargin will be > 0. */
/* If the number of characters to be displayed is more than the screen
- width, compute the starting offset so that the cursor is about
- two-thirds of the way across the screen. */
+ width, compute the starting offset so that the cursor is about
+ two-thirds of the way across the screen. */
if (phys_c_pos > screenwidth - 2)
{
lmargin = c_pos - (2 * t);
@@ -694,7 +713,7 @@ rl_redisplay ()
lmargin = nleft;
}
else if (ndisp < screenwidth - 2) /* XXX - was -1 */
- lmargin = 0;
+ lmargin = 0;
else if (phys_c_pos < 1)
{
/* If we are moving back towards the beginning of the line and
@@ -704,7 +723,7 @@ rl_redisplay ()
lmargin = nleft;
}
else
- lmargin = last_lmargin;
+ lmargin = last_lmargin;
/* If the first character on the screen isn't the first character
in the display line, indicate this with a special character. */
@@ -712,12 +731,12 @@ rl_redisplay ()
line[lmargin] = '<';
/* If SCREENWIDTH characters starting at LMARGIN do not encompass
- the whole line, indicate that with a special characters at the
- right edge of the screen. If LMARGIN is 0, we need to take the
- wrap offset into account. */
+ the whole line, indicate that with a special character at the
+ right edge of the screen. If LMARGIN is 0, we need to take the
+ wrap offset into account. */
t = lmargin + M_OFFSET (lmargin, wrap_offset) + screenwidth;
if (t < out)
- line[t - 1] = '>';
+ line[t - 1] = '>';
if (!rl_display_fixed || forced_display || lmargin != last_lmargin)
{
@@ -782,7 +801,7 @@ new: eddie> Oh, my little buggy says to me, as lurgid as
\new first difference
All are character pointers for the sake of speed. Special cases for
- no differences, as well as for end of line additions must be handeled.
+ no differences, as well as for end of line additions must be handled.
Could be made even smarter, but this works well enough */
static void
@@ -810,7 +829,7 @@ update_line (old, new, current_line, omax, nmax, inv_botlin)
_rl_last_c_pos = 1; /* XXX */
_rl_last_v_pos++;
if (old[0] && new[0])
- old[0] = new[0];
+ old[0] = new[0];
}
/* Find first difference. */
@@ -895,10 +914,7 @@ update_line (old, new, current_line, omax, nmax, inv_botlin)
lendiff needs to be adjusted. */
if (current_line == 0 && !_rl_horizontal_scroll_mode &&
current_invis_chars != visible_wrap_offset)
- {
- temp = visible_wrap_offset - current_invis_chars;
- lendiff += temp;
- }
+ lendiff += visible_wrap_offset - current_invis_chars;
/* Insert (diff (len (old), len (new)) ch. */
temp = ne - nfd;
@@ -927,7 +943,7 @@ update_line (old, new, current_line, omax, nmax, inv_botlin)
/* At the end of a line the characters do not have to
be "inserted". They can just be placed on the screen. */
/* However, this screws up the rest of this block, which
- assumes you've done the insert because you can. */
+ assumes you've done the insert because you can. */
_rl_output_some_chars (nfd, lendiff);
_rl_last_c_pos += lendiff;
}
@@ -987,10 +1003,13 @@ update_line (old, new, current_line, omax, nmax, inv_botlin)
_rl_last_c_pos += temp;
}
lendiff = (oe - old) - (ne - new);
- if (_rl_term_autowrap && current_line < inv_botlin)
- space_to_eol (lendiff);
- else
- _rl_clear_to_eol (lendiff);
+ if (lendiff)
+ {
+ if (_rl_term_autowrap && current_line < inv_botlin)
+ space_to_eol (lendiff);
+ else
+ _rl_clear_to_eol (lendiff);
+ }
}
}
}
@@ -1019,7 +1038,7 @@ rl_forced_update_display ()
register char *temp = visible_line;
while (*temp)
- *temp++ = '\0';
+ *temp++ = '\0';
}
rl_on_new_line ();
forced_display++;
@@ -1080,7 +1099,7 @@ _rl_move_cursor_relative (new, data)
putc (data[i], rl_outstream);
#endif /* HACK_TERMCAP_MOTION */
}
- else if (_rl_last_c_pos != new)
+ else if (_rl_last_c_pos > new)
_rl_backspace (_rl_last_c_pos - new);
_rl_last_c_pos = new;
}
@@ -1245,7 +1264,7 @@ static int saved_last_invisible;
static int saved_visible_length;
void
-_rl_save_prompt ()
+rl_save_prompt ()
{
saved_local_prompt = local_prompt;
saved_local_prefix = local_prompt_prefix;
@@ -1257,7 +1276,7 @@ _rl_save_prompt ()
}
void
-_rl_restore_prompt ()
+rl_restore_prompt ()
{
if (local_prompt)
free (local_prompt);
@@ -1277,14 +1296,14 @@ _rl_make_prompt_for_search (pchar)
int len;
char *pmt;
- _rl_save_prompt ();
+ rl_save_prompt ();
if (saved_local_prompt == 0)
{
len = (rl_prompt && *rl_prompt) ? strlen (rl_prompt) : 0;
pmt = xmalloc (len + 2);
if (len)
- strcpy (pmt, rl_prompt);
+ strcpy (pmt, rl_prompt);
pmt[len] = pchar;
pmt[len+1] = '\0';
}
@@ -1293,7 +1312,7 @@ _rl_make_prompt_for_search (pchar)
len = *saved_local_prompt ? strlen (saved_local_prompt) : 0;
pmt = xmalloc (len + 2);
if (len)
- strcpy (pmt, saved_local_prompt);
+ strcpy (pmt, saved_local_prompt);
pmt[len] = pchar;
pmt[len+1] = '\0';
local_prompt = savestring (pmt);
@@ -1540,6 +1559,15 @@ _rl_clean_up_for_exit ()
_rl_move_vert (_rl_vis_botlin);
_rl_vis_botlin = 0;
fflush (rl_outstream);
- rl_restart_output ();
+ rl_restart_output (1, 0);
}
}
+
+void
+_rl_erase_entire_line ()
+{
+ cr ();
+ _rl_clear_to_eol (0);
+ cr ();
+ fflush (rl_outstream);
+}
diff --git a/doc/Makefile.in b/doc/Makefile.in
index 2eabb41..1031472 100644
--- a/doc/Makefile.in
+++ b/doc/Makefile.in
@@ -10,6 +10,7 @@ infodir = @infodir@
mandir = @mandir@
man3dir = $(mandir)/man3
+SHELL = @MAKE_SHELL@
RM = rm -f
TEXINPUTDIR = $(srcdir)
@@ -25,9 +26,9 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
RLSRC = $(srcdir)/rlman.texinfo $(srcdir)/rluser.texinfo \
- $(srcdir)/rltech.texinfo
+ $(srcdir)/rltech.texinfo $(srcdir)/manvers.texinfo
HISTSRC = $(srcdir)/hist.texinfo $(srcdir)/hsuser.texinfo \
- $(srcdir)/hstech.texinfo
+ $(srcdir)/hstech.texinfo $(srcdir)/manvers.texinfo
# This should be a program that converts troff to an ascii-readable format
NROFF = groff -Tascii
@@ -42,6 +43,8 @@ HTMLOBJ = readline.html history.html
HTMLTOC = readline_toc.html history_toc.html
TEXTOBJ = readline.0
+INTERMEDIATE_OBJ = rlman.dvi hist.dvi
+
CREATED_DOCS = $(DVIOBJ) $(INFOOBJ) $(PSOBJ) $(HTMLOBJ) $(HTMLTOC) $(TEXTOBJ)
.SUFFIXES: .0 .3 .ps .txt .dvi
@@ -76,16 +79,14 @@ history.ps: history.dvi
$(DVIPS) history.dvi
readline.html: ${RLSRC}
- $(TEXI2HTML) -I $(TEXINPUTDIR) $(srcdir)/rlman.texinfo
- sed -e 's:rlman.html:readline.html:' -e 's:rlman_toc.html:readline_toc.html:' rlman.html > readline.html
- sed -e 's:rlman.html:readline.html:' -e 's:rlman_toc.html:readline_toc.html:' rlman_toc.html > readline_toc.html
- $(RM) rlman.html rlman_toc.html
+ $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/rlman.texinfo
+ sed -e 's:rlman.html:readline.html:' rlman.html > readline.html
+ $(RM) rlman.html
history.html: ${HISTSRC}
- $(TEXI2HTML) -I $(TEXINPUTDIR) $(srcdir)/hist.texinfo
- sed -e 's:hist.html:history.html:' -e 's:hist_toc.html:history_toc.html:' hist.html > history.html
- sed -e 's:hist.html:history.html:' -e 's:hist_toc.html:history_toc.html:' hist_toc.html > history_toc.html
- $(RM) hist.html hist_toc.html
+ $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/hist.texinfo
+ sed -e 's:hist.html:history.html:' hist.html > history.html
+ $(RM) hist.html
info: $(INFOOBJ)
dvi: $(DVIOBJ)
@@ -101,18 +102,20 @@ clean:
distclean: clean
$(RM) $(CREATED_DOCS)
+ $(RM) $(INTERMEDIATE_OBJ)
$(RM) Makefile
mostlyclean: clean
maintainer-clean: clean
$(RM) $(CREATED_DOCS)
+ $(RM) $(INTERMEDIATE_OBJ)
$(RM) Makefile
installdirs: $(top_srcdir)/support/mkdirs
-$(SHELL) $(top_srcdir)/support/mkdirs $(infodir) $(man3dir)
-install: installdirs info
+install: installdirs
if test -f readline.info; then \
${INSTALL_DATA} readline.info $(infodir)/readline.info; \
else \
diff --git a/doc/hist.texinfo b/doc/hist.texinfo
index be8742f..31a0ba0 100644
--- a/doc/hist.texinfo
+++ b/doc/hist.texinfo
@@ -6,26 +6,19 @@
@setchapternewpage odd
-@ignore
-last change: Thu Apr 2 14:38:22 EST 1998
-@end ignore
-
-@set EDITION 2.2
-@set VERSION 2.2
-@set UPDATED 2 April 1998
-@set UPDATE-MONTH April 1998
+@include manvers.texinfo
+@ifinfo
@dircategory Libraries
@direntry
* History: (history). The GNU history library API
@end direntry
-@ifinfo
This document describes the GNU History library, a programming tool that
provides a consistent user interface for recalling lines of previously
typed input.
-Copyright (C) 1988, 1991, 1993, 1995, 1996, 1998 Free Software Foundation, Inc.
+Copyright (C) 1988-1999 Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim copies of
this manual provided the copyright notice and this permission notice
@@ -46,7 +39,7 @@ notice identical to this one.
Permission is granted to copy and distribute translations of this manual
into another language, under the above conditions for modified versions,
except that this permission notice may be stated in a translation approved
-by the Foundation.
+by the Free Software Foundation.
@end ifinfo
@titlepage
@@ -77,10 +70,10 @@ notice identical to this one.
Permission is granted to copy and distribute translations of this manual
into another language, under the above conditions for modified versions,
except that this permission notice may be stated in a translation approved
-by the Foundation.
+by the Free Software Foundation.
@vskip 0pt plus 1filll
-Copyright @copyright{} 1989, 1991 Free Software Foundation, Inc.
+Copyright @copyright{} 1988-1999 Free Software Foundation, Inc.
@end titlepage
@ifinfo
diff --git a/doc/history.dvi b/doc/history.dvi
index f50179278cb642018d7d6af5d3b4ef5af01bbe50..35dc6df2db3730b90a206f85967b4a3c95e883d0 100644
GIT binary patch
literal 48188
zc-rlK3z!^Lm2l5=PZC0czzTvWnDEHMnaT7_-oq>8H31SJ4?sdlYPzeZi*#3Ys;ZM2
zFruQaAQ`4o(li+*JYpo61%=&3RFnnL1){Dm^hbMeaDRmal`t!!uF0Nr?xSw?^h`Pg
z|NSAEPsvPm-E;3f?{n_Cr~g!2bK~a6-`5&}pXf`cd|
z*b<)|Z*H3T8F-^6QpL}H_}R4ewMeArLMA$1NPV>WSx;+!cBE
zH?ED0ffq+4vhAJm<~>&}T(Y7t@;hH_GaT2lyZnodc3ZQ%x^c+XF{7Gpio{^*uiW|7
ztw(RUf79m3PtX6vK=Va=*K|cj541!^1Ejh{){Zxo<|hr;u*^bqdunQ9Q@x+EY=5BT
zh23X&$~R$7*Nr#zmCfasF8B7IsOz=^<9!(1*u8aZB(iC9P5QCt=jjPO+w;)4_MXLk
zy6pjUL{0ZyHJ|$7hD`%)w5MZIsnDL_m^2I
z_qJPhZSXZ)_wbFPl{b?bF1>r}u`ui0wC>{2rCL_+!r}G)T+Pw_D~h_~>bB`G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>|Yd6fb;y7p}f
z-#HnNY+k3O#>3bH)-G&*kB4#d=1R!DLU=hDtu{}K{mR8Sb#qUKA1h<`
z=G(c)85wU)UYwtAuM(rt+dH2P7*!J$1>HY0=5Ogf&cF$bQxIlJ&MmTBqu~iOuVNar
zXh>%9|bWexM*@~St3(G+vFEzQ*`E|nuuTb%OxgE1urMd
rFHK}ByuZ0=>2DFHBB#mqyDXX7?Kkh*Wx*(m#X&zA7}^&x-3I~yd>R8m
diff --git a/doc/history.html b/doc/history.html
index c8dd1e1..b498d27 100644
--- a/doc/history.html
+++ b/doc/history.html
@@ -1,25 +1,50 @@
-
+
GNU History Library
GNU History Library
-Edition 2.1, for History Library
Version 2.1.
-March 1996
+Edition 4.0, for History Library
Version 4.0.
+December 1998
Brian Fox, Free Software Foundation
Chet Ramey, Case Western Reserve University
-
-
-@dircategory Libraries
-@direntry
-* History: (history). The GNU history library API
-
-
+Table of Contents
+
+
This document describes the GNU History library, a programming tool that
@@ -50,17 +75,17 @@ notice identical to this one.
Permission is granted to copy and distribute translations of this manual
into another language, under the above conditions for modified versions,
except that this permission notice may be stated in a translation approved
-by the Foundation.
+by the Free Software Foundation.
-Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+Copyright (C) 1988-1999 Free Software Foundation, Inc.
-
+
This chapter describes how to use the GNU History Library interactively,
@@ -70,9 +95,13 @@ see section Programming with GNU History.
+
+
-
+
@@ -95,8 +124,8 @@ History expansion takes place in two parts. The first is to determine
which line from the history list should be used during substitution.
The second is to select portions of that line for inclusion into the
current one. The line selected from the history is called the
-event, and the portions of that line that are acted upon are
-called words. Various modifiers are available to manipulate
+event, and the portions of that line that are acted upon are
+called words. Various modifiers are available to manipulate
the selected words. The line is broken into words in the same fashion
that Bash does, so that several words
surrounded by quotes are considered one word.
@@ -106,8 +135,15 @@ history expansion character, which is `!' by default.
+
-
+
+
+
@@ -161,7 +197,7 @@ The entire command line typed so far.
-
+
Word designators are used to select desired words from the event.
@@ -221,7 +257,7 @@ previous command is used as the event.
-
+
After the optional word designator, you can add a sequence of one or more
@@ -275,7 +311,7 @@ or with `&'.
-
+
This chapter describes how to interface programs that you write
@@ -285,9 +321,17 @@ For information on the interactive use of GNU History, see section Introduction to History: What is the GNU History library for?
+
History Storage: How information is stored.
+History Functions: Functions that you can use.
+History Variables: Variables that control behaviour.
+History Programming Example: Example of using the GNU History Library.
+
+
-
+
Many programs read input from the user a line at a time. The GNU History
@@ -301,7 +345,7 @@ The programmer using the History library has available functions
for remembering lines on a history list, associating arbitrary data
with a line, removing lines from the list, searching through the list
for a line containing an arbitrary text string, and referencing any line
-in the list directly. In addition, a history expansion function
+in the list directly. In addition, a history expansion function
is available which provides for a consistent user interface across
different programs.
@@ -322,7 +366,7 @@ advantage of command line editing.
-
+
The history list is an array of history entries. A history entry is
@@ -369,7 +413,7 @@ stifled.
-
+
This section describes the calling sequence for the various functions
@@ -377,9 +421,27 @@ present in GNU History.
+
-
+
+
This section describes functions used to initialize and manage
@@ -414,7 +476,7 @@ Set the state of the history list according to state.
-
+
These functions manage individual entries on the history list, or set
@@ -486,7 +548,7 @@ Returns non-zero if the history is stifled, zero if it is not.
-
+
These functions return information about the entire history list or
@@ -543,7 +605,7 @@ history.
-
+
These functions allow the current index into the history list to be
@@ -581,7 +643,7 @@ a NULL
pointer.
-
+
@@ -589,7 +651,7 @@ a NULL
pointer.
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,
+from the current history position. The search may be anchored,
meaning that the string must match at the beginning of the history entry.
@@ -634,7 +696,7 @@ index of the history element where string was found, or -1 otherwise.
-
+
The History library can read the history from and write it to a file.
@@ -694,7 +756,7 @@ Truncate the history file filename, leaving only the last
-
+
These functions implement csh
-like history expansion.
@@ -766,7 +828,7 @@ obeyed.
-
+
This section describes the externally visible variables exported by
@@ -872,7 +934,7 @@ By default, this variable is set to NULL.
-
+
The following program demonstrates simple use of the GNU History Library.
@@ -964,17 +1026,24 @@ main ()
-
+
+
+Jump to:
+a
+-
+e
+-
+h
-
a
+
anchored search
-e
+
event designators
-h
+
history events
history expansion
@@ -984,23 +1053,46 @@ main ()
-
-
-
a
+
+
+Jump to:
+a
+-
+c
+-
+g
+-
+h
+-
+m
+-
+n
+-
+p
+-
+r
+-
+s
+-
+u
+-
+w
+
+
add_history
append_history
-c
+
clear_history
current_history
-g
+
get_history_event
-h
+
history_arg_extract
history_base
@@ -1026,35 +1118,35 @@ main ()
history_total_bytes
history_truncate_file
-m
+
max_input_history
-n
+
next_history
-p
+
previous_history
-r
+
read_history
read_history_range
remove_history
replace_history_entry
-s
+
stifle_history
-u
+
unstifle_history
using_history
-w
+
where_history
write_history
@@ -1062,8 +1154,8 @@ main ()
-This document was generated on 2 April 1998 using the
-texi2html
-translator version 1.51.
+This document was generated on 31 December 1998 using the
+texi2html
+translator version 1.52.
diff --git a/doc/history.info b/doc/history.info
index f3c59a1..7a87cbd 100644
--- a/doc/history.info
+++ b/doc/history.info
@@ -1,5 +1,5 @@
This is Info file history.info, produced by Makeinfo version 1.67 from
-the input file /usr/homes/chet/src/bash/readline-2.2/doc/hist.texinfo.
+the input file /usr/homes/chet/src/bash/readline-src/doc/hist.texinfo.
INFO-DIR-SECTION Libraries
START-INFO-DIR-ENTRY
@@ -10,8 +10,7 @@ END-INFO-DIR-ENTRY
that provides a consistent user interface for recalling lines of
previously typed input.
- Copyright (C) 1988, 1991, 1993, 1995, 1996 Free Software Foundation,
-Inc.
+ Copyright (C) 1988-1999 Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim copies of this
manual provided the copyright notice and this permission notice pare
@@ -25,7 +24,7 @@ permission notice identical to this one.
Permission is granted to copy and distribute translations of this
manual into another language, under the above conditions for modified
versions, except that this permission notice may be stated in a
-translation approved by the Foundation.
+translation approved by the Free Software Foundation.
File: history.info, Node: Top, Next: Using History Interactively, Up: (dir)
@@ -764,26 +763,26 @@ Function and Variable Index
Tag Table:
-Node: Top1167
-Node: Using History Interactively1747
-Node: History Interaction2255
-Node: Event Designators3674
-Node: Word Designators4601
-Node: Modifiers5850
-Node: Programming with GNU History6988
-Node: Introduction to History7714
-Node: History Storage9035
-Node: History Functions10128
-Node: Initializing History and State Management11099
-Node: History List Management11891
-Node: Information About the History List13412
-Node: Moving Around the History List14718
-Node: Searching the History List15603
-Node: Managing the History File17435
-Node: History Expansion18941
-Node: History Variables20785
-Node: History Programming Example23103
-Node: Concept Index25707
-Node: Function and Variable Index26193
+Node: Top1162
+Node: Using History Interactively1742
+Node: History Interaction2250
+Node: Event Designators3669
+Node: Word Designators4596
+Node: Modifiers5845
+Node: Programming with GNU History6983
+Node: Introduction to History7709
+Node: History Storage9030
+Node: History Functions10123
+Node: Initializing History and State Management11094
+Node: History List Management11886
+Node: Information About the History List13407
+Node: Moving Around the History List14713
+Node: Searching the History List15598
+Node: Managing the History File17430
+Node: History Expansion18936
+Node: History Variables20780
+Node: History Programming Example23098
+Node: Concept Index25702
+Node: Function and Variable Index26188
End Tag Table
diff --git a/doc/history.ps b/doc/history.ps
index b9a28e8..ec82198 100644
--- a/doc/history.ps
+++ b/doc/history.ps
@@ -8,7 +8,7 @@
%%EndComments
%DVIPSCommandLine: dvips -D 300 -o history.ps history.dvi
%DVIPSParameters: dpi=300, comments removed
-%DVIPSSource: TeX output 1998.04.02:1444
+%DVIPSSource: TeX output 1998.12.31:1208
%%BeginProcSet: tex.pro
/TeXDict 250 dict def TeXDict begin /N{def}def /B{bind def}N /S{exch}N
/X{S N}B /TR{translate}N /isls false N /vsize 11 72 mul N /hsize 8.5 72
@@ -60,31 +60,95 @@ a}B /bos{/SS save N}B /eos{SS restore}B end
TeXDict begin 39158280 55380996 1000 300 300 (history.dvi)
@start /Fa 1 47 df<70F8F8F0E005057B840E>46 D E /Fb 1
47 df<0E003F007F807F80FF80FF80FF007E003C000909798815>46
-D E /Fc 11 121 df<00800100020004000C000800180030003000300060006000600060
-00E000E000E000E000E000E000E000E000E000E000600060006000600030003000300018
-0008000C00040002000100008009267D9B0F>40 D<8000400020001000180008000C0006
-000600060003000300030003000380038003800380038003800380038003800380030003
-00030003000600060006000C0008001800100020004000800009267E9B0F>I73 D<003F0000070000070000070000070000
-070000070000070000070000070003E7000C1700180F00300700700700E00700E00700E0
-0700E00700E00700E00700600700700700380F001C370007C7E0131A7F9915>100
-D<07C01C3030187018600CE00CFFFCE000E000E000E0006000700438081C1807E00E107F
-8F11>I<183C3C18000000000000FC1C1C1C1C1C1C1C1C1C1C1C1C1C1CFF081A80990A>
-105 D110 D<07E01C38300C700E6006E007
-E007E007E007E007E0076006700E381C1C3807E010107F8F13>I<1F2060E04020C020C0
-20F0007F003FC01FE000F080708030C030C020F0408F800C107F8F0F>115
-D<0800080008000800180018003800FFC038003800380038003800380038003800382038
-203820382018201C4007800B177F960F>I95 D<1FC0007FF00070780020180000
+1C00001C0007FC001FFC003C1C00701C00E01C00E01C00E01C00707C003FFF800F8F8011
+107E8F14>97 DI<03F80FFE1C0E380470006000E000E000E000E0006000700038
+0E1C1E0FFC03F00F107E8F14>I<007E00007E00000E00000E00000E00000E00000E0007
+CE000FFE001C3E00301E00700E00E00E00E00E00E00E00E00E00E00E00E00E00700E0030
+1E00383E001FEFC007CFC012177F9614>I<07E00FF01C38301C700CE00EE00EFFFEFFFE
+E00060007000380E1C1E0FFC03F00F107E8F14>I<00FC01FE038E07040700070007007F
+FEFFFE070007000700070007000700070007000700070007000700FFF8FFF80F177F9614
+>I<07CF001FFF80383B80301800701C00701C00701C003018003838003FF00037C00070
+00007000003FF8001FFC003FFE00700F00E00380E00380E00380E003807007003C1E001F
+FC0007F00011197F8F14>II<06000F000F0006000000000000000000FF00FF00
+070007000700070007000700070007000700070007000700FFF8FFF80D187C9714>I107 DIII<07C01FF03C78701C701CE00E
+E00EE00EE00EE00EE00E701C783C3C781FF007C00F107E8F14>II<03E7
+000FF7001C1F00300F00700F00E00700E00700E00700E00700E00700E00700700F00300F
+001C3F000FF70007C700000700000700000700000700000700000700003FE0003FE01318
+7F8F14>II<0FD83FF86038C038C038F000
+7F803FF007F8001C6006E006F006F81CFFF8CFE00F107E8F14>I<06000E000E000E000E
+007FFCFFFC0E000E000E000E000E000E000E000E000E0E0E0E0E0E0E1C07F801F00F157F
+9414>IIII<7E3F007E3F001E3C000E78
+0007700007E00003E00001C00003C00003E0000770000E78000E38001C1C00FE3F80FE3F
+8011107F8F14>II<3FFF7FFF700E701C7038007000E001C0038007000E
+001C0738077007FFFFFFFF10107F8F14>I E /Fd 1 47 df<7070F06004047D830B>46
+D E /Fe 24 122 df<03000700FF00070007000700070007000700070007000700070007
+000700070007000700070007000700070007007FF80D187D9713>49
+D<001800180038007800F800B8013802380238043808381838103820384038C038FFFF00
+380038003800380038003803FF10187F9713>52 D<30183FF03FE03F8020002000200020
+0020002FC03060203000380018001C001C401CE01CE01C80184038403030E00F800E187E
+9713>I<01F807040C06180E300E300070006000E000E3E0E418E80CF00EE006E007E007
+E007600760077006300E180C0C3807E010187F9713>I<40007FFF7FFE7FFE4004800880
+108010002000400040008001800100030003000700060006000E000E000E000E000E0004
+0010197E9813>I<07E01818300C2006600660067006780C3E181F3007C003E00CF8307C
+601E600FC007C003C003C00360022004181807E010187F9713>I72
+D<0FC21836200E6006C006C002C002C002E00070007E003FE01FF803FC007E000E000700
+03800380038003C002C006E004D81887E0101A7E9915>83 D<1FC000387000383800101C
+00001C00001C0003FC001E1C00381C00701C00E01C00E01C80E01C80E03C80705F801F8F
+0011107F8F13>97 D<07F81C1C381C70087000E000E000E000E000E000E0007000700438
+081C1807E00E107F8F11>99 D<003F000007000007000007000007000007000007000007
+0000070000070003E7000C1700180F00300700700700E00700E00700E00700E00700E007
+00E00700600700700700380F001C370007C7E0131A7F9915>I<07C01C3030187018600C
+E00CFFFCE000E000E000E0006000700438081C1807E00E107F8F11>I<0FCF0018718030
+30007038007038007038007038003030001860002FC0006000006000007000003FF0003F
+FC001FFE00600F00C00300C00300C00300C00300600600381C0007E00011187F8F13>
+103 DI<183C3C18000000000000FC1C1C1C1C1C1C1C1C1C
+1C1C1C1C1CFF081A80990A>I110
+D<07E01C38300C700E6006E007E007E007E007E007E0076006700E381C1C3807E010107F
+8F13>II114 D<1F2060E04020C020C020F0007F003FC01FE000F0807080
+30C030C020F0408F800C107F8F0F>I<0800080008000800180018003800FFC038003800
+380038003800380038003800382038203820382018201C4007800B177F960F>I118 D
-120 D E /Fd 2 42 df<00E001C00380078007000F001E001E001C003C003C0038007800
-780078007000F000F000F000F000F000F000F000F000F000F000F000F000F000F0007000
-78007800780038003C003C001C001E001E000F0007000780038001C000E00B2E7CA112>
-40 DI
-E /Fe 27 123 df<0007F800007FFC0001FC0E0003F01F0007E03F000FC03F000FC03F00
+120 DI E /Ff 2 42 df<00E001C00380078007000F001E001E001C003C003C00
+38007800780078007000F000F000F000F000F000F000F000F000F000F000F000F000F000
+F000700078007800780038003C003C001C001E001E000F0007000780038001C000E00B2E
+7CA112>40 DI
+E /Fg 27 123 df<0007F800007FFC0001FC0E0003F01F0007E03F000FC03F000FC03F00
0FC03F000FC01E000FC00C000FC000000FC000000FC0FF80FFFFFF80FFFFFF800FC01F80
0FC01F800FC01F800FC01F800FC01F800FC01F800FC01F800FC01F800FC01F800FC01F80
0FC01F800FC01F800FC01F800FC01F800FC01F800FC01F800FC01F800FC01F807FF8FFF0
@@ -167,7 +231,7 @@ C3F00001C1F8000380FC000700FE000E007F00FF81FFE0FF81FFE01B167F951E>II<7FFFF07FFFF07C07E0700F
C0601FC0E01F80C03F00C07F00C07E0000FC0001FC0003F80003F03007E0300FE0300FC0
701F80703F80603F00E07E03E0FFFFE0FFFFE014167E9519>I E
-/Ff 24 119 df<00E00000E00000E00000E00000E000F0E1E0FCE7E07EEFC01FFF0007FC
+/Fh 24 119 df<00E00000E00000E00000E00000E000F0E1E0FCE7E07EEFC01FFF0007FC
0001F00007FC001FFF007EEFC0FCE7E0F0E1E000E00000E00000E00000E00000E0001315
7D991A>42 D<003800007C00007C00006C0000EE0000EE0000EE0000C60000C60001C700
01C70001C70001C7000383800383800383800383800701C00701C007FFC007FFC00FFFE0
@@ -224,7 +288,7 @@ D<0180000380000380000380000380000380000380007FFFE0FFFFE0FFFFE00380000380
E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E01
E00F03E007FFFE03FFFE00FCFE17157F941A>I<7FC7FCFFC7FE7FC7FC0E00E00E00E00E
00E00701C00701C00701C003838003838003838001C70001C70001C70000EE0000EE0000
-EE00007C00007C0000380017157F941A>I E /Fg 41 123 df<0007FC00003FFF0000FE
+EE00007C00007C0000380017157F941A>I E /Fi 41 123 df<0007FC00003FFF0000FE
078003F007C007E00FC007E00FC00FC00FC00FC00FC00FC00FC00FC003000FC000000FC0
00000FC000000FC07FE0FFFFFFE0FFFFFFE00FC007E00FC007E00FC007E00FC007E00FC0
07E00FC007E00FC007E00FC007E00FC007E00FC007E00FC007E00FC007E00FC007E00FC0
@@ -381,7 +445,7 @@ FFC07FF8FFC07FF81D187F9720>120 DI<7FFFF87FFFF87C03F07007F0600FE0E0
0FC0E01F80C03F80C03F00C07E0000FE0000FC0001F80003F80C03F00C07E00C0FE00C0F
C01C1F80183F80387F00787E01F8FFFFF8FFFFF816187E971B>I
-E /Fh 30 122 df<0003F07C001E0DC600380F0F00701E0F00E01E0E00E00C0001C01C00
+E /Fj 30 122 df<0003F07C001E0DC600380F0F00701E0F00E01E0E00E00C0001C01C00
01C01C0001C01C0001C01C0001C01C00038038007FFFFFC0038038000380380003803800
038038000700700007007000070070000700700007007000070070000E00E0000E00E000
0E00E0000E00E0000E00E0000E00E0001C01C0001E01E000FF8FFC0020207E9F1B>11
@@ -454,7 +518,7 @@ C81887E010147F9312>I<0080010001000100030007000F001E00FFF80E000E000E000E
>I<0FF83F8001E00E0001C00C0001C0080001E0080000E0100000E0300000E0200000E0
40000070400000708000007080000071000000390000003A0000003E0000003C00000038
000000180000001000000010000000200000002000000040000070C00000F0800000F100
-0000E600000078000000191D809318>I E /Fi 36 122 df<0001C0000003C000000FC0
+0000E600000078000000191D809318>I E /Fk 36 122 df<0001C0000003C000000FC0
00007FC0001FFFC000FFFFC000FFBFC000E03FC000003FC000003FC000003FC000003FC0
00003FC000003FC000003FC000003FC000003FC000003FC000003FC000003FC000003FC0
00003FC000003FC000003FC000003FC000003FC000003FC000003FC000003FC000003FC0
@@ -697,260 +761,264 @@ F000001FE0E000001FF1E000000FF1C000000FF9C0000007FB80000007FB80000007FF80
000003FF00000003FF00000001FE00000001FE00000000FC00000000FC00000000780000
0000780000000070000000007000000000F000000000E000000001E000007C01C00000FE
03C00000FE03800000FE07000000FE0F000000FC1E000000787C0000003FF00000000FC0
-000000262E7E9F2B>I E /Fj 3 106 df<0000FF00000007FFE000001F00F8000078001E
+000000262E7E9F2B>I E /Fl 1 14 df<0000FF00000007FFE000001F00F8000078001E
0000E0000700018000018003000000C006000000600C000000300C000000301800000018
300000000C300000000C6000000006600000000660000000066000000006C000000003C0
00000003C000000003C000000003C000000003C000000003C000000003C000000003C000
0000036000000006600000000660000000066000000006300000000C300000000C180000
00180C000000300C00000030060000006003000000C0018000018000E00007000078001E
-00001F00F8000007FFE0000000FF0000282B7EA02D>13 D<0020006000C000C000C00180
-0180030003000300060006000C000C0018001800180030003000600060006000C000C000
-600060006000300030001800180018000C000C00060006000300030003000180018000C0
-00C000C0006000200B2E7CA112>104 DI E /Fk 44 122 df<3C007F00FF80FF80FFC0FFC0FFC07FC03EC000C0
-00C00180018001800300030006000E001C00380010000A157B8813>44
-D<1C007F007F00FF80FF80FF807F007F001C0009097B8813>46 D<000E00001E00007E00
-07FE00FFFE00FFFE00F8FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE00
+00001F00F8000007FFE0000000FF0000282B7EA02D>13 D E /Fm
+45 122 df<3C007F00FF80FF80FFC0FFC0FFC07FC03EC000C000C0018001800180030003
+0006000E001C00380010000A157B8813>44 D<1C007F007F00FF80FF80FF807F007F001C
+0009097B8813>46 D<000E00001E00007E0007FE00FFFE00FFFE00F8FE0000FE0000FE00
00FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE00
-00FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE00FFFFFEFFFFFEFFFFFE
-17277BA622>49 D<00FF800007FFF0000FFFFC001E03FE003800FF807C003F80FE003FC0
-FF001FC0FF001FE0FF000FE0FF000FE07E000FE03C001FE000001FE000001FC000001FC0
-00003F8000003F0000007E000000FC000000F8000001F0000003E00000078000000F0000
-001E0000003C00E0007000E000E000E001C001C0038001C0060001C00FFFFFC01FFFFFC0
-3FFFFFC07FFFFFC0FFFFFF80FFFFFF80FFFFFF801B277DA622>I<007F800003FFF00007
-FFFC000F81FE001F007F003F807F003F803F803F803F803F803F801F803F801F003F8000
-007F0000007F0000007E000000FC000001F8000007F00000FFC00000FFC0000001F80000
-007E0000003F0000003F8000001FC000001FC000001FE000001FE03C001FE07E001FE0FF
-001FE0FF001FE0FF001FC0FF003FC0FE003F807C007F003F01FE001FFFFC0007FFF00000
-FF80001B277DA622>I<00000F0000000F0000001F0000003F0000007F000000FF000001
-FF000001FF000003BF0000073F00000E3F00001C3F00003C3F0000383F0000703F0000E0
-3F0001C03F0003803F0007803F0007003F000E003F001C003F0038003F0070003F00F000
-3F00FFFFFFF8FFFFFFF8FFFFFFF800007F0000007F0000007F0000007F0000007F000000
-7F0000007F0000007F00001FFFF8001FFFF8001FFFF81D277EA622>I<180003001F801F
-001FFFFE001FFFFC001FFFF8001FFFF0001FFFC0001FFF00001C0000001C0000001C0000
-001C0000001C0000001C0000001C0000001C7FC0001DFFF8001F80FC001E003F0008003F
-0000001F8000001FC000001FC000001FE000001FE018001FE07C001FE0FE001FE0FE001F
-E0FE001FE0FE001FC0FC001FC078003F8078003F803C007F001F01FE000FFFFC0003FFF0
-0000FF80001B277DA622>I<00000780000000000780000000000FC0000000000FC00000
-00000FC0000000001FE0000000001FE0000000003FF0000000003FF0000000003FF00000
-000077F80000000077F800000000F7FC00000000E3FC00000000E3FC00000001C1FE0000
-0001C1FE00000003C1FF0000000380FF0000000380FF00000007007F80000007007F8000
-000F007FC000000E003FC000000E003FC000001C001FE000001C001FE000003FFFFFF000
-003FFFFFF000003FFFFFF00000700007F80000700007F80000F00007FC0000E00003FC00
-01E00003FE0001C00001FE0001C00001FE0003C00001FF00FFFE003FFFFCFFFE003FFFFC
-FFFE003FFFFC2E297EA833>65 DI<00007FE0030007FFFC07001FFFFF0F007FF00F9F00FF0001FF01
-FC0000FF03F800007F07F000003F0FE000001F1FC000001F1FC000000F3F8000000F3F80
-0000077F800000077F800000077F00000000FF00000000FF00000000FF00000000FF0000
-0000FF00000000FF00000000FF00000000FF00000000FF000000007F000000007F800000
-007F800000073F800000073F800000071FC00000071FC000000E0FE000000E07F000001C
-03F800003C01FC00007800FF0001F0007FF007C0001FFFFF800007FFFE0000007FF00028
-297CA831>I69 DI<00
-007FE003000007FFFC0700001FFFFF0F00007FF00F9F0000FF0001FF0001FC0000FF0003
-F800007F0007F000003F000FE000001F001FC000001F001FC000000F003F8000000F003F
-80000007007F80000007007F80000007007F0000000000FF0000000000FF0000000000FF
-0000000000FF0000000000FF0000000000FF0000000000FF0000000000FF0000000000FF
-0000FFFFF87F0000FFFFF87F8000FFFFF87F800000FF003F800000FF003F800000FF001F
-C00000FF001FC00000FF000FE00000FF0007F00000FF0003F80000FF0001FC0000FF0000
-FF0001FF00007FF007FF00001FFFFF9F000007FFFE0F0000007FF003002D297CA835>I<
-FFFFF00FFFFFFFFFF00FFFFFFFFFF00FFFFF03FC00003FC003FC00003FC003FC00003FC0
-03FC00003FC003FC00003FC003FC00003FC003FC00003FC003FC00003FC003FC00003FC0
-03FC00003FC003FC00003FC003FC00003FC003FC00003FC003FC00003FC003FC00003FC0
-03FFFFFFFFC003FFFFFFFFC003FFFFFFFFC003FC00003FC003FC00003FC003FC00003FC0
-03FC00003FC003FC00003FC003FC00003FC003FC00003FC003FC00003FC003FC00003FC0
-03FC00003FC003FC00003FC003FC00003FC003FC00003FC003FC00003FC003FC00003FC0
-03FC00003FC003FC00003FC0FFFFF00FFFFFFFFFF00FFFFFFFFFF00FFFFF30297EA835>
-II78 D49 D<00FF800007FFF0000FFF
+FC001E03FE003800FF807C003F80FE003FC0FF001FC0FF001FE0FF000FE0FF000FE07E00
+0FE03C001FE000001FE000001FC000001FC000003F8000003F0000007E000000FC000000
+F8000001F0000003E00000078000000F0000001E0000003C00E0007000E000E000E001C0
+01C0038001C0060001C00FFFFFC01FFFFFC03FFFFFC07FFFFFC0FFFFFF80FFFFFF80FFFF
+FF801B277DA622>I<007F800003FFF00007FFFC000F81FE001F007F003F807F003F803F
+803F803F803F803F801F803F801F003F8000007F0000007F0000007E000000FC000001F8
+000007F00000FFC00000FFC0000001F80000007E0000003F0000003F8000001FC000001F
+C000001FE000001FE03C001FE07E001FE0FF001FE0FF001FE0FF001FC0FF003FC0FE003F
+807C007F003F01FE001FFFFC0007FFF00000FF80001B277DA622>I<00000F0000000F00
+00001F0000003F0000007F000000FF000001FF000001FF000003BF0000073F00000E3F00
+001C3F00003C3F0000383F0000703F0000E03F0001C03F0003803F0007803F0007003F00
+0E003F001C003F0038003F0070003F00F0003F00FFFFFFF8FFFFFFF8FFFFFFF800007F00
+00007F0000007F0000007F0000007F0000007F0000007F0000007F00001FFFF8001FFFF8
+001FFFF81D277EA622>I<180003001F801F001FFFFE001FFFFC001FFFF8001FFFF0001F
+FFC0001FFF00001C0000001C0000001C0000001C0000001C0000001C0000001C0000001C
+7FC0001DFFF8001F80FC001E003F0008003F0000001F8000001FC000001FC000001FE000
+001FE018001FE07C001FE0FE001FE0FE001FE0FE001FE0FE001FC0FC001FC078003F8078
+003F803C007F001F01FE000FFFFC0003FFF00000FF80001B277DA622>I<000007800000
+00000780000000000FC0000000000FC0000000000FC0000000001FE0000000001FE00000
+00003FF0000000003FF0000000003FF00000000077F80000000077F800000000F7FC0000
+0000E3FC00000000E3FC00000001C1FE00000001C1FE00000003C1FF0000000380FF0000
+000380FF00000007007F80000007007F8000000F007FC000000E003FC000000E003FC000
+001C001FE000001C001FE000003FFFFFF000003FFFFFF000003FFFFFF00000700007F800
+00700007F80000F00007FC0000E00003FC0001E00003FE0001C00001FE0001C00001FE00
+03C00001FF00FFFE003FFFFCFFFE003FFFFCFFFE003FFFFC2E297EA833>65
+DI<00007F
+E0030007FFFC07001FFFFF0F007FF00F9F00FF0001FF01FC0000FF03F800007F07F00000
+3F0FE000001F1FC000001F1FC000000F3F8000000F3F800000077F800000077F80000007
+7F00000000FF00000000FF00000000FF00000000FF00000000FF00000000FF00000000FF
+00000000FF00000000FF000000007F000000007F800000007F800000073F800000073F80
+0000071FC00000071FC000000E0FE000000E07F000001C03F800003C01FC00007800FF00
+01F0007FF007C0001FFFFF800007FFFE0000007FF00028297CA831>I69 D80 D82 D<00FF806003FFF0E00FFFF8E0
-1F80FDE03F001FE03E0007E07C0003E07C0003E0FC0001E0FC0001E0FC0000E0FE0000E0
-FE0000E0FF000000FFC000007FFC00007FFFE0003FFFF8001FFFFE001FFFFF0007FFFF80
-03FFFFC000FFFFC0000FFFE000007FE000001FF000000FF0000007F0E00003F0E00003F0
-E00003F0E00003F0F00003E0F00003E0F80007E0FC0007C0FF000F80FFE03F80E3FFFE00
-E1FFFC00C01FF0001C297CA825>I85 DII<03FF
-80000FFFF0001F01FC003F80FE003F807F003F803F003F803F801F003F8000003F800000
-3F8000003F8000003F80003FFF8001FC3F800FE03F801F803F803F003F807E003F80FC00
-3F80FC003F80FC003F80FC003F80FC005F807E00DF803F839FFC1FFE0FFC03FC03FC1E1B
-7E9A21>97 D
-I<003FF00001FFFC0003F03E000FC07F001F807F003F007F003F007F007F003E007E0000
-007E000000FE000000FE000000FE000000FE000000FE000000FE000000FE0000007E0000
-007E0000007F0000003F0003803F8003801F8007000FE00E0003F83C0001FFF800003FC0
-00191B7E9A1E>I<00007FF000007FF000007FF0000007F0000007F0000007F0000007F0
-000007F0000007F0000007F0000007F0000007F0000007F0000007F0000007F0003F87F0
-01FFF7F007F03FF00FC00FF01F8007F03F0007F03F0007F07E0007F07E0007F07E0007F0
-FE0007F0FE0007F0FE0007F0FE0007F0FE0007F0FE0007F0FE0007F0FE0007F07E0007F0
-7E0007F03F0007F03F0007F01F800FF00FC01FF007E07FFF01FFE7FF007F87FF202A7EA9
-25>I<003FC00001FFF00003E07C000F803E001F801F001F001F003F000F807E000F807E
-000FC07E000FC0FE0007C0FE0007C0FFFFFFC0FFFFFFC0FE000000FE000000FE0000007E
-0000007E0000007F0000003F0001C01F0001C00F80038007C0070003F01E0000FFFC0000
-3FE0001A1B7E9A1F>I<0007F8003FFC007E3E01FC7F03F87F03F07F07F07F07F03E07F0
-0007F00007F00007F00007F00007F00007F000FFFFC0FFFFC0FFFFC007F00007F00007F0
-0007F00007F00007F00007F00007F00007F00007F00007F00007F00007F00007F00007F0
-0007F00007F00007F00007F00007F00007F0007FFF807FFF807FFF80182A7EA915>I<00
-FF80F003FFE3F80FC1FE1C1F007C7C3F007E7C3E003E107E003F007E003F007E003F007E
-003F007E003F007E003F003E003E003F007E001F007C000FC1F8000BFFE00018FF800018
-00000038000000380000003C0000003FFFF8003FFFFF001FFFFFC00FFFFFE007FFFFF01F
-FFFFF03C0007F07C0001F8F80000F8F80000F8F80000F8F80000F87C0001F07C0001F03F
-0007E00FC01F8007FFFF00007FF0001E287E9A22>II<07000F801FC03FE03FE03FE01FC00F80070000
-00000000000000000000000000FFE0FFE0FFE00FE00FE00FE00FE00FE00FE00FE00FE00F
-E00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE0FFFEFFFEFFFE0F2B7EAA12
->II<00007FE003000007FFFC0700001F
+FFFF0F00007FF00F9F0000FF0001FF0001FC0000FF0003F800007F0007F000003F000FE0
+00001F001FC000001F001FC000000F003F8000000F003F80000007007F80000007007F80
+000007007F0000000000FF0000000000FF0000000000FF0000000000FF0000000000FF00
+00000000FF0000000000FF0000000000FF0000000000FF0000FFFFF87F0000FFFFF87F80
+00FFFFF87F800000FF003F800000FF003F800000FF001FC00000FF001FC00000FF000FE0
+0000FF0007F00000FF0003F80000FF0001FC0000FF0000FF0001FF00007FF007FF00001F
+FFFF9F000007FFFE0F0000007FF003002D297CA835>III77 DI80 D82 D<00FF806003FFF0E00FFFF8E01F80
+FDE03F001FE03E0007E07C0003E07C0003E0FC0001E0FC0001E0FC0000E0FE0000E0FE00
+00E0FF000000FFC000007FFC00007FFFE0003FFFF8001FFFFE001FFFFF0007FFFF8003FF
+FFC000FFFFC0000FFFE000007FE000001FF000000FF0000007F0E00003F0E00003F0E000
+03F0E00003F0F00003E0F00003E0F80007E0FC0007C0FF000F80FFE03F80E3FFFE00E1FF
+FC00C01FF0001C297CA825>I85 DII<03FF8000
+0FFFF0001F01FC003F80FE003F807F003F803F003F803F801F003F8000003F8000003F80
+00003F8000003F80003FFF8001FC3F800FE03F801F803F803F003F807E003F80FC003F80
+FC003F80FC003F80FC003F80FC005F807E00DF803F839FFC1FFE0FFC03FC03FC1E1B7E9A
+21>97 DI<00
+3FF00001FFFC0003F03E000FC07F001F807F003F007F003F007F007F003E007E0000007E
+000000FE000000FE000000FE000000FE000000FE000000FE000000FE0000007E0000007E
+0000007F0000003F0003803F8003801F8007000FE00E0003F83C0001FFF800003FC00019
+1B7E9A1E>I<00007FF000007FF000007FF0000007F0000007F0000007F0000007F00000
+07F0000007F0000007F0000007F0000007F0000007F0000007F0000007F0003F87F001FF
+F7F007F03FF00FC00FF01F8007F03F0007F03F0007F07E0007F07E0007F07E0007F0FE00
+07F0FE0007F0FE0007F0FE0007F0FE0007F0FE0007F0FE0007F0FE0007F07E0007F07E00
+07F03F0007F03F0007F01F800FF00FC01FF007E07FFF01FFE7FF007F87FF202A7EA925>
+I<003FC00001FFF00003E07C000F803E001F801F001F001F003F000F807E000F807E000F
+C07E000FC0FE0007C0FE0007C0FFFFFFC0FFFFFFC0FE000000FE000000FE0000007E0000
+007E0000007F0000003F0001C01F0001C00F80038007C0070003F01E0000FFFC00003FE0
+001A1B7E9A1F>I<0007F8003FFC007E3E01FC7F03F87F03F07F07F07F07F03E07F00007
+F00007F00007F00007F00007F00007F000FFFFC0FFFFC0FFFFC007F00007F00007F00007
+F00007F00007F00007F00007F00007F00007F00007F00007F00007F00007F00007F00007
+F00007F00007F00007F00007F00007F0007FFF807FFF807FFF80182A7EA915>I<00FF80
+F003FFE3F80FC1FE1C1F007C7C3F007E7C3E003E107E003F007E003F007E003F007E003F
+007E003F007E003F003E003E003F007E001F007C000FC1F8000BFFE00018FF8000180000
+0038000000380000003C0000003FFFF8003FFFFF001FFFFFC00FFFFFE007FFFFF01FFFFF
+F03C0007F07C0001F8F80000F8F80000F8F80000F8F80000F87C0001F07C0001F03F0007
+E00FC01F8007FFFF00007FF0001E287E9A22>II<07000F801FC03FE03FE03FE01FC00F800700000000
+0000000000000000000000FFE0FFE0FFE00FE00FE00FE00FE00FE00FE00FE00FE00FE00F
+E00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE0FFFEFFFEFFFE0F2B7EAA12>I<
+FFE0FFE0FFE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE0
0FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE0
-0FE00FE00FE00FE0FFFEFFFEFFFE0F2A7EA912>108 DII<003FE00001FFFC0003F07E000FC01F801F800FC03F0007E03F00
-07E07E0003F07E0003F07E0003F0FE0003F8FE0003F8FE0003F8FE0003F8FE0003F8FE00
-03F8FE0003F8FE0003F87E0003F07E0003F03F0007E03F0007E01F800FC00FC01F8007F0
-7F0001FFFC00003FE0001D1B7E9A22>II<
-FFC1F0FFC7FCFFC63E0FCC7F0FD87F0FD07F0FD07F0FF03E0FE0000FE0000FE0000FE000
-0FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE000
-FFFF00FFFF00FFFF00181B7F9A1B>114 D<03FE300FFFF03E03F07800F07000F0F00070
-F00070F80070FE0000FFE0007FFF007FFFC03FFFE01FFFF007FFF800FFF80007FC0000FC
-E0007CE0003CF0003CF00038F80038FC0070FF01E0E7FFC0C1FF00161B7E9A1B>I<00E0
-0000E00000E00000E00001E00001E00001E00003E00003E00007E0000FE0001FFFE0FFFF
-E0FFFFE00FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0
-000FE0000FE0000FE0700FE0700FE0700FE0700FE0700FE0700FE07007F0E003F0C001FF
-80007F0014267FA51A>IIIIII E /Fl 75 127 df<70F8F8F8F8F8F8F8F8F8F8F8F8F8F8F8F870000000000070
-F8F8F870051C779B18>33 D<4010E038F078E038E038E038E038E038E038E038E038E038
-E03860300D0E7B9C18>I<030600078F00078F00078F00078F00078F00078F007FFFC0FF
-FFE0FFFFE07FFFC00F1E000F1E000F1E000F1E000F1E000F1E007FFFC0FFFFE0FFFFE07F
-FFC01E3C001E3C001E3C001E3C001E3C001E3C000C1800131C7E9B18>I<00C00001C000
-01C00001C00003F0000FFC003FFE007DCF0071C700E1C380E1C780E1C780E1C780F1C000
-79C0003FC0001FE0000FF80001FC0001DE0001CF0001C70061C380F1C380F1C380E1C380
-E1C70071C70079DE003FFE001FF80007E00001C00001C00001C00000C00011247D9F18>
-I<3803007C07807C0780EE0F80EE0F00EE0F00EE1F00EE1E00EE1E00EE3E007C3C007C3C
-00387C0000780000780000F80000F00001F00001E00001E00003E00003C00003C00007C0
-000783800787C00F87C00F0EE00F0EE01F0EE01E0EE01E0EE03E0EE03C07C03C07C01803
-8013247E9F18>I<01C00007E0000FF0000E70001C38001C38001C38001C38001C73F81C
-F3F81CE3F80FC1C00FC3800F83800F03801F07003F87007B8E0071CE00E1FC00E0FC00E0
-7C00E07870E0787070FE707FFFE03FC7E00F03C0151C7F9B18>I<387C7C7E3E0E0E0E1C
-1C38F8F0C0070E789B18>I<007000F001E003C007800F001E001C003800380070007000
-70007000E000E000E000E000E000E000E000E0007000700070007000380038001C001E00
-0F00078003C001F000F000700C24799F18>I<6000F00078003C001E000F000780038001
-C001C000E000E000E000E00070007000700070007000700070007000E000E000E000E001
-C001C0038007800F001E003C007800F00060000C247C9F18>I<01C00001C00001C00001
-C00041C100F1C780FDDF807FFF001FFC0007F00007F0001FFC007FFF00FDDF80F1C78041
-C10001C00001C00001C00001C00011147D9718>I<00600000F00000F00000F00000F000
-00F00000F00000F0007FFFC0FFFFE0FFFFE07FFFC000F00000F00000F00000F00000F000
-00F00000F00000600013147E9718>I<1C3E7E7F3F1F070E1E7CF860080C788518>I<7FFF
-C0FFFFE0FFFFE07FFFC013047E8F18>I<3078FCFC78300606778518>I<00030000078000
-0780000F80000F00001F00001E00001E00003E00003C00007C0000780000780000F80000
-F00001F00001E00003E00003C00003C00007C0000780000F80000F00000F00001F00001E
-00003E00003C00003C00007C0000780000F80000F00000F0000060000011247D9F18>I<
-01F00007FC000FFE001F1F001C07003803807803C07001C07001C0E000E0E000E0E000E0
-E000E0E000E0E000E0E000E0E000E0E000E0F001E07001C07001C07803C03803801C0700
-1F1F000FFE0007FC0001F000131C7E9B18>I<01800380038007800F803F80FF80FB8043
-8003800380038003800380038003800380038003800380038003800380038003807FFCFF
-FE7FFC0F1C7B9B18>I<03F0000FFE003FFF007C0F807003C0E001C0F000E0F000E06000
-E00000E00000E00001C00001C00003C0000780000F00001E00003C0000780000F00001E0
-0007C0000F80001E00E03C00E07FFFE0FFFFE07FFFE0131C7E9B18>I<001F00003F0000
-770000770000E70001E70001C7000387000787000707000E07001E07003C070038070078
-0700F00700FFFFF8FFFFF8FFFFF8000700000700000700000700000700000700007FF000
-7FF0007FF0151C7F9B18>52 D<007E0001FF0007FF800F83C01E03C01C03C03801803800
-00700000700000E1F800E7FE00FFFF00FE0780F803C0F001C0F000E0E000E0F000E07000
-E07000E07000E03801C03C03C01E07800FFF0007FE0001F800131C7E9B18>54
+0FE00FE00FE0FFFEFFFEFFFE0F2A7EA912>108 D
+II<003FE00001FFFC0003F07E000FC01F801F800FC03F0007E03F0007E0
+7E0003F07E0003F07E0003F0FE0003F8FE0003F8FE0003F8FE0003F8FE0003F8FE0003F8
+FE0003F8FE0003F87E0003F07E0003F03F0007E03F0007E01F800FC00FC01F8007F07F00
+01FFFC00003FE0001D1B7E9A22>II114 D<03FE300FFFF03E03F07800F07000F0F00070F000
+70F80070FE0000FFE0007FFF007FFFC03FFFE01FFFF007FFF800FFF80007FC0000FCE000
+7CE0003CF0003CF00038F80038FC0070FF01E0E7FFC0C1FF00161B7E9A1B>I<00E00000
+E00000E00000E00001E00001E00001E00003E00003E00007E0000FE0001FFFE0FFFFE0FF
+FFE00FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000F
+E0000FE0000FE0700FE0700FE0700FE0700FE0700FE0700FE07007F0E003F0C001FF8000
+7F0014267FA51A>IIIIII E /Fn 75 127 df<70F8F8F8F8F8F8F8F8F8F8F8F8F8F8F8F870000000000070F8F8
+F870051C779B18>33 D<4010E038F078E038E038E038E038E038E038E038E038E038E038
+60300D0E7B9C18>I<030600078F00078F00078F00078F00078F00078F007FFFC0FFFFE0
+FFFFE07FFFC00F1E000F1E000F1E000F1E000F1E000F1E007FFFC0FFFFE0FFFFE07FFFC0
+1E3C001E3C001E3C001E3C001E3C001E3C000C1800131C7E9B18>I<00C00001C00001C0
+0001C00003F0000FFC003FFE007DCF0071C700E1C380E1C780E1C780E1C780F1C00079C0
+003FC0001FE0000FF80001FC0001DE0001CF0001C70061C380F1C380F1C380E1C380E1C7
+0071C70079DE003FFE001FF80007E00001C00001C00001C00000C00011247D9F18>I<38
+03007C07807C0780EE0F80EE0F00EE0F00EE1F00EE1E00EE1E00EE3E007C3C007C3C0038
+7C0000780000780000F80000F00001F00001E00001E00003E00003C00003C00007C00007
+83800787C00F87C00F0EE00F0EE01F0EE01E0EE01E0EE03E0EE03C07C03C07C018038013
+247E9F18>I<01C00007E0000FF0000E70001C38001C38001C38001C38001C73F81CF3F8
+1CE3F80FC1C00FC3800F83800F03801F07003F87007B8E0071CE00E1FC00E0FC00E07C00
+E07870E0787070FE707FFFE03FC7E00F03C0151C7F9B18>I<387C7C7E3E0E0E0E1C1C38
+F8F0C0070E789B18>I<007000F001E003C007800F001E001C0038003800700070007000
+7000E000E000E000E000E000E000E000E0007000700070007000380038001C001E000F00
+078003C001F000F000700C24799F18>I<6000F00078003C001E000F000780038001C001
+C000E000E000E000E00070007000700070007000700070007000E000E000E000E001C001
+C0038007800F001E003C007800F00060000C247C9F18>I<01C00001C00001C00001C000
+41C100F1C780FDDF807FFF001FFC0007F00007F0001FFC007FFF00FDDF80F1C78041C100
+01C00001C00001C00001C00011147D9718>I<00600000F00000F00000F00000F00000F0
+0000F00000F0007FFFC0FFFFE0FFFFE07FFFC000F00000F00000F00000F00000F00000F0
+0000F00000600013147E9718>I<1C3E7E7F3F1F070E1E7CF860080C788518>I<7FFFC0FF
+FFE0FFFFE07FFFC013047E8F18>I<3078FCFC78300606778518>I<000300000780000780
+000F80000F00001F00001E00001E00003E00003C00007C0000780000780000F80000F000
+01F00001E00003E00003C00003C00007C0000780000F80000F00000F00001F00001E0000
+3E00003C00003C00007C0000780000F80000F00000F0000060000011247D9F18>I<01F0
+0007FC000FFE001F1F001C07003803807803C07001C07001C0E000E0E000E0E000E0E000
+E0E000E0E000E0E000E0E000E0E000E0F001E07001C07001C07803C03803801C07001F1F
+000FFE0007FC0001F000131C7E9B18>I<01800380038007800F803F80FF80FB80438003
+800380038003800380038003800380038003800380038003800380038003807FFCFFFE7F
+FC0F1C7B9B18>I<03F0000FFE003FFF007C0F807003C0E001C0F000E0F000E06000E000
+00E00000E00001C00001C00003C0000780000F00001E00003C0000780000F00001E00007
+C0000F80001E00E03C00E07FFFE0FFFFE07FFFE0131C7E9B18>I<001F00003F00007700
+00770000E70001E70001C7000387000787000707000E07001E07003C0700380700780700
+F00700FFFFF8FFFFF8FFFFF8000700000700000700000700000700000700007FF0007FF0
+007FF0151C7F9B18>52 D<007E0001FF0007FF800F83C01E03C01C03C038018038000070
+0000700000E1F800E7FE00FFFF00FE0780F803C0F001C0F000E0E000E0F000E07000E070
+00E07000E03801C03C03C01E07800FFF0007FE0001F800131C7E9B18>54
D<3078FCFC783000000000000000003078FCFC78300614779318>58
D<183C7E7E3C180000000000000000183C7E7E3E1E0E1C3C78F060071A789318>I<0000
C00003E00007E0001FC0003F8000FE0001FC0007F0000FE0003F80007F0000FC0000FC00
@@ -1068,7 +1136,7 @@ F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0600424769F18>I<7C0000FF00
00FFC00003C00000E00000E00000E00000E00000E00000E00000E00000E00000E00000E0
0000E00000F000007FC0003FE0003FE0007FC000F00000E00000E00000E00000E00000E0
0000E00000E00000E00000E00000E00000E00003C000FFC000FF00007C000013247E9F18
->I<060C1F1E3FBEFBF8F1F060C00F067C9B18>I E /Fm 74 123
+>I<060C1F1E3FBEFBF8F1F060C00F067C9B18>I E /Fo 74 123
df<001F83E000F06E3001C078780380F8780300F0300700700007007000070070000700
7000070070000700700007007000FFFFFF80070070000700700007007000070070000700
700007007000070070000700700007007000070070000700700007007000070070000700
@@ -1259,7 +1327,7 @@ C0800704E0800704E08003886100038871000388710001D0320001D03A0001D03E0000E0
0007010007830003820003820001C40001C40001E40000E80000E8000070000070000070
00002000002000004000004000004000F08000F08000F100006200003C0000151D7F9318
>I<7FFF700E600E401C40384078407000E001E001C00380078007010E011E011C033802
-7006700EFFFE10147F9314>I E /Fn 13 122 df<0000001FFC0000C000000003FFFFC0
+7006700EFFFE10147F9314>I E /Fp 13 122 df<0000001FFC0000C000000003FFFFC0
01C00000001FFFFFF003C00000007FFFFFFC07C0000001FFFC00FE0FC0000007FFC0001F
9FC000000FFE000007FFC000003FF8000003FFC000007FF0000000FFC00000FFE0000000
7FC00001FFC00000007FC00001FF800000003FC00003FF000000001FC00007FE00000000
@@ -1395,15 +1463,15 @@ TeXDict begin
%%EndSetup
%%Page: 1 1
-1 0 bop 75 693 a Fn(GNU)33 b(History)f(Library)p 75 743
-1800 17 v 960 791 a Fm(Edition)16 b(2.1,)e(for)h Fl(History)f(Library)g
-Fm(V)l(ersion)i(2.1.)1643 845 y(Marc)o(h)e(1996)75 2467
-y Fk(Brian)23 b(F)-6 b(o)n(x,)23 b(F)-6 b(ree)23 b(Soft)n(w)n(are)f(F)
--6 b(oundation)75 2534 y(Chet)22 b(Ramey)-6 b(,)23 b(Case)e(W)-6
-b(estern)23 b(Reserv)n(e)f(Univ)n(ersit)n(y)p 75 2570
-1800 9 v eop
+1 0 bop 75 693 a Fp(GNU)33 b(History)f(Library)p 75 743
+1800 17 v 960 791 a Fo(Edition)16 b(4.0,)e(for)h Fn(History)f(Library)g
+Fo(V)l(ersion)i(4.0.)1572 845 y(Decem)o(b)q(er)g(1998)75
+2467 y Fm(Brian)23 b(F)-6 b(o)n(x,)23 b(F)-6 b(ree)23
+b(Soft)n(w)n(are)f(F)-6 b(oundation)75 2534 y(Chet)22
+b(Ramey)-6 b(,)23 b(Case)e(W)-6 b(estern)23 b(Reserv)n(e)f(Univ)n
+(ersit)n(y)p 75 2570 1800 9 v eop
%%Page: 2 2
-2 1 bop 75 250 a Fm(This)21 b(do)q(cumen)o(t)g(describ)q(es)h(the)f
+2 1 bop 75 250 a Fo(This)21 b(do)q(cumen)o(t)g(describ)q(es)h(the)f
(GNU)f(History)g(library)l(,)j(a)d(programming)g(to)q(ol)g(that)g(pro)o
(vides)h(a)75 305 y(consisten)o(t)15 b(user)h(in)o(terface)f(for)g
(recalling)i(lines)f(of)f(previously)i(t)o(yp)q(ed)e(input.)75
@@ -1424,26 +1492,25 @@ b(estern)23 b(Reserv)n(e)f(Univ)n(ersit)n(y)p 75 2570
g(lan-)75 903 y(guage,)e(under)h(the)f(ab)q(o)o(v)o(e)g(conditions)i
(for)d(mo)q(di\014ed)j(v)o(ersions,)e(except)h(that)f(this)h(p)q
(ermission)g(notice)75 958 y(ma)o(y)f(b)q(e)i(stated)f(in)h(a)f
-(translation)g(appro)o(v)o(ed)g(b)o(y)g(the)g(F)l(oundation.)75
-2661 y(Cop)o(yrigh)o(t)301 2660 y(c)289 2661 y Fj(\015)g
-Fm(1989,)f(1991)g(F)l(ree)h(Soft)o(w)o(are)f(F)l(oundation,)h(Inc.)p
-eop
+(translation)g(appro)o(v)o(ed)g(b)o(y)g(the)g(F)l(ree)h(Soft)o(w)o(are)
+d(F)l(oundation.)75 2661 y(Cop)o(yrigh)o(t)301 2660 y(c)289
+2661 y Fl(\015)i Fo(1988-1999)e(F)l(ree)i(Soft)o(w)o(are)f(F)l
+(oundation,)h(Inc.)p eop
%%Page: 1 3
-1 2 bop 75 -58 a Fm(Chapter)15 b(1:)k(Using)d(History)f(In)o(teractiv)o
-(ely)1007 b(1)75 183 y Fi(1)41 b(Using)26 b(History)h(In)n(teractiv)n
-(ely)137 317 y Fm(This)16 b(c)o(hapter)f(describ)q(es)i(ho)o(w)d(to)h
+1 2 bop 75 -58 a Fo(Chapter)15 b(1:)k(Using)d(History)f(In)o(teractiv)o
+(ely)1007 b(1)75 183 y Fk(1)41 b(Using)26 b(History)h(In)n(teractiv)n
+(ely)137 317 y Fo(This)16 b(c)o(hapter)f(describ)q(es)i(ho)o(w)d(to)h
(use)g(the)g(GNU)g(History)g(Library)h(in)o(teractiv)o(ely)l(,)g(from)e
(a)h(user's)75 372 y(standp)q(oin)o(t.)35 b(It)20 b(should)g(b)q(e)h
(considered)h(a)d(user's)h(guide.)35 b(F)l(or)19 b(information)h(on)g
-(using)h(the)f(GNU)75 427 y(History)15 b(Library)h(in)g(y)o(our)f(o)o
-(wn)g(programs,)e(see)j Fj(h)p Fm(unde\014ned)p Fj(i)g
-Fm([Programming)e(with)i(GNU)f(History],)75 482 y(page)g
-Fj(h)p Fm(unde\014ned)p Fj(i)p Fm(.)75 625 y Fk(1.1)33
-b(History)22 b(Expansion)137 727 y Fm(The)c(History)g(library)h(pro)o
-(vides)f(a)f(history)h(expansion)h(feature)e(that)h(is)g(similar)h(to)e
-(the)h(history)75 782 y(expansion)12 b(pro)o(vided)g(b)o(y)f
-Fl(csh)p Fm(.)18 b(This)11 b(section)h(describ)q(es)g(the)g(syn)o(tax)e
-(used)h(to)g(manipulate)h(the)f(history)75 836 y(information.)137
+(using)h(the)f(GNU)75 427 y(History)d(Library)h(in)h(y)o(our)e(o)o(wn)g
+(programs,)f(see)i(Chapter)f(2)h([Programming)e(with)i(GNU)f(History],)
+75 482 y(page)e(3.)75 625 y Fm(1.1)33 b(History)22 b(Expansion)137
+727 y Fo(The)c(History)g(library)h(pro)o(vides)f(a)f(history)h
+(expansion)h(feature)e(that)h(is)g(similar)h(to)e(the)h(history)75
+782 y(expansion)12 b(pro)o(vided)g(b)o(y)f Fn(csh)p Fo(.)18
+b(This)11 b(section)h(describ)q(es)g(the)g(syn)o(tax)e(used)h(to)g
+(manipulate)h(the)f(history)75 836 y(information.)137
909 y(History)k(expansions)h(in)o(tro)q(duce)h(w)o(ords)d(from)g(the)i
(history)f(list)h(in)o(to)f(the)h(input)g(stream,)e(making)75
964 y(it)h(easy)g(to)g(rep)q(eat)g(commands,)g(insert)h(the)f(argumen)o
@@ -1455,120 +1522,119 @@ h(t)o(w)o(o)d(parts.)28 b(The)19 b(\014rst)f(is)g(to)g(determine)i
(e)f(used)g(during)h(substitution.)37 b(The)21 b(second)g(is)g(to)f
(select)i(p)q(ortions)e(of)75 1202 y(that)15 b(line)i(for)d(inclusion)k
(in)o(to)d(the)h(curren)o(t)f(one.)20 b(The)c(line)g(selected)h(from)e
-(the)g(history)g(is)h(called)h(the)75 1256 y Fh(ev)o(en)o(t)p
-Fm(,)c(and)h(the)g(p)q(ortions)g(of)f(that)g(line)i(that)e(are)g(acted)
-h(up)q(on)g(are)f(called)j Fh(w)o(ords)p Fm(.)i(V)l(arious)c
-Fh(mo)q(di\014ers)75 1311 y Fm(are)i(a)o(v)m(ailable)i(to)e(manipulate)
+(the)g(history)g(is)h(called)h(the)75 1256 y Fj(ev)o(en)o(t)p
+Fo(,)c(and)h(the)g(p)q(ortions)g(of)f(that)g(line)i(that)e(are)g(acted)
+h(up)q(on)g(are)f(called)j Fj(w)o(ords)p Fo(.)i(V)l(arious)c
+Fj(mo)q(di\014ers)75 1311 y Fo(are)i(a)o(v)m(ailable)i(to)e(manipulate)
i(the)e(selected)i(w)o(ords.)23 b(The)17 b(line)h(is)f(brok)o(en)f(in)o
(to)h(w)o(ords)e(in)j(the)e(same)75 1366 y(fashion)c(that)e(Bash)i(do)q
(es,)g(so)f(that)g(sev)o(eral)g(w)o(ords)g(surrounded)h(b)o(y)f(quotes)
h(are)f(considered)h(one)g(w)o(ord.)75 1421 y(History)18
b(expansions)h(are)g(in)o(tro)q(duced)g(b)o(y)f(the)h(app)q(earance)g
(of)f(the)g(history)h(expansion)g(c)o(haracter,)75 1475
-y(whic)o(h)d(is)g(`)p Fl(!)p Fm(')e(b)o(y)h(default.)75
-1599 y Fg(1.1.1)30 b(Ev)n(en)n(t)21 b(Designators)137
-1701 y Fm(An)16 b(ev)o(en)o(t)f(designator)g(is)g(a)g(reference)h(to)f
+y(whic)o(h)d(is)g(`)p Fn(!)p Fo(')e(b)o(y)h(default.)75
+1599 y Fi(1.1.1)30 b(Ev)n(en)n(t)21 b(Designators)137
+1701 y Fo(An)16 b(ev)o(en)o(t)f(designator)g(is)g(a)g(reference)h(to)f
(a)g(command)g(line)i(en)o(try)d(in)i(the)g(history)f(list.)75
-1789 y Fl(!)216 b Fm(Start)16 b(a)g(history)h(substitution,)g(except)h
+1789 y Fn(!)216 b Fo(Start)16 b(a)g(history)h(substitution,)g(except)h
(when)f(follo)o(w)o(ed)g(b)o(y)f(a)h(space,)g(tab,)f(the)h(end)g(of)315
-1844 y(the)e(line,)i(`)p Fl(=)p Fm(')d(or)h(`)p Fl(\()p
-Fm('.)75 1929 y Fl(!)p Fh(n)191 b Fm(Refer)16 b(to)e(command)h(line)i
-Fh(n)p Fm(.)75 2015 y Fl(!-)p Fh(n)167 b Fm(Refer)16
-b(to)e(the)i(command)f Fh(n)g Fm(lines)i(bac)o(k.)75
-2100 y Fl(!!)192 b Fm(Refer)16 b(to)e(the)i(previous)f(command.)20
-b(This)c(is)g(a)f(synon)o(ym)g(for)f(`)p Fl(!-1)p Fm('.)75
-2186 y Fl(!)p Fh(string)102 b Fm(Refer)16 b(to)e(the)i(most)e(recen)o
-(t)h(command)g(starting)g(with)g Fh(string)p Fm(.)75
-2271 y Fl(!?)p Fh(string)t Fl([?])315 2326 y Fm(Refer)i(to)f(the)h
-(most)f(recen)o(t)h(command)g(con)o(taining)g Fh(string)p
-Fm(.)25 b(The)17 b(trailing)g(`)p Fl(?)p Fm(')f(ma)o(y)g(b)q(e)315
-2381 y(omitted)f(if)h(the)f Fh(string)k Fm(is)d(follo)o(w)o(ed)f
-(immediately)i(b)o(y)e(a)g(newline.)75 2466 y Fl(^)p
-Fh(string1)t Fl(^)p Fh(string2)t Fl(^)315 2521 y Fm(Quic)o(k)i
+1844 y(the)e(line,)i(`)p Fn(=)p Fo(')d(or)h(`)p Fn(\()p
+Fo('.)75 1929 y Fn(!)p Fj(n)191 b Fo(Refer)16 b(to)e(command)h(line)i
+Fj(n)p Fo(.)75 2015 y Fn(!-)p Fj(n)167 b Fo(Refer)16
+b(to)e(the)i(command)f Fj(n)g Fo(lines)i(bac)o(k.)75
+2100 y Fn(!!)192 b Fo(Refer)16 b(to)e(the)i(previous)f(command.)20
+b(This)c(is)g(a)f(synon)o(ym)g(for)f(`)p Fn(!-1)p Fo('.)75
+2186 y Fn(!)p Fj(string)102 b Fo(Refer)16 b(to)e(the)i(most)e(recen)o
+(t)h(command)g(starting)g(with)g Fj(string)p Fo(.)75
+2271 y Fn(!?)p Fj(string)t Fn([?])315 2326 y Fo(Refer)i(to)f(the)h
+(most)f(recen)o(t)h(command)g(con)o(taining)g Fj(string)p
+Fo(.)25 b(The)17 b(trailing)g(`)p Fn(?)p Fo(')f(ma)o(y)g(b)q(e)315
+2381 y(omitted)f(if)h(the)f Fj(string)k Fo(is)d(follo)o(w)o(ed)f
+(immediately)i(b)o(y)e(a)g(newline.)75 2466 y Fn(^)p
+Fj(string1)t Fn(^)p Fj(string2)t Fn(^)315 2521 y Fo(Quic)o(k)i
(Substitution.)23 b(Rep)q(eat)17 b(the)f(last)f(command,)h(replacing)h
-Fh(string1)i Fm(with)e Fh(string2)p Fm(.)315 2576 y(Equiv)m(alen)o(t)g
-(to)d Fl(!!:s/)p Fh(string1)t Fl(/)p Fh(string2)t Fl(/)p
-Fm(.)75 2661 y Fl(!#)192 b Fm(The)15 b(en)o(tire)h(command)f(line)i(t)o
+Fj(string1)i Fo(with)e Fj(string2)p Fo(.)315 2576 y(Equiv)m(alen)o(t)g
+(to)d Fn(!!:s/)p Fj(string1)t Fn(/)p Fj(string2)t Fn(/)p
+Fo(.)75 2661 y Fn(!#)192 b Fo(The)15 b(en)o(tire)h(command)f(line)i(t)o
(yp)q(ed)f(so)e(far.)p eop
%%Page: 2 4
-2 3 bop 75 -58 a Fm(2)1347 b(GNU)15 b(History)g(Library)75
-183 y Fg(1.1.2)30 b(W)-5 b(ord)20 b(Designators)137 279
-y Fm(W)l(ord)d(designators)g(are)g(used)h(to)f(select)h(desired)h(w)o
-(ords)d(from)h(the)g(ev)o(en)o(t.)26 b(A)18 b(`)p Fl(:)p
-Fm(')e(separates)h(the)75 333 y(ev)o(en)o(t)j(sp)q(eci\014cation)h
+2 3 bop 75 -58 a Fo(2)1347 b(GNU)15 b(History)g(Library)75
+183 y Fi(1.1.2)30 b(W)-5 b(ord)20 b(Designators)137 279
+y Fo(W)l(ord)d(designators)g(are)g(used)h(to)f(select)h(desired)h(w)o
+(ords)d(from)h(the)g(ev)o(en)o(t.)26 b(A)18 b(`)p Fn(:)p
+Fo(')e(separates)h(the)75 333 y(ev)o(en)o(t)j(sp)q(eci\014cation)h
(from)e(the)h(w)o(ord)f(designator.)34 b(It)20 b(ma)o(y)f(b)q(e)h
(omitted)g(if)g(the)g(w)o(ord)f(designator)75 388 y(b)q(egins)f(with)g
-(a)e(`)p Fl(^)p Fm(',)h(`)p Fl($)p Fm(',)f(`)p Fl(*)p
-Fm(',)g(`)p Fl(-)p Fm(',)g(or)h(`)p Fl(\045)p Fm('.)24
+(a)e(`)p Fn(^)p Fo(',)h(`)p Fn($)p Fo(',)f(`)p Fn(*)p
+Fo(',)g(`)p Fn(-)p Fo(',)g(or)h(`)p Fn(\045)p Fo('.)24
b(W)l(ords)17 b(are)g(n)o(um)o(b)q(ered)g(from)g(the)g(b)q(eginning)i
(of)e(the)g(line,)75 443 y(with)j(the)g(\014rst)f(w)o(ord)h(b)q(eing)h
(denoted)f(b)o(y)g(0)f(\(zero\).)33 b(W)l(ords)20 b(are)f(inserted)i
(in)o(to)f(the)g(curren)o(t)f(line)75 498 y(separated)c(b)o(y)g(single)
-i(spaces.)75 575 y Fl(0)e(\(zero\))57 b Fm(The)15 b Fl(0)p
-Fm(th)g(w)o(ord.)20 b(F)l(or)14 b(man)o(y)h(applications,)h(this)g(is)g
-(the)f(command)g(w)o(ord.)75 653 y Fh(n)215 b Fm(The)15
-b Fh(n)p Fm(th)h(w)o(ord.)75 731 y Fl(^)216 b Fm(The)15
+i(spaces.)75 575 y Fn(0)e(\(zero\))57 b Fo(The)15 b Fn(0)p
+Fo(th)g(w)o(ord.)20 b(F)l(or)14 b(man)o(y)h(applications,)h(this)g(is)g
+(the)f(command)g(w)o(ord.)75 653 y Fj(n)215 b Fo(The)15
+b Fj(n)p Fo(th)h(w)o(ord.)75 731 y Fn(^)216 b Fo(The)15
b(\014rst)g(argumen)o(t;)f(that)h(is,)g(w)o(ord)g(1.)75
-808 y Fl($)216 b Fm(The)15 b(last)h(argumen)o(t.)75 886
-y Fl(\045)216 b Fm(The)15 b(w)o(ord)g(matc)o(hed)g(b)o(y)g(the)g(most)g
-(recen)o(t)g(`)p Fl(?)p Fh(string)t Fl(?)p Fm(')f(searc)o(h.)75
-964 y Fh(x)p Fl(-)p Fh(y)168 b Fm(A)15 b(range)g(of)g(w)o(ords;)f(`)p
-Fl(-)p Fh(y)t Fm(')g(abbreviates)i(`)p Fl(0-)p Fh(y)t
-Fm('.)75 1042 y Fl(*)216 b Fm(All)15 b(of)f(the)f(w)o(ords,)g(except)i
-(the)f Fl(0)p Fm(th.)19 b(This)14 b(is)h(a)e(synon)o(ym)h(for)f(`)p
-Fl(1-$)p Fm('.)18 b(It)c(is)g(not)g(an)g(error)315 1096
-y(to)g(use)h(`)p Fl(*)p Fm(')f(if)i(there)e(is)i(just)e(one)h(w)o(ord)f
+808 y Fn($)216 b Fo(The)15 b(last)h(argumen)o(t.)75 886
+y Fn(\045)216 b Fo(The)15 b(w)o(ord)g(matc)o(hed)g(b)o(y)g(the)g(most)g
+(recen)o(t)g(`)p Fn(?)p Fj(string)t Fn(?)p Fo(')f(searc)o(h.)75
+964 y Fj(x)p Fn(-)p Fj(y)168 b Fo(A)15 b(range)g(of)g(w)o(ords;)f(`)p
+Fn(-)p Fj(y)t Fo(')g(abbreviates)i(`)p Fn(0-)p Fj(y)t
+Fo('.)75 1042 y Fn(*)216 b Fo(All)15 b(of)f(the)f(w)o(ords,)g(except)i
+(the)f Fn(0)p Fo(th.)19 b(This)14 b(is)h(a)e(synon)o(ym)h(for)f(`)p
+Fn(1-$)p Fo('.)18 b(It)c(is)g(not)g(an)g(error)315 1096
+y(to)g(use)h(`)p Fn(*)p Fo(')f(if)i(there)e(is)i(just)e(one)h(w)o(ord)f
(in)i(the)f(ev)o(en)o(t;)f(the)h(empt)o(y)g(string)g(is)g(returned)g
-(in)315 1151 y(that)f(case.)75 1229 y Fh(x)s Fl(*)189
-b Fm(Abbreviates)16 b(`)p Fh(x)p Fl(-$)p Fm(')75 1307
-y Fh(x)p Fl(-)192 b Fm(Abbreviates)16 b(`)p Fh(x)p Fl(-$)p
-Fm(')e(lik)o(e)i(`)p Fh(x)s Fl(*)p Fm(',)e(but)i(omits)f(the)g(last)g
+(in)315 1151 y(that)f(case.)75 1229 y Fj(x)s Fn(*)189
+b Fo(Abbreviates)16 b(`)p Fj(x)p Fn(-$)p Fo(')75 1307
+y Fj(x)p Fn(-)192 b Fo(Abbreviates)16 b(`)p Fj(x)p Fn(-$)p
+Fo(')e(lik)o(e)i(`)p Fj(x)s Fn(*)p Fo(',)e(but)i(omits)f(the)g(last)g
(w)o(ord.)137 1384 y(If)i(a)g(w)o(ord)f(designator)h(is)h(supplied)h
(without)e(an)g(ev)o(en)o(t)f(sp)q(eci\014cation,)j(the)e(previous)h
(command)75 1439 y(is)e(used)f(as)g(the)h(ev)o(en)o(t.)75
-1548 y Fg(1.1.3)30 b(Mo)r(di\014ers)137 1643 y Fm(After)10
+1548 y Fi(1.1.3)30 b(Mo)r(di\014ers)137 1643 y Fo(After)10
b(the)h(optional)g(w)o(ord)e(designator,)i(y)o(ou)f(can)h(add)f(a)g
(sequence)i(of)e(one)g(or)g(more)g(of)g(the)g(follo)o(wing)75
1698 y(mo)q(di\014ers,)16 b(eac)o(h)f(preceded)i(b)o(y)e(a)g(`)p
-Fl(:)p Fm('.)75 1776 y Fl(h)216 b Fm(Remo)o(v)o(e)15
+Fn(:)p Fo('.)75 1776 y Fn(h)216 b Fo(Remo)o(v)o(e)15
b(a)g(trailing)h(pathname)f(comp)q(onen)o(t,)g(lea)o(ving)h(only)g(the)
-f(head.)75 1854 y Fl(t)216 b Fm(Remo)o(v)o(e)15 b(all)h(leading)h
+f(head.)75 1854 y Fn(t)216 b Fo(Remo)o(v)o(e)15 b(all)h(leading)h
(pathname)e(comp)q(onen)o(ts,)g(lea)o(ving)h(the)f(tail.)75
-1931 y Fl(r)216 b Fm(Remo)o(v)o(e)15 b(a)g(trailing)h(su\016x)f(of)g
-(the)g(form)g(`)p Fl(.)p Fh(su\016x)s Fm(',)f(lea)o(ving)i(the)f
-(basename.)75 2009 y Fl(e)216 b Fm(Remo)o(v)o(e)15 b(all)h(but)g(the)f
-(trailing)h(su\016x.)75 2087 y Fl(p)216 b Fm(Prin)o(t)15
+1931 y Fn(r)216 b Fo(Remo)o(v)o(e)15 b(a)g(trailing)h(su\016x)f(of)g
+(the)g(form)g(`)p Fn(.)p Fj(su\016x)s Fo(',)f(lea)o(ving)i(the)f
+(basename.)75 2009 y Fn(e)216 b Fo(Remo)o(v)o(e)15 b(all)h(but)g(the)f
+(trailing)h(su\016x.)75 2087 y Fn(p)216 b Fo(Prin)o(t)15
b(the)g(new)h(command)f(but)g(do)g(not)g(execute)h(it.)75
-2164 y Fl(s/)p Fh(old)r Fl(/)p Fh(new)t Fl(/)315 2219
-y Fm(Substitute)h Fh(new)j Fm(for)c(the)h(\014rst)e(o)q(ccurrence)j(of)
-e Fh(old)i Fm(in)f(the)g(ev)o(en)o(t)f(line.)25 b(An)o(y)16
+2164 y Fn(s/)p Fj(old)r Fn(/)p Fj(new)t Fn(/)315 2219
+y Fo(Substitute)h Fj(new)j Fo(for)c(the)h(\014rst)e(o)q(ccurrence)j(of)
+e Fj(old)i Fo(in)f(the)g(ev)o(en)o(t)f(line.)25 b(An)o(y)16
b(delimiter)315 2274 y(ma)o(y)c(b)q(e)h(used)g(in)g(place)g(of)f(`)p
-Fl(/)p Fm('.)18 b(The)13 b(delimiter)h(ma)o(y)e(b)q(e)h(quoted)f(in)i
-Fh(old)g Fm(and)f Fh(new)k Fm(with)12 b(a)315 2329 y(single)j(bac)o
-(kslash.)20 b(If)15 b(`)p Fl(&)p Fm(')e(app)q(ears)h(in)h
-Fh(new)p Fm(,)f(it)g(is)h(replaced)g(b)o(y)f Fh(old)p
-Fm(.)20 b(A)14 b(single)i(bac)o(kslash)315 2383 y(will)j(quote)e(the)h
-(`)p Fl(&)p Fm('.)25 b(The)17 b(\014nal)i(delimiter)g(is)f(optional)g
+Fn(/)p Fo('.)18 b(The)13 b(delimiter)h(ma)o(y)e(b)q(e)h(quoted)f(in)i
+Fj(old)g Fo(and)f Fj(new)k Fo(with)12 b(a)315 2329 y(single)j(bac)o
+(kslash.)20 b(If)15 b(`)p Fn(&)p Fo(')e(app)q(ears)h(in)h
+Fj(new)p Fo(,)f(it)g(is)h(replaced)g(b)o(y)f Fj(old)p
+Fo(.)20 b(A)14 b(single)i(bac)o(kslash)315 2383 y(will)j(quote)e(the)h
+(`)p Fn(&)p Fo('.)25 b(The)17 b(\014nal)i(delimiter)g(is)f(optional)g
(if)f(it)h(is)g(the)f(last)g(c)o(haracter)g(on)315 2438
-y(the)e(input)h(line.)75 2516 y Fl(&)216 b Fm(Rep)q(eat)16
-b(the)f(previous)h(substitution.)75 2594 y Fl(g)216 b
-Fm(Cause)19 b(c)o(hanges)h(to)e(b)q(e)i(applied)h(o)o(v)o(er)e(the)g
+y(the)e(input)h(line.)75 2516 y Fn(&)216 b Fo(Rep)q(eat)16
+b(the)f(previous)h(substitution.)75 2594 y Fn(g)216 b
+Fo(Cause)19 b(c)o(hanges)h(to)e(b)q(e)i(applied)h(o)o(v)o(er)e(the)g
(en)o(tire)h(ev)o(en)o(t)f(line.)34 b(Used)20 b(in)g(conjunction)315
-2648 y(with)c(`)p Fl(s)p Fm(',)d(as)i(in)h Fl(gs/)p Fh(old)r
-Fl(/)p Fh(new)t Fl(/)p Fm(,)f(or)g(with)g(`)p Fl(&)p
-Fm('.)p eop
+2648 y(with)c(`)p Fn(s)p Fo(',)d(as)i(in)h Fn(gs/)p Fj(old)r
+Fn(/)p Fj(new)t Fn(/)p Fo(,)f(or)g(with)g(`)p Fn(&)p
+Fo('.)p eop
%%Page: 3 5
-3 4 bop 75 -58 a Fm(Chapter)15 b(2:)k(Programming)c(with)g(GNU)g
-(History)889 b(3)75 183 y Fi(2)41 b(Programming)28 b(with)e(GNU)i
-(History)137 323 y Fm(This)16 b(c)o(hapter)e(describ)q(es)j(ho)o(w)d
+3 4 bop 75 -58 a Fo(Chapter)15 b(2:)k(Programming)c(with)g(GNU)g
+(History)889 b(3)75 183 y Fk(2)41 b(Programming)28 b(with)e(GNU)i
+(History)137 323 y Fo(This)16 b(c)o(hapter)e(describ)q(es)j(ho)o(w)d
(to)g(in)o(terface)h(programs)e(that)h(y)o(ou)h(write)g(with)g(the)g
(GNU)f(History)75 378 y(Library)l(.)24 b(It)17 b(should)g(b)q(e)g
(considered)h(a)e(tec)o(hnical)i(guide.)25 b(F)l(or)15
b(information)i(on)f(the)h(in)o(teractiv)o(e)g(use)75
-433 y(of)e(GNU)g(History)l(,)g(see)g Fj(h)p Fm(unde\014ned)p
-Fj(i)i Fm([Using)e(History)g(In)o(teractiv)o(ely],)g(page)g
-Fj(h)p Fm(unde\014ned)p Fj(i)p Fm(.)75 581 y Fk(2.1)33
-b(In)n(tro)r(duction)24 b(to)e(History)137 685 y Fm(Man)o(y)c(programs)
+433 y(of)e(GNU)g(History)l(,)g(see)g(Chapter)g(1)g([Using)g(History)g
+(In)o(teractiv)o(ely],)h(page)f(1.)75 581 y Fm(2.1)33
+b(In)n(tro)r(duction)24 b(to)e(History)137 685 y Fo(Man)o(y)c(programs)
g(read)h(input)g(from)f(the)h(user)g(a)f(line)j(at)d(a)g(time.)31
b(The)19 b(GNU)g(History)f(library)75 740 y(is)k(able)g(to)e(k)o(eep)i
(trac)o(k)e(of)h(those)g(lines,)j(asso)q(ciate)d(arbitrary)g(data)f
@@ -1581,7 +1647,7 @@ m(ailable)h(functions)g(for)e(remem)o(b)q(ering)h(lines)75
(hing)75 979 y(through)17 b(the)h(list)g(for)f(a)h(line)h(con)o
(taining)f(an)g(arbitrary)f(text)g(string,)h(and)g(referencing)h(an)o
(y)e(line)i(in)75 1034 y(the)c(list)i(directly)l(.)22
-b(In)16 b(addition,)g(a)f(history)g Fh(expansion)h Fm(function)h(is)e
+b(In)16 b(addition,)g(a)f(history)g Fj(expansion)h Fo(function)h(is)e
(a)o(v)m(ailable)i(whic)o(h)g(pro)o(vides)f(for)e(a)75
1089 y(consisten)o(t)h(user)h(in)o(terface)f(across)g(di\013eren)o(t)g
(programs.)137 1164 y(The)f(user)h(using)f(programs)f(written)h(with)g
@@ -1591,20 +1657,20 @@ b(In)16 b(addition,)g(a)f(history)g Fh(expansion)h Fm(function)h(is)e
(previous)75 1273 y(lines)c(and)f(using)h(that)e(text)g(in)i(new)f
(commands.)19 b(The)14 b(basic)h(history)e(manipulation)j(commands)d
(are)75 1328 y(similar)j(to)f(the)g(history)g(substitution)h(pro)o
-(vided)g(b)o(y)g Fl(csh)p Fm(.)137 1403 y(If)f(the)g(programmer)f
+(vided)g(b)o(y)g Fn(csh)p Fo(.)137 1403 y(If)f(the)g(programmer)f
(desires,)h(he)g(can)g(use)g(the)g(Readline)i(library)l(,)f(whic)o(h)f
(includes)j(some)c(history)75 1458 y(manipulation)j(b)o(y)e(default,)g
(and)h(has)f(the)g(added)h(adv)m(an)o(tage)f(of)f(command)h(line)i
-(editing.)75 1606 y Fk(2.2)33 b(History)22 b(Storage)137
-1710 y Fm(The)16 b(history)f(list)h(is)g(an)f(arra)o(y)f(of)g(history)i
+(editing.)75 1606 y Fm(2.2)33 b(History)22 b(Storage)137
+1710 y Fo(The)16 b(history)f(list)h(is)g(an)f(arra)o(y)f(of)g(history)i
(en)o(tries.)k(A)15 b(history)g(en)o(try)g(is)h(declared)g(as)f(follo)o
-(ws:)195 1782 y Fl(typedef)23 b(struct)g(_hist_entry)f({)243
+(ws:)195 1782 y Fn(typedef)23 b(struct)g(_hist_entry)f({)243
1834 y(char)h(*line;)243 1886 y(char)g(*data;)195 1938
-y(})h(HIST_ENTRY;)137 2013 y Fm(The)16 b(history)f(list)h(itself)g
+y(})h(HIST_ENTRY;)137 2013 y Fo(The)16 b(history)f(list)h(itself)g
(migh)o(t)f(therefore)g(b)q(e)h(declared)g(as)195 2085
-y Fl(HIST_ENTRY)22 b(**the_history_list;)137 2160 y Fm(The)16
+y Fn(HIST_ENTRY)22 b(**the_history_list;)137 2160 y Fo(The)16
b(state)e(of)h(the)g(History)g(library)h(is)g(encapsulated)g(in)o(to)f
-(a)g(single)i(structure:)195 2232 y Fl(/*)24 b(A)f(structure)g(used)g
+(a)g(single)i(structure:)195 2232 y Fn(/*)24 b(A)f(structure)g(used)g
(to)h(pass)f(the)h(current)f(state)g(of)g(the)h(history)f(stuff)g
(around.)g(*/)p 2033 2242 21 42 v 195 2284 a(typedef)g(struct)g
(_hist_state)f({)243 2336 y(HIST_ENTRY)g(**entries;)214
@@ -1615,337 +1681,334 @@ b(/*)23 b(Number)g(of)h(elements)f(within)g(this)g(array.)g(*/)p
1985 2449 V 243 2491 a(int)g(size;)501 b(/*)23 b(Number)g(of)h(slots)f
(allocated)g(to)g(this)h(array.)f(*/)p 2057 2501 V 243
2543 a(int)g(flags;)195 2595 y(})h(HISTORY_STATE;)137
-2670 y Fm(If)16 b(the)f(\015ags)g(mem)o(b)q(er)g(includes)j
-Fl(HS_STIFLED)p Fm(,)13 b(the)i(history)h(has)f(b)q(een)h(sti\015ed.)p
+2670 y Fo(If)16 b(the)f(\015ags)g(mem)o(b)q(er)g(includes)j
+Fn(HS_STIFLED)p Fo(,)13 b(the)i(history)h(has)f(b)q(een)h(sti\015ed.)p
eop
%%Page: 4 6
-4 5 bop 75 -58 a Fm(4)1347 b(GNU)15 b(History)g(Library)75
-183 y Fk(2.3)33 b(History)22 b(F)-6 b(unctions)137 278
-y Fm(This)21 b(section)g(describ)q(es)h(the)f(calling)h(sequence)g(for)
+4 5 bop 75 -58 a Fo(4)1347 b(GNU)15 b(History)g(Library)75
+183 y Fm(2.3)33 b(History)22 b(F)-6 b(unctions)137 278
+y Fo(This)21 b(section)g(describ)q(es)h(the)f(calling)h(sequence)g(for)
e(the)g(v)m(arious)h(functions)g(presen)o(t)g(in)g(GNU)75
-333 y(History)l(.)75 441 y Fg(2.3.1)30 b(Initializing)20
-b(History)h(and)f(State)g(Managemen)n(t)137 536 y Fm(This)e(section)g
+333 y(History)l(.)75 441 y Fi(2.3.1)30 b(Initializing)20
+b(History)h(and)f(State)g(Managemen)n(t)137 536 y Fo(This)e(section)g
(describ)q(es)h(functions)f(used)g(to)e(initialize)21
b(and)c(manage)g(the)g(state)g(of)g(the)g(History)75
591 y(library)f(when)g(y)o(ou)f(w)o(an)o(t)f(to)g(use)i(the)f(history)g
(functions)h(in)g(y)o(our)f(program.)1650 679 y(F)l(unction)-1749
-b Ff(void)20 b Fe(using)p 333 679 18 3 v 20 w(history)j
-Fd(\(\))195 734 y Fm(Begin)18 b(a)f(session)h(in)g(whic)o(h)g(the)g
+b Fh(void)20 b Fg(using)p 333 679 18 3 v 20 w(history)j
+Ff(\(\))195 734 y Fo(Begin)18 b(a)f(session)h(in)g(whic)o(h)g(the)g
(history)f(functions)h(migh)o(t)f(b)q(e)h(used.)27 b(This)18
b(initializes)195 788 y(the)d(in)o(teractiv)o(e)h(v)m(ariables.)1650
-877 y(F)l(unction)-1749 b Ff(HISTORY_STATE)21 b(*)e Fe(history)p
+877 y(F)l(unction)-1749 b Fh(HISTORY_STATE)21 b(*)e Fg(history)p
657 877 V 21 w(get)p 755 877 V 21 w(history)p 951 877
-V 21 w(state)j Fd(\(\))195 931 y Fm(Return)16 b(a)f(structure)g
+V 21 w(state)j Ff(\(\))195 931 y Fo(Return)16 b(a)f(structure)g
(describing)i(the)e(curren)o(t)g(state)f(of)h(the)g(input)i(history)l
-(.)1650 1019 y(F)l(unction)-1749 b Ff(void)20 b Fe(history)p
+(.)1650 1019 y(F)l(unction)-1749 b Fh(void)20 b Fg(history)p
377 1019 V 20 w(set)p 468 1019 V 21 w(history)p 664 1019
-V 21 w(state)j Fd(\()p Fl(HISTORY_STATE)13 b(*state)p
-Fd(\))195 1074 y Fm(Set)i(the)h(state)e(of)h(the)g(history)g(list)h
-(according)g(to)e Fh(state)p Fm(.)75 1182 y Fg(2.3.2)30
-b(History)20 b(List)h(Managemen)n(t)137 1277 y Fm(These)11
+V 21 w(state)j Ff(\()p Fn(HISTORY_STATE)13 b(*state)p
+Ff(\))195 1074 y Fo(Set)i(the)h(state)e(of)h(the)g(history)g(list)h
+(according)g(to)e Fj(state)p Fo(.)75 1182 y Fi(2.3.2)30
+b(History)20 b(List)h(Managemen)n(t)137 1277 y Fo(These)11
b(functions)h(manage)e(individual)k(en)o(tries)d(on)g(the)g(history)f
(list,)i(or)f(set)f(parameters)g(managing)75 1332 y(the)15
-b(list)h(itself.)1650 1420 y(F)l(unction)-1749 b Ff(void)20
-b Fe(add)p 294 1420 V 20 w(history)j Fd(\()p Fl(char)14
-b(*string)p Fd(\))195 1475 y Fm(Place)i Fh(string)j Fm(at)c(the)g(end)i
+b(list)h(itself.)1650 1420 y(F)l(unction)-1749 b Fh(void)20
+b Fg(add)p 294 1420 V 20 w(history)j Ff(\()p Fn(char)14
+b(*string)p Ff(\))195 1475 y Fo(Place)i Fj(string)j Fo(at)c(the)g(end)i
(of)d(the)i(history)f(list.)22 b(The)15 b(asso)q(ciated)h(data)f
(\014eld)h(\(if)g(an)o(y\))e(is)195 1530 y(set)h(to)g
-Fl(NULL)p Fm(.)1650 1618 y(F)l(unction)-1749 b Ff(HIST_ENTRY)21
-b(*)e Fe(remo)n(v)n(e)p 584 1618 V 20 w(history)k Fd(\()p
-Fl(int)14 b(which)p Fd(\))195 1673 y Fm(Remo)o(v)o(e)g(history)g(en)o
-(try)f(at)h(o\013set)f Fh(whic)o(h)h Fm(from)g(the)g(history)l(.)19
+Fn(NULL)p Fo(.)1650 1618 y(F)l(unction)-1749 b Fh(HIST_ENTRY)21
+b(*)e Fg(remo)n(v)n(e)p 584 1618 V 20 w(history)k Ff(\()p
+Fn(int)14 b(which)p Ff(\))195 1673 y Fo(Remo)o(v)o(e)g(history)g(en)o
+(try)f(at)h(o\013set)f Fj(whic)o(h)h Fo(from)g(the)g(history)l(.)19
b(The)14 b(remo)o(v)o(ed)g(elemen)o(t)g(is)195 1727 y(returned)i(so)e
(y)o(ou)h(can)h(free)f(the)g(line,)i(data,)d(and)h(con)o(taining)h
-(structure.)1650 1816 y(F)l(unction)-1749 b Ff(HIST_ENTRY)21
-b(*)e Fe(replace)p 580 1816 V 22 w(history)p 777 1816
-V 20 w(en)n(try)24 b Fd(\()p Fl(int)14 b(which,)g(char)283
-1870 y(*line,)g(char)g(*data)p Fd(\))195 1925 y Fm(Mak)o(e)f(the)h
-(history)f(en)o(try)g(at)g(o\013set)g Fh(whic)o(h)h Fm(ha)o(v)o(e)g
-Fh(line)k Fm(and)13 b Fh(data)p Fm(.)19 b(This)14 b(returns)g(the)f
+(structure.)1650 1816 y(F)l(unction)-1749 b Fh(HIST_ENTRY)21
+b(*)e Fg(replace)p 580 1816 V 22 w(history)p 777 1816
+V 20 w(en)n(try)24 b Ff(\()p Fn(int)14 b(which,)g(char)283
+1870 y(*line,)g(char)g(*data)p Ff(\))195 1925 y Fo(Mak)o(e)f(the)h
+(history)f(en)o(try)g(at)g(o\013set)g Fj(whic)o(h)h Fo(ha)o(v)o(e)g
+Fj(line)k Fo(and)13 b Fj(data)p Fo(.)19 b(This)14 b(returns)g(the)f
(old)195 1980 y(en)o(try)k(so)g(y)o(ou)g(can)g(disp)q(ose)i(of)d(the)i
(data.)25 b(In)18 b(the)f(case)h(of)f(an)g(in)o(v)m(alid)i
-Fh(whic)o(h)p Fm(,)g(a)e Fl(NULL)195 2035 y Fm(p)q(oin)o(ter)f(is)f
-(returned.)1650 2123 y(F)l(unction)-1749 b Ff(void)20
-b Fe(clear)p 320 2123 V 21 w(history)j Fd(\(\))195 2178
-y Fm(Clear)15 b(the)h(history)f(list)h(b)o(y)f(deleting)i(all)f(the)f
-(en)o(tries.)1650 2266 y(F)l(unction)-1749 b Ff(void)20
-b Fe(sti\015e)p 320 2266 V 21 w(history)j Fd(\()p Fl(int)14
-b(max)p Fd(\))195 2321 y Fm(Sti\015e)i(the)f(history)h(list,)f(remem)o
-(b)q(ering)h(only)g(the)f(last)g Fh(max)j Fm(en)o(tries.)1650
-2409 y(F)l(unction)-1749 b Ff(int)20 b Fe(unsti\015e)p
-358 2409 V 21 w(history)i Fd(\(\))195 2463 y Fm(Stop)e(sti\015ing)i
+Fj(whic)o(h)p Fo(,)g(a)e Fn(NULL)195 2035 y Fo(p)q(oin)o(ter)f(is)f
+(returned.)1650 2123 y(F)l(unction)-1749 b Fh(void)20
+b Fg(clear)p 320 2123 V 21 w(history)j Ff(\(\))195 2178
+y Fo(Clear)15 b(the)h(history)f(list)h(b)o(y)f(deleting)i(all)f(the)f
+(en)o(tries.)1650 2266 y(F)l(unction)-1749 b Fh(void)20
+b Fg(sti\015e)p 320 2266 V 21 w(history)j Ff(\()p Fn(int)14
+b(max)p Ff(\))195 2321 y Fo(Sti\015e)i(the)f(history)h(list,)f(remem)o
+(b)q(ering)h(only)g(the)f(last)g Fj(max)j Fo(en)o(tries.)1650
+2409 y(F)l(unction)-1749 b Fh(int)20 b Fg(unsti\015e)p
+358 2409 V 21 w(history)i Ff(\(\))195 2463 y Fo(Stop)e(sti\015ing)i
(the)f(history)l(.)36 b(This)21 b(returns)g(the)f(previous)i(amoun)o(t)
e(the)g(history)h(w)o(as)195 2518 y(sti\015ed.)g(The)15
b(v)m(alue)i(is)e(p)q(ositiv)o(e)i(if)e(the)g(history)h(w)o(as)e
(sti\015ed,)i(negativ)o(e)f(if)h(it)f(w)o(asn't.)1650
-2606 y(F)l(unction)-1749 b Ff(int)20 b Fe(history)p 351
-2606 V 20 w(is)p 409 2606 V 21 w(sti\015ed)k Fd(\(\))195
-2661 y Fm(Returns)16 b(non-zero)f(if)h(the)f(history)g(is)h(sti\015ed,)
+2606 y(F)l(unction)-1749 b Fh(int)20 b Fg(history)p 351
+2606 V 20 w(is)p 409 2606 V 21 w(sti\015ed)k Ff(\(\))195
+2661 y Fo(Returns)16 b(non-zero)f(if)h(the)f(history)g(is)h(sti\015ed,)
g(zero)f(if)g(it)h(is)g(not.)p eop
%%Page: 5 7
-5 6 bop 75 -58 a Fm(Chapter)15 b(2:)k(Programming)c(with)g(GNU)g
-(History)889 b(5)75 183 y Fg(2.3.3)30 b(Information)19
-b(Ab)r(out)i(the)f(History)h(List)137 279 y Fm(These)13
+5 6 bop 75 -58 a Fo(Chapter)15 b(2:)k(Programming)c(with)g(GNU)g
+(History)889 b(5)75 183 y Fi(2.3.3)30 b(Information)19
+b(Ab)r(out)i(the)f(History)h(List)137 279 y Fo(These)13
b(functions)h(return)f(information)g(ab)q(out)f(the)h(en)o(tire)h
(history)e(list)i(or)e(individual)k(list)e(en)o(tries.)1650
-371 y(F)l(unction)-1749 b Ff(HIST_ENTRY)21 b(**)e Fe(history)p
-605 371 18 3 v 21 w(list)24 b Fd(\(\))195 426 y Fm(Return)f(a)g
-Fl(NULL)f Fm(terminated)g(arra)o(y)g(of)g Fl(HIST_ENTRY)f
-Fm(whic)o(h)j(is)f(the)f(curren)o(t)h(input)195 481 y(history)l(.)j
+371 y(F)l(unction)-1749 b Fh(HIST_ENTRY)21 b(**)e Fg(history)p
+605 371 18 3 v 21 w(list)24 b Ff(\(\))195 426 y Fo(Return)f(a)g
+Fn(NULL)f Fo(terminated)g(arra)o(y)g(of)g Fn(HIST_ENTRY)f
+Fo(whic)o(h)j(is)f(the)f(curren)o(t)h(input)195 481 y(history)l(.)j
(Elemen)o(t)18 b(0)e(of)h(this)h(list)g(is)f(the)h(b)q(eginning)h(of)e
(time.)26 b(If)17 b(there)g(is)h(no)f(history)l(,)195
-535 y(return)e Fl(NULL)p Fm(.)1650 627 y(F)l(unction)-1749
-b Ff(int)20 b Fe(where)p 325 627 V 20 w(history)j Fd(\(\))195
-682 y Fm(Returns)16 b(the)f(o\013set)f(of)h(the)g(curren)o(t)g(history)
-g(elemen)o(t.)1650 773 y(F)l(unction)-1749 b Ff(HIST_ENTRY)21
-b(*)e Fe(curren)n(t)p 587 773 V 21 w(history)k Fd(\(\))195
-828 y Fm(Return)g(the)f(history)g(en)o(try)g(at)f(the)h(curren)o(t)g(p)
-q(osition,)j(as)c(determined)j(b)o(y)e Fl(where_)195
-883 y(history)14 b(\(\))p Fm(.)20 b(If)15 b(there)g(is)h(no)f(en)o(try)
-g(there,)g(return)g(a)g Fl(NULL)g Fm(p)q(oin)o(ter.)1650
-975 y(F)l(unction)-1749 b Ff(HIST_ENTRY)21 b(*)e Fe(history)p
-579 975 V 21 w(get)j Fd(\()p Fl(int)15 b(offset)p Fd(\))195
-1029 y Fm(Return)21 b(the)g(history)g(en)o(try)f(at)g(p)q(osition)i
-Fh(o\013set)p Fm(,)e(starting)g(from)g Fl(history_base)p
-Fm(.)35 b(If)195 1084 y(there)16 b(is)h(no)g(en)o(try)f(there,)g(or)g
-(if)g Fh(o\013set)h Fm(is)g(greater)e(than)h(the)h(history)f(length,)h
-(return)f(a)195 1139 y Fl(NULL)f Fm(p)q(oin)o(ter.)1650
-1231 y(F)l(unction)-1749 b Ff(int)20 b Fe(history)p 351
-1231 V 20 w(total)p 487 1231 V 22 w(b)n(ytes)j Fd(\(\))195
-1285 y Fm(Return)c(the)f(n)o(um)o(b)q(er)g(of)g(b)o(ytes)g(that)f(the)h
+535 y(return)e Fn(NULL)p Fo(.)1650 627 y(F)l(unction)-1749
+b Fh(int)20 b Fg(where)p 325 627 V 20 w(history)j Ff(\(\))195
+682 y Fo(Returns)16 b(the)f(o\013set)f(of)h(the)g(curren)o(t)g(history)
+g(elemen)o(t.)1650 773 y(F)l(unction)-1749 b Fh(HIST_ENTRY)21
+b(*)e Fg(curren)n(t)p 587 773 V 21 w(history)k Ff(\(\))195
+828 y Fo(Return)g(the)f(history)g(en)o(try)g(at)f(the)h(curren)o(t)g(p)
+q(osition,)j(as)c(determined)j(b)o(y)e Fn(where_)195
+883 y(history)14 b(\(\))p Fo(.)20 b(If)15 b(there)g(is)h(no)f(en)o(try)
+g(there,)g(return)g(a)g Fn(NULL)g Fo(p)q(oin)o(ter.)1650
+975 y(F)l(unction)-1749 b Fh(HIST_ENTRY)21 b(*)e Fg(history)p
+579 975 V 21 w(get)j Ff(\()p Fn(int)15 b(offset)p Ff(\))195
+1029 y Fo(Return)21 b(the)g(history)g(en)o(try)f(at)g(p)q(osition)i
+Fj(o\013set)p Fo(,)e(starting)g(from)g Fn(history_base)p
+Fo(.)35 b(If)195 1084 y(there)16 b(is)h(no)g(en)o(try)f(there,)g(or)g
+(if)g Fj(o\013set)h Fo(is)g(greater)e(than)h(the)h(history)f(length,)h
+(return)f(a)195 1139 y Fn(NULL)f Fo(p)q(oin)o(ter.)1650
+1231 y(F)l(unction)-1749 b Fh(int)20 b Fg(history)p 351
+1231 V 20 w(total)p 487 1231 V 22 w(b)n(ytes)j Ff(\(\))195
+1285 y Fo(Return)c(the)f(n)o(um)o(b)q(er)g(of)g(b)o(ytes)g(that)f(the)h
(primary)h(history)f(en)o(tries)g(are)g(using.)29 b(This)195
1340 y(function)16 b(returns)f(the)g(sum)h(of)e(the)i(lengths)f(of)g
(all)h(the)g(lines)g(in)g(the)g(history)l(.)75 1452 y
-Fg(2.3.4)30 b(Mo)n(ving)21 b(Around)f(the)h(History)g(List)137
-1548 y Fm(These)16 b(functions)g(allo)o(w)f(the)g(curren)o(t)h(index)g
+Fi(2.3.4)30 b(Mo)n(ving)21 b(Around)f(the)h(History)g(List)137
+1548 y Fo(These)16 b(functions)g(allo)o(w)f(the)g(curren)o(t)h(index)g
(in)o(to)f(the)h(history)f(list)h(to)e(b)q(e)i(set)f(or)g(c)o(hanged.)
-1650 1640 y(F)l(unction)-1749 b Ff(int)20 b Fe(history)p
-351 1640 V 20 w(set)p 442 1640 V 21 w(p)r(os)h Fd(\()p
-Fl(int)15 b(pos)p Fd(\))195 1694 y Fm(Set)g(the)h(p)q(osition)g(in)g
-(the)f(history)g(list)h(to)f Fh(p)q(os)p Fm(,)g(an)g(absolute)g(index)i
+1650 1640 y(F)l(unction)-1749 b Fh(int)20 b Fg(history)p
+351 1640 V 20 w(set)p 442 1640 V 21 w(p)r(os)h Ff(\()p
+Fn(int)15 b(pos)p Ff(\))195 1694 y Fo(Set)g(the)h(p)q(osition)g(in)g
+(the)f(history)g(list)h(to)f Fj(p)q(os)p Fo(,)g(an)g(absolute)g(index)i
(in)o(to)e(the)g(list.)1650 1786 y(F)l(unction)-1749
-b Ff(HIST_ENTRY)21 b(*)e Fe(previous)p 615 1786 V 20
-w(history)k Fd(\(\))195 1841 y Fm(Bac)o(k)17 b(up)h(the)f(curren)o(t)g
+b Fh(HIST_ENTRY)21 b(*)e Fg(previous)p 615 1786 V 20
+w(history)k Ff(\(\))195 1841 y Fo(Bac)o(k)17 b(up)h(the)f(curren)o(t)g
(history)g(o\013set)f(to)h(the)g(previous)h(history)f(en)o(try)l(,)g
(and)g(return)g(a)195 1896 y(p)q(oin)o(ter)f(to)e(that)h(en)o(try)l(.)k
(If)d(there)f(is)h(no)f(previous)h(en)o(try)l(,)f(return)g(a)g
-Fl(NULL)f Fm(p)q(oin)o(ter.)1650 1987 y(F)l(unction)-1749
-b Ff(HIST_ENTRY)21 b(*)e Fe(next)p 514 1987 V 21 w(history)k
-Fd(\(\))195 2042 y Fm(Mo)o(v)o(e)17 b(the)h(curren)o(t)g(history)f
+Fn(NULL)f Fo(p)q(oin)o(ter.)1650 1987 y(F)l(unction)-1749
+b Fh(HIST_ENTRY)21 b(*)e Fg(next)p 514 1987 V 21 w(history)k
+Ff(\(\))195 2042 y Fo(Mo)o(v)o(e)17 b(the)h(curren)o(t)g(history)f
(o\013set)g(forw)o(ard)g(to)g(the)h(next)g(history)g(en)o(try)l(,)g
(and)g(return)195 2097 y(the)d(a)g(p)q(oin)o(ter)h(to)e(that)h(en)o
(try)l(.)20 b(If)15 b(there)g(is)h(no)f(next)g(en)o(try)l(,)g(return)g
-(a)g Fl(NULL)g Fm(p)q(oin)o(ter.)75 2208 y Fg(2.3.5)30
-b(Searc)n(hing)21 b(the)f(History)h(List)137 2304 y Fm(These)14
+(a)g Fn(NULL)g Fo(p)q(oin)o(ter.)75 2208 y Fi(2.3.5)30
+b(Searc)n(hing)21 b(the)f(History)h(List)137 2304 y Fo(These)14
b(functions)g(allo)o(w)g(searc)o(hing)g(of)e(the)i(history)f(list)h
(for)f(en)o(tries)h(con)o(taining)g(a)f(sp)q(eci\014c)i(string.)75
2359 y(Searc)o(hing)f(ma)o(y)g(b)q(e)g(p)q(erformed)g(b)q(oth)g(forw)o
(ard)e(and)i(bac)o(kw)o(ard)f(from)g(the)h(curren)o(t)g(history)f(p)q
(osition.)75 2414 y(The)j(searc)o(h)f(ma)o(y)g(b)q(e)i
-Fh(anc)o(hored)p Fm(,)e(meaning)h(that)f(the)h(string)g(m)o(ust)f(matc)
+Fj(anc)o(hored)p Fo(,)e(meaning)h(that)f(the)h(string)g(m)o(ust)f(matc)
o(h)g(at)g(the)h(b)q(eginning)i(of)d(the)75 2469 y(history)g(en)o(try)l
-(.)1650 2560 y(F)l(unction)-1749 b Ff(int)20 b Fe(history)p
-351 2560 V 20 w(searc)n(h)j Fd(\()p Fl(char)14 b(*string,)g(int)h
-(direction)p Fd(\))195 2615 y Fm(Searc)o(h)g(the)h(history)f(for)f
-Fh(string)p Fm(,)h(starting)f(at)h(the)g(curren)o(t)g(history)g
-(o\013set.)k(If)d Fh(direction)195 2670 y Fl(<)j Fm(0,)g(then)g(the)h
+(.)1650 2560 y(F)l(unction)-1749 b Fh(int)20 b Fg(history)p
+351 2560 V 20 w(searc)n(h)j Ff(\()p Fn(char)14 b(*string,)g(int)h
+(direction)p Ff(\))195 2615 y Fo(Searc)o(h)g(the)h(history)f(for)f
+Fj(string)p Fo(,)h(starting)f(at)h(the)g(curren)o(t)g(history)g
+(o\013set.)k(If)d Fj(direction)195 2670 y Fn(<)j Fo(0,)g(then)g(the)h
(searc)o(h)e(is)i(through)e(previous)i(en)o(tries,)g(else)g(through)f
(subsequen)o(t.)32 b(If)p eop
%%Page: 6 8
-6 7 bop 75 -58 a Fm(6)1347 b(GNU)15 b(History)g(Library)195
-183 y Fh(string)k Fm(is)d(found,)f(then)h(the)f(curren)o(t)g(history)g
+6 7 bop 75 -58 a Fo(6)1347 b(GNU)15 b(History)g(Library)195
+183 y Fj(string)k Fo(is)d(found,)f(then)h(the)f(curren)o(t)g(history)g
(index)i(is)f(set)f(to)f(that)h(history)g(en)o(try)l(,)g(and)195
238 y(the)g(v)m(alue)h(returned)f(is)g(the)g(o\013set)f(in)h(the)g
-(line)h(of)e(the)h(en)o(try)g(where)g Fh(string)j Fm(w)o(as)c(found.)
+(line)h(of)e(the)h(en)o(try)g(where)g Fj(string)j Fo(w)o(as)c(found.)
195 293 y(Otherwise,)i(nothing)f(is)h(c)o(hanged,)f(and)h(a)e(-1)h(is)h
-(returned.)1650 396 y(F)l(unction)-1749 b Ff(int)20 b
-Fe(history)p 351 396 18 3 v 20 w(searc)n(h)p 527 396
-V 21 w(pre\014x)i Fd(\()p Fl(char)15 b(*string,)f(int)g(direction)p
-Fd(\))195 451 y Fm(Searc)o(h)i(the)f(history)g(for)g
-Fh(string)p Fm(,)g(starting)g(at)g(the)g(curren)o(t)h(history)f
+(returned.)1650 396 y(F)l(unction)-1749 b Fh(int)20 b
+Fg(history)p 351 396 18 3 v 20 w(searc)n(h)p 527 396
+V 21 w(pre\014x)i Ff(\()p Fn(char)15 b(*string,)f(int)g(direction)p
+Ff(\))195 451 y Fo(Searc)o(h)i(the)f(history)g(for)g
+Fj(string)p Fo(,)g(starting)g(at)g(the)g(curren)o(t)h(history)f
(o\013set.)k(The)d(searc)o(h)195 506 y(is)h(anc)o(hored:)23
b(matc)o(hing)17 b(lines)h(m)o(ust)e(b)q(egin)i(with)f
-Fh(string)p Fm(.)25 b(If)17 b Fh(direction)h Fl(<)e Fm(0,)h(then)g(the)
+Fj(string)p Fo(.)25 b(If)17 b Fj(direction)h Fn(<)e Fo(0,)h(then)g(the)
195 560 y(searc)o(h)f(is)g(through)f(previous)i(en)o(tries,)f(else)g
-(through)g(subsequen)o(t.)22 b(If)16 b Fh(string)k Fm(is)c(found,)195
+(through)g(subsequen)o(t.)22 b(If)16 b Fj(string)k Fo(is)c(found,)195
615 y(then)i(the)g(curren)o(t)g(history)g(index)h(is)g(set)e(to)h(that)
f(en)o(try)l(,)h(and)g(the)g(return)g(v)m(alue)h(is)g(0.)195
670 y(Otherwise,)d(nothing)f(is)h(c)o(hanged,)f(and)h(a)e(-1)h(is)h
-(returned.)1650 773 y(F)l(unction)-1749 b Ff(int)20 b
-Fe(history)p 351 773 V 20 w(searc)n(h)p 527 773 V 21
-w(p)r(os)h Fd(\()p Fl(char)15 b(*string,)f(int)g(direction,)g(int)283
-828 y(pos)p Fd(\))195 883 y Fm(Searc)o(h)h(for)g Fh(string)k
-Fm(in)d(the)f(history)g(list,)g(starting)g(at)f Fh(p)q(os)p
-Fm(,)h(an)g(absolute)g(index)i(in)o(to)e(the)195 937
-y(list.)21 b(If)15 b Fh(direction)h Fm(is)g(negativ)o(e,)f(the)g(searc)
-o(h)g(pro)q(ceeds)g(bac)o(kw)o(ard)g(from)f Fh(p)q(os)p
-Fm(,)h(otherwise)195 992 y(forw)o(ard.)27 b(Returns)18
+(returned.)1650 773 y(F)l(unction)-1749 b Fh(int)20 b
+Fg(history)p 351 773 V 20 w(searc)n(h)p 527 773 V 21
+w(p)r(os)h Ff(\()p Fn(char)15 b(*string,)f(int)g(direction,)g(int)283
+828 y(pos)p Ff(\))195 883 y Fo(Searc)o(h)h(for)g Fj(string)k
+Fo(in)d(the)f(history)g(list,)g(starting)g(at)f Fj(p)q(os)p
+Fo(,)h(an)g(absolute)g(index)i(in)o(to)e(the)195 937
+y(list.)21 b(If)15 b Fj(direction)h Fo(is)g(negativ)o(e,)f(the)g(searc)
+o(h)g(pro)q(ceeds)g(bac)o(kw)o(ard)g(from)f Fj(p)q(os)p
+Fo(,)h(otherwise)195 992 y(forw)o(ard.)27 b(Returns)18
b(the)g(absolute)g(index)h(of)f(the)g(history)f(elemen)o(t)i(where)f
-Fh(string)k Fm(w)o(as)195 1047 y(found,)15 b(or)g(-1)g(otherwise.)75
-1170 y Fg(2.3.6)30 b(Managing)20 b(the)g(History)h(File)137
-1272 y Fm(The)16 b(History)g(library)h(can)e(read)h(the)g(history)g
+Fj(string)k Fo(w)o(as)195 1047 y(found,)15 b(or)g(-1)g(otherwise.)75
+1170 y Fi(2.3.6)30 b(Managing)20 b(the)g(History)h(File)137
+1272 y Fo(The)16 b(History)g(library)h(can)e(read)h(the)g(history)g
(from)f(and)h(write)g(it)g(to)f(a)h(\014le.)22 b(This)17
b(section)f(do)q(cu-)75 1327 y(men)o(ts)f(the)g(functions)h(for)f
(managing)g(a)g(history)g(\014le.)1650 1430 y(F)l(unction)-1749
-b Ff(int)20 b Fe(read)p 286 1430 V 20 w(history)i Fd(\()p
-Fl(char)15 b(*filename)p Fd(\))195 1485 y Fm(Add)h(the)f(con)o(ten)o
-(ts)f(of)h Fh(\014lename)j Fm(to)d(the)g(history)g(list,)g(a)g(line)h
-(at)f(a)f(time.)21 b(If)15 b Fh(\014lename)j Fm(is)195
-1539 y Fl(NULL)p Fm(,)c(then)i(read)f(from)f(`)p Fl(~/.history)p
-Fm('.)k(Returns)e(0)f(if)g(successful,)i(or)d(errno)h(if)h(not.)1650
-1643 y(F)l(unction)-1749 b Ff(int)20 b Fe(read)p 286
-1643 V 20 w(history)p 481 1643 V 20 w(range)i Fd(\()p
-Fl(char)15 b(*filename,)e(int)i(from,)g(int)f(to)p Fd(\))195
-1697 y Fm(Read)21 b(a)f(range)g(of)g(lines)i(from)e Fh(\014lename)p
-Fm(,)i(adding)f(them)g(to)f(the)g(history)h(list.)36
-b(Start)195 1752 y(reading)15 b(at)e(line)j Fh(from)e
-Fm(and)g(end)h(at)e Fh(to)p Fm(.)19 b(If)c Fh(from)e
-Fm(is)i(zero,)f(start)f(at)g(the)h(b)q(eginning.)22 b(If)15
-b Fh(to)195 1807 y Fm(is)i(less)g(than)f Fh(from)p Fm(,)g(then)h(read)f
+b Fh(int)20 b Fg(read)p 286 1430 V 20 w(history)i Ff(\()p
+Fn(char)15 b(*filename)p Ff(\))195 1485 y Fo(Add)h(the)f(con)o(ten)o
+(ts)f(of)h Fj(\014lename)j Fo(to)d(the)g(history)g(list,)g(a)g(line)h
+(at)f(a)f(time.)21 b(If)15 b Fj(\014lename)j Fo(is)195
+1539 y Fn(NULL)p Fo(,)c(then)i(read)f(from)f(`)p Fn(~/.history)p
+Fo('.)k(Returns)e(0)f(if)g(successful,)i(or)d(errno)h(if)h(not.)1650
+1643 y(F)l(unction)-1749 b Fh(int)20 b Fg(read)p 286
+1643 V 20 w(history)p 481 1643 V 20 w(range)i Ff(\()p
+Fn(char)15 b(*filename,)e(int)i(from,)g(int)f(to)p Ff(\))195
+1697 y Fo(Read)21 b(a)f(range)g(of)g(lines)i(from)e Fj(\014lename)p
+Fo(,)i(adding)f(them)g(to)f(the)g(history)h(list.)36
+b(Start)195 1752 y(reading)15 b(at)e(line)j Fj(from)e
+Fo(and)g(end)h(at)e Fj(to)p Fo(.)19 b(If)c Fj(from)e
+Fo(is)i(zero,)f(start)f(at)g(the)h(b)q(eginning.)22 b(If)15
+b Fj(to)195 1807 y Fo(is)i(less)g(than)f Fj(from)p Fo(,)g(then)h(read)f
(un)o(til)i(the)e(end)h(of)f(the)h(\014le.)24 b(If)17
-b Fh(\014lename)j Fm(is)d Fl(NULL)p Fm(,)f(then)195 1862
-y(read)f(from)g(`)p Fl(~/.history)p Fm('.)i(Returns)f(0)f(if)h
-(successful,)g(or)e Fl(errno)h Fm(if)h(not.)1650 1965
-y(F)l(unction)-1749 b Ff(int)20 b Fe(write)p 304 1965
-V 22 w(history)i Fd(\()p Fl(char)15 b(*filename)p Fd(\))195
-2020 y Fm(W)l(rite)23 b(the)f(curren)o(t)g(history)h(to)f
-Fh(\014lename)p Fm(,)j(o)o(v)o(erwriting)d Fh(\014lename)k
-Fm(if)d(necessary)l(.)42 b(If)195 2074 y Fh(\014lename)20
-b Fm(is)d Fl(NULL)p Fm(,)f(then)g(write)h(the)f(history)h(list)g(to)f
-(`)p Fl(~/.history)p Fm('.)21 b(V)l(alues)d(returned)195
-2129 y(are)d(as)g(in)h Fl(read_history)d(\(\))p Fm(.)1650
-2232 y(F)l(unction)-1749 b Ff(int)20 b Fe(app)r(end)p
-360 2232 V 19 w(history)j Fd(\()p Fl(int)14 b(nelements,)g(char)h
-(*filename)p Fd(\))195 2287 y Fm(App)q(end)i(the)e(last)g
-Fh(nelemen)o(ts)j Fm(of)d(the)g(history)g(list)h(to)f
-Fh(\014lename)p Fm(.)1650 2390 y(F)l(unction)-1749 b
-Ff(int)20 b Fe(history)p 351 2390 V 20 w(truncate)p 582
-2390 V 21 w(\014le)k Fd(\()p Fl(char)14 b(*filename,)g(int)h(nlines)p
-Fd(\))195 2445 y Fm(T)l(runcate)g(the)h(history)f(\014le)h
-Fh(\014lename)p Fm(,)g(lea)o(ving)g(only)g(the)f(last)g
-Fh(nlines)k Fm(lines.)75 2568 y Fg(2.3.7)30 b(History)20
-b(Expansion)137 2670 y Fm(These)c(functions)g(implemen)o(t)g
-Fl(csh)p Fm(-lik)o(e)g(history)g(expansion.)p eop
+b Fj(\014lename)j Fo(is)d Fn(NULL)p Fo(,)f(then)195 1862
+y(read)f(from)g(`)p Fn(~/.history)p Fo('.)i(Returns)f(0)f(if)h
+(successful,)g(or)e Fn(errno)h Fo(if)h(not.)1650 1965
+y(F)l(unction)-1749 b Fh(int)20 b Fg(write)p 304 1965
+V 22 w(history)i Ff(\()p Fn(char)15 b(*filename)p Ff(\))195
+2020 y Fo(W)l(rite)23 b(the)f(curren)o(t)g(history)h(to)f
+Fj(\014lename)p Fo(,)j(o)o(v)o(erwriting)d Fj(\014lename)k
+Fo(if)d(necessary)l(.)42 b(If)195 2074 y Fj(\014lename)20
+b Fo(is)d Fn(NULL)p Fo(,)f(then)g(write)h(the)f(history)h(list)g(to)f
+(`)p Fn(~/.history)p Fo('.)21 b(V)l(alues)d(returned)195
+2129 y(are)d(as)g(in)h Fn(read_history)d(\(\))p Fo(.)1650
+2232 y(F)l(unction)-1749 b Fh(int)20 b Fg(app)r(end)p
+360 2232 V 19 w(history)j Ff(\()p Fn(int)14 b(nelements,)g(char)h
+(*filename)p Ff(\))195 2287 y Fo(App)q(end)i(the)e(last)g
+Fj(nelemen)o(ts)j Fo(of)d(the)g(history)g(list)h(to)f
+Fj(\014lename)p Fo(.)1650 2390 y(F)l(unction)-1749 b
+Fh(int)20 b Fg(history)p 351 2390 V 20 w(truncate)p 582
+2390 V 21 w(\014le)k Ff(\()p Fn(char)14 b(*filename,)g(int)h(nlines)p
+Ff(\))195 2445 y Fo(T)l(runcate)g(the)h(history)f(\014le)h
+Fj(\014lename)p Fo(,)g(lea)o(ving)g(only)g(the)f(last)g
+Fj(nlines)k Fo(lines.)75 2568 y Fi(2.3.7)30 b(History)20
+b(Expansion)137 2670 y Fo(These)c(functions)g(implemen)o(t)g
+Fn(csh)p Fo(-lik)o(e)g(history)g(expansion.)p eop
%%Page: 7 9
-7 8 bop 75 -58 a Fm(Chapter)15 b(2:)k(Programming)c(with)g(GNU)g
-(History)889 b(7)1650 183 y(F)l(unction)-1749 b Ff(int)20
-b Fe(history)p 351 183 18 3 v 20 w(expand)j Fd(\()p Fl(char)14
-b(*string,)g(char)h(**output)p Fd(\))195 238 y Fm(Expand)g
-Fh(string)p Fm(,)g(placing)h(the)f(result)h(in)o(to)f
-Fh(output)p Fm(,)f(a)h(p)q(oin)o(ter)g(to)g(a)f(string)h(\(see)g
-Fj(h)p Fm(unde-)195 293 y(\014ned)p Fj(i)h Fm([History)e(In)o
-(teraction],)h(page)g Fj(h)p Fm(unde\014ned)p Fj(i)p
-Fm(\).)21 b(Returns:)195 370 y Fl(0)216 b Fm(If)16 b(no)g(expansions)h
-(to)q(ok)e(place)i(\(or,)d(if)j(the)f(only)g(c)o(hange)g(in)h(the)e
-(text)h(w)o(as)435 425 y(the)f(de-slashifying)j(of)c(the)i(history)f
-(expansion)h(c)o(haracter\);)195 502 y Fl(1)216 b Fm(if)16
-b(expansions)g(did)g(tak)o(e)e(place;)195 580 y Fl(-1)192
-b Fm(if)16 b(there)f(w)o(as)f(an)h(error)g(in)h(expansion;)195
-657 y Fl(2)216 b Fm(if)16 b(the)g(returned)g(line)i(should)f(only)f(b)q
-(e)h(displa)o(y)o(ed,)f(but)g(not)g(executed,)g(as)435
-712 y(with)11 b(the)f Fl(:p)g Fm(mo)q(di\014er)h(\(see)g
-Fj(h)p Fm(unde\014ned)p Fj(i)g Fm([Mo)q(di\014ers],)g(page)f
-Fj(h)p Fm(unde\014ned)p Fj(i)p Fm(\).)195 789 y(If)15
-b(an)g(error)f(o)q(curred)i(in)g(expansion,)f(then)h
-Fh(output)f Fm(con)o(tains)g(a)g(descriptiv)o(e)i(error)d(mes-)195
-844 y(sage.)1650 932 y(F)l(unction)-1749 b Ff(char)20
-b(*)f Fe(history)p 422 932 V 21 w(arg)p 524 932 V 19
-w(extract)24 b Fd(\()p Fl(int)14 b(first,)h(int)g(last,)f(char)283
-987 y(*string)p Fd(\))195 1042 y Fm(Extract)g(a)g(string)g(segmen)o(t)g
-(consisting)i(of)e(the)g Fh(\014rst)i Fm(through)e Fh(last)h
-Fm(argumen)o(ts)f(presen)o(t)195 1097 y(in)i Fh(string)p
-Fm(.)k(Argumen)o(ts)15 b(are)f(brok)o(en)i(up)f(as)g(in)h(Bash.)1650
-1185 y(F)l(unction)-1749 b Ff(char)20 b(*)f Fe(get)p
+7 8 bop 75 -58 a Fo(Chapter)15 b(2:)k(Programming)c(with)g(GNU)g
+(History)889 b(7)1650 183 y(F)l(unction)-1749 b Fh(int)20
+b Fg(history)p 351 183 18 3 v 20 w(expand)j Ff(\()p Fn(char)14
+b(*string,)g(char)h(**output)p Ff(\))195 238 y Fo(Expand)k
+Fj(string)p Fo(,)g(placing)h(the)e(result)h(in)o(to)g
+Fj(output)p Fo(,)g(a)f(p)q(oin)o(ter)h(to)f(a)g(string)h(\(see)f(Sec-)
+195 293 y(tion)d(1.1)g([History)f(In)o(teraction],)h(page)g(1\).)k
+(Returns:)195 370 y Fn(0)216 b Fo(If)16 b(no)g(expansions)h(to)q(ok)e
+(place)i(\(or,)d(if)j(the)f(only)g(c)o(hange)g(in)h(the)e(text)h(w)o
+(as)435 425 y(the)f(de-slashifying)j(of)c(the)i(history)f(expansion)h
+(c)o(haracter\);)195 502 y Fn(1)216 b Fo(if)16 b(expansions)g(did)g
+(tak)o(e)e(place;)195 580 y Fn(-1)192 b Fo(if)16 b(there)f(w)o(as)f(an)
+h(error)g(in)h(expansion;)195 657 y Fn(2)216 b Fo(if)16
+b(the)g(returned)g(line)i(should)f(only)f(b)q(e)h(displa)o(y)o(ed,)f
+(but)g(not)g(executed,)g(as)435 712 y(with)g(the)f Fn(:p)g
+Fo(mo)q(di\014er)h(\(see)f(Section)h(1.1.3)e([Mo)q(di\014ers],)g(page)i
+(2\).)195 789 y(If)f(an)g(error)f(o)q(curred)i(in)g(expansion,)f(then)h
+Fj(output)f Fo(con)o(tains)g(a)g(descriptiv)o(e)i(error)d(mes-)195
+844 y(sage.)1650 932 y(F)l(unction)-1749 b Fh(char)20
+b(*)f Fg(history)p 422 932 V 21 w(arg)p 524 932 V 19
+w(extract)24 b Ff(\()p Fn(int)14 b(first,)h(int)g(last,)f(char)283
+987 y(*string)p Ff(\))195 1042 y Fo(Extract)g(a)g(string)g(segmen)o(t)g
+(consisting)i(of)e(the)g Fj(\014rst)i Fo(through)e Fj(last)h
+Fo(argumen)o(ts)f(presen)o(t)195 1097 y(in)i Fj(string)p
+Fo(.)k(Argumen)o(ts)15 b(are)f(brok)o(en)i(up)f(as)g(in)h(Bash.)1650
+1185 y(F)l(unction)-1749 b Fh(char)20 b(*)f Fg(get)p
324 1185 V 21 w(history)p 520 1185 V 20 w(ev)n(en)n(t)25
-b Fd(\()p Fl(char)14 b(*string,)g(int)h(*cindex,)f(int)283
-1240 y(qchar)p Fd(\))195 1295 y Fm(Returns)h(the)g(text)f(of)g(the)h
-(history)g(ev)o(en)o(t)f(b)q(eginning)j(at)d Fh(string)k
-Fl(+)d Fh(*cindex)p Fm(.)20 b Fh(*cindex)f Fm(is)195
+b Ff(\()p Fn(char)14 b(*string,)g(int)h(*cindex,)f(int)283
+1240 y(qchar)p Ff(\))195 1295 y Fo(Returns)h(the)g(text)f(of)g(the)h
+(history)g(ev)o(en)o(t)f(b)q(eginning)j(at)d Fj(string)k
+Fn(+)d Fj(*cindex)p Fo(.)20 b Fj(*cindex)f Fo(is)195
1350 y(mo)q(di\014ed)e(to)e(p)q(oin)o(t)h(to)f(after)g(the)h(ev)o(en)o
(t)f(sp)q(eci\014er.)23 b(A)o(t)16 b(function)g(en)o(try)l(,)f
-Fh(cindex)21 b Fm(p)q(oin)o(ts)195 1404 y(to)16 b(the)h(index)h(in)o
-(to)e Fh(string)21 b Fm(where)c(the)g(history)f(ev)o(en)o(t)h(sp)q
-(eci\014cation)h(b)q(egins.)26 b Fh(qc)o(har)19 b Fm(is)195
+Fj(cindex)21 b Fo(p)q(oin)o(ts)195 1404 y(to)16 b(the)h(index)h(in)o
+(to)e Fj(string)21 b Fo(where)c(the)g(history)f(ev)o(en)o(t)h(sp)q
+(eci\014cation)h(b)q(egins.)26 b Fj(qc)o(har)19 b Fo(is)195
1459 y(a)h(c)o(haracter)g(that)g(is)h(allo)o(w)o(ed)f(to)g(end)h(the)g
(ev)o(en)o(t)f(sp)q(eci\014cation)i(in)g(addition)f(to)f(the)195
1514 y(\\normal")15 b(terminating)g(c)o(haracters.)1650
-1602 y(F)l(unction)-1749 b Ff(char)20 b(**)f Fe(history)p
-448 1602 V 21 w(tok)n(enize)25 b Fd(\()p Fl(char)14 b(*string)p
-Fd(\))195 1657 y Fm(Return)j(an)g(arra)o(y)f(of)g(tok)o(ens)g(parsed)h
-(out)g(of)f Fh(string)p Fm(,)h(m)o(uc)o(h)g(as)f(the)h(shell)h(migh)o
+1602 y(F)l(unction)-1749 b Fh(char)20 b(**)f Fg(history)p
+448 1602 V 21 w(tok)n(enize)25 b Ff(\()p Fn(char)14 b(*string)p
+Ff(\))195 1657 y Fo(Return)j(an)g(arra)o(y)f(of)g(tok)o(ens)g(parsed)h
+(out)g(of)f Fj(string)p Fo(,)h(m)o(uc)o(h)g(as)f(the)h(shell)h(migh)o
(t.)25 b(The)195 1712 y(tok)o(ens)d(are)g(split)i(on)f(white)g(space)g
-(and)f(on)h(the)g(c)o(haracters)f Fl(\(\)<>;&|$)p Fm(,)h(and)f(shell)
+(and)f(on)h(the)g(c)o(haracters)f Fn(\(\)<>;&|$)p Fo(,)h(and)f(shell)
195 1767 y(quoting)15 b(con)o(v)o(en)o(tions)h(are)e(ob)q(ey)o(ed.)75
-1892 y Fk(2.4)33 b(History)22 b(V)-6 b(ariables)137 1987
-y Fm(This)23 b(section)f(describ)q(es)h(the)f(externally)h(visible)h(v)
+1892 y Fm(2.4)33 b(History)22 b(V)-6 b(ariables)137 1987
+y Fo(This)23 b(section)f(describ)q(es)h(the)f(externally)h(visible)h(v)
m(ariables)f(exp)q(orted)f(b)o(y)g(the)g(GNU)f(History)75
-2042 y(Library)l(.)1661 2130 y(V)l(ariable)-1749 b Ff(int)20
-b Fe(history)p 351 2130 V 20 w(base)195 2185 y Fm(The)15
+2042 y(Library)l(.)1661 2130 y(V)l(ariable)-1749 b Fh(int)20
+b Fg(history)p 351 2130 V 20 w(base)195 2185 y Fo(The)15
b(logical)i(o\013set)d(of)h(the)g(\014rst)g(en)o(try)g(in)h(the)f
-(history)g(list.)1661 2274 y(V)l(ariable)-1749 b Ff(int)20
-b Fe(history)p 351 2274 V 20 w(length)195 2329 y Fm(The)15
+(history)g(list.)1661 2274 y(V)l(ariable)-1749 b Fh(int)20
+b Fg(history)p 351 2274 V 20 w(length)195 2329 y Fo(The)15
b(n)o(um)o(b)q(er)h(of)f(en)o(tries)g(curren)o(tly)h(stored)f(in)h(the)
-f(history)g(list.)1661 2417 y(V)l(ariable)-1749 b Ff(int)20
-b Fe(max)p 283 2417 V 19 w(input)p 435 2417 V 21 w(history)195
-2472 y Fm(The)14 b(maxim)o(um)f(n)o(um)o(b)q(er)h(of)e(history)i(en)o
+f(history)g(list.)1661 2417 y(V)l(ariable)-1749 b Fh(int)20
+b Fg(max)p 283 2417 V 19 w(input)p 435 2417 V 21 w(history)195
+2472 y Fo(The)14 b(maxim)o(um)f(n)o(um)o(b)q(er)h(of)e(history)i(en)o
(tries.)19 b(This)14 b(m)o(ust)f(b)q(e)h(c)o(hanged)g(using)g
-Fl(stifle_)195 2527 y(history)g(\(\))p Fm(.)1661 2615
-y(V)l(ariable)-1749 b Ff(char)20 b Fe(history)p 377 2615
+Fn(stifle_)195 2527 y(history)g(\(\))p Fo(.)1661 2615
+y(V)l(ariable)-1749 b Fh(char)20 b Fg(history)p 377 2615
V 20 w(expansion)p 644 2615 V 21 w(c)n(har)195 2670 y
-Fm(The)15 b(c)o(haracter)g(that)f(starts)g(a)h(history)g(ev)o(en)o(t.)
-20 b(The)15 b(default)h(is)g(`)p Fl(!)p Fm('.)p eop
+Fo(The)15 b(c)o(haracter)g(that)f(starts)g(a)h(history)g(ev)o(en)o(t.)
+20 b(The)15 b(default)h(is)g(`)p Fn(!)p Fo('.)p eop
%%Page: 8 10
-8 9 bop 75 -58 a Fm(8)1347 b(GNU)15 b(History)g(Library)1661
-183 y(V)l(ariable)-1749 b Ff(char)20 b Fe(history)p 377
+8 9 bop 75 -58 a Fo(8)1347 b(GNU)15 b(History)g(Library)1661
+183 y(V)l(ariable)-1749 b Fh(char)20 b Fg(history)p 377
183 18 3 v 20 w(subst)p 529 183 V 20 w(c)n(har)195 238
-y Fm(The)13 b(c)o(haracter)e(that)h(in)o(v)o(ok)o(es)g(w)o(ord)g
+y Fo(The)13 b(c)o(haracter)e(that)h(in)o(v)o(ok)o(es)g(w)o(ord)g
(substitution)h(if)g(found)g(at)e(the)i(start)e(of)h(a)g(line.)21
-b(The)195 293 y(default)16 b(is)f(`)p Fl(^)p Fm('.)1661
-388 y(V)l(ariable)-1749 b Ff(char)20 b Fe(history)p 377
+b(The)195 293 y(default)16 b(is)f(`)p Fn(^)p Fo('.)1661
+388 y(V)l(ariable)-1749 b Fh(char)20 b Fg(history)p 377
388 V 20 w(commen)n(t)p 627 388 V 19 w(c)n(har)195 443
-y Fm(During)e(tok)o(enization,)h(if)f(this)h(c)o(haracter)e(is)i(seen)f
+y Fo(During)e(tok)o(enization,)h(if)f(this)h(c)o(haracter)e(is)i(seen)f
(as)g(the)g(\014rst)g(c)o(haracter)f(of)g(a)h(w)o(ord,)195
498 y(then)e(it)g(and)g(all)h(subsequen)o(t)g(c)o(haracters)e(up)h(to)g
(a)f(newline)j(are)e(ignored,)g(suppressing)195 553 y(history)f
(expansion)h(for)f(the)g(remainder)h(of)f(the)g(line.)22
b(This)15 b(is)h(disabled)h(b)o(y)e(default.)1661 648
-y(V)l(ariable)-1749 b Ff(char)20 b(*)f Fe(history)p 422
+y(V)l(ariable)-1749 b Fh(char)20 b(*)f Fg(history)p 422
648 V 21 w(no)p 504 648 V 20 w(expand)p 704 648 V 20
-w(c)n(hars)195 703 y Fm(The)j(list)h(of)f(c)o(haracters)f(whic)o(h)i
+w(c)n(hars)195 703 y Fo(The)j(list)h(of)f(c)o(haracters)f(whic)o(h)i
(inhibit)h(history)e(expansion)h(if)g(found)f(immediately)195
-758 y(follo)o(wing)16 b Fh(history)p 528 758 14 2 v 16
-w(expansion)p 739 758 V 18 w(c)o(har)p Fm(.)j(The)d(default)f(is)h
-(whitespace)g(and)g(`)p Fl(=)p Fm('.)1661 853 y(V)l(ariable)-1749
-b Ff(char)20 b(*)f Fe(history)p 422 853 18 3 v 21 w(searc)n(h)p
+758 y(follo)o(wing)16 b Fj(history)p 528 758 14 2 v 16
+w(expansion)p 739 758 V 18 w(c)o(har)p Fo(.)j(The)d(default)f(is)h
+(whitespace)g(and)g(`)p Fn(=)p Fo('.)1661 853 y(V)l(ariable)-1749
+b Fh(char)20 b(*)f Fg(history)p 422 853 18 3 v 21 w(searc)n(h)p
599 853 V 20 w(delimiter)p 843 853 V 23 w(c)n(hars)195
-908 y Fm(The)f(list)h(of)e(additional)i(c)o(haracters)e(whic)o(h)i(can)
+908 y Fo(The)f(list)h(of)e(additional)i(c)o(haracters)e(whic)o(h)i(can)
f(delimit)h(a)f(history)g(searc)o(h)f(string,)h(in)195
-963 y(addition)c(to)d(whitespace,)j(`)p Fl(:)p Fm(')d(and)i(`)p
-Fl(?)p Fm(')f(in)h(the)f(case)h(of)f(a)g(substring)h(searc)o(h.)19
+963 y(addition)c(to)d(whitespace,)j(`)p Fn(:)p Fo(')d(and)i(`)p
+Fn(?)p Fo(')f(in)h(the)f(case)h(of)f(a)g(substring)h(searc)o(h.)19
b(The)12 b(default)195 1018 y(is)k(empt)o(y)l(.)1661
-1113 y(V)l(ariable)-1749 b Ff(int)20 b Fe(history)p 351
+1113 y(V)l(ariable)-1749 b Fh(int)20 b Fg(history)p 351
1113 V 20 w(quotes)p 533 1113 V 21 w(inhibit)p 717 1113
-V 23 w(expansion)195 1168 y Fm(If)13 b(non-zero,)f(single-quoted)i(w)o
+V 23 w(expansion)195 1168 y Fo(If)13 b(non-zero,)f(single-quoted)i(w)o
(ords)e(are)g(not)g(scanned)h(for)f(the)g(history)h(expansion)g(c)o
(har-)195 1223 y(acter.)19 b(The)d(default)g(v)m(alue)g(is)g(0.)1661
-1318 y(V)l(ariable)-1749 b Ff(Function)20 b(*)g Fe(history)p
+1318 y(V)l(ariable)-1749 b Fh(Function)20 b(*)g Fg(history)p
527 1318 V 20 w(inhibit)p 710 1318 V 23 w(expansion)p
-980 1318 V 21 w(function)195 1373 y Fm(This)12 b(should)g(b)q(e)g(set)f
+980 1318 V 21 w(function)195 1373 y Fo(This)12 b(should)g(b)q(e)g(set)f
(to)f(the)i(address)f(of)g(a)g(function)h(that)e(tak)o(es)h(t)o(w)o(o)f
-(argumen)o(ts:)17 b(a)11 b Fl(char)195 1428 y(*)j Fm(\()p
-Fh(string)t Fm(\))f(and)i(an)f(in)o(teger)g(index)h(in)o(to)f(that)g
-(string)g(\()p Fh(i)r Fm(\).)20 b(It)14 b(should)h(return)f(a)g
+(argumen)o(ts:)17 b(a)11 b Fn(char)195 1428 y(*)j Fo(\()p
+Fj(string)t Fo(\))f(and)i(an)f(in)o(teger)g(index)h(in)o(to)f(that)g
+(string)g(\()p Fj(i)r Fo(\).)20 b(It)14 b(should)h(return)f(a)g
(non-zero)195 1482 y(v)m(alue)g(if)e(the)h(history)f(expansion)h
-(starting)f(at)g Fh(string[i])i Fm(should)f(not)f(b)q(e)h(p)q
+(starting)f(at)g Fj(string[i])i Fo(should)f(not)f(b)q(e)h(p)q
(erformed;)g(zero)195 1537 y(if)g(the)h(expansion)f(should)h(b)q(e)g
(done.)20 b(It)13 b(is)g(in)o(tended)i(for)d(use)h(b)o(y)g
(applications)i(lik)o(e)f(Bash)195 1592 y(that)j(use)h(the)g(history)f
(expansion)i(c)o(haracter)e(for)g(additional)i(purp)q(oses.)28
b(By)18 b(default,)195 1647 y(this)e(v)m(ariable)g(is)g(set)f(to)f
-(NULL.)75 1780 y Fk(2.5)33 b(History)22 b(Programming)h(Example)137
-1878 y Fm(The)16 b(follo)o(wing)g(program)e(demonstrates)g(simple)j
+(NULL.)75 1780 y Fm(2.5)33 b(History)22 b(Programming)h(Example)137
+1878 y Fo(The)16 b(follo)o(wing)g(program)e(demonstrates)g(simple)j
(use)e(of)g(the)g(GNU)g(History)g(Library)l(.)195 1944
-y Fl(main)23 b(\(\))195 1995 y({)243 2047 y(char)g(line[1024],)f(*t;)
+y Fn(main)23 b(\(\))195 1995 y({)243 2047 y(char)g(line[1024],)f(*t;)
243 2099 y(int)h(len,)g(done)h(=)g(0;)243 2203 y(line[0])f(=)g(0;)243
2307 y(using_history)f(\(\);)243 2359 y(while)h(\(!done\))290
2411 y({)338 2462 y(printf)g(\("history$)g("\);)338 2514
@@ -1953,8 +2016,8 @@ y(fflush)g(\(stdout\);)338 2566 y(t)h(=)g(fgets)f(\(line,)g(sizeof)g
(\(line\))g(-)h(1,)f(stdin\);)338 2618 y(if)h(\(t)f(&&)h(*t\))386
2670 y({)p eop
%%Page: 9 11
-9 10 bop 75 -58 a Fm(Chapter)15 b(2:)k(Programming)c(with)g(GNU)g
-(History)889 b(9)434 183 y Fl(len)23 b(=)h(strlen)f(\(t\);)434
+9 10 bop 75 -58 a Fo(Chapter)15 b(2:)k(Programming)c(with)g(GNU)g
+(History)889 b(9)434 183 y Fn(len)23 b(=)h(strlen)f(\(t\);)434
235 y(if)g(\(t[len)g(-)h(1])g(==)f('\\n'\))481 287 y(t[len)h(-)f(1])h
(=)g('\\0';)386 339 y(})338 443 y(if)g(\(!t\))386 495
y(strcpy)f(\(line,)g("quit"\);)338 598 y(if)h(\(line[0]\))386
@@ -1981,8 +2044,8 @@ y(strcpy)f(\(line,)g("quit"\);)338 598 y(if)h(\(line[0]\))386
2518 y({)434 2570 y(int)f(which;)434 2622 y(if)g(\(\(sscanf)g(\(line)g
(+)h(6,)f("\045d",)h(&which\)\))e(==)i(1\))p eop
%%Page: 10 12
-10 11 bop 75 -58 a Fm(10)1324 b(GNU)15 b(History)g(Library)481
-183 y Fl({)529 235 y(HIST_ENTRY)23 b(*entry)g(=)g(remove_history)f
+10 11 bop 75 -58 a Fo(10)1324 b(GNU)15 b(History)g(Library)481
+183 y Fn({)529 235 y(HIST_ENTRY)23 b(*entry)g(=)g(remove_history)f
(\(which\);)529 287 y(if)i(\(!entry\))577 339 y(fprintf)f(\(stderr,)f
("No)i(such)f(entry)g(\045d\\n",)g(which\);)529 391 y(else)577
443 y({)625 495 y(free)g(\(entry->line\);)625 546 y(free)g(\(entry\);)
@@ -1991,79 +2054,210 @@ y(strcpy)f(\(line,)g("quit"\);)338 598 y(if)h(\(line[0]\))386
(`delete'\\n"\);)481 858 y(})386 910 y(})290 962 y(})195
1013 y(})p eop
%%Page: 11 13
-11 12 bop 75 -58 a Fm(App)q(endix)17 b(A:)e(Concept)g(Index)1196
-b(11)75 183 y Fi(App)r(endix)25 b(A)41 b(Concept)27 b(Index)137
-359 y Fc(\(Index)14 b(is)f(nonexisten)o(t\))p eop
+11 12 bop 75 -58 a Fo(App)q(endix)17 b(A:)e(Concept)g(Index)1196
+b(11)75 183 y Fk(App)r(endix)25 b(A)41 b(Concept)27 b(Index)75
+359 y Fm(A)75 417 y Fe(anc)o(hored)14 b(searc)o(h)s Fd(.)7
+b(.)f(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g
+(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)16
+b Fe(5)75 517 y Fm(E)75 575 y Fe(ev)o(en)o(t)d(designators)c
+Fd(.)g(.)d(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g
+(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)21
+b Fe(1)1012 359 y Fm(H)1012 417 y Fe(history)15 b(ev)o(en)o(ts)s
+Fd(.)7 b(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)
+g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g
+(.)16 b Fe(1)1012 467 y(history)f(expansion)6 b Fd(.)j(.)d(.)g(.)g(.)g
+(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)
+g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)19 b Fe(1)1012 517 y(History)14
+b(Searc)o(hing)5 b Fd(.)j(.)e(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g
+(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)
+g(.)18 b Fe(5)p eop
%%Page: 12 14
-12 13 bop 75 -58 a Fm(12)1324 b(GNU)15 b(History)g(Library)p
+12 13 bop 75 -58 a Fo(12)1324 b(GNU)15 b(History)g(Library)p
eop
%%Page: 13 15
-13 14 bop 75 -58 a Fm(App)q(endix)17 b(B:)e(F)l(unction)h(and)g(V)l
-(ariable)g(Index)919 b(13)75 183 y Fi(App)r(endix)25
+13 14 bop 75 -58 a Fo(App)q(endix)17 b(B:)e(F)l(unction)h(and)g(V)l
+(ariable)g(Index)919 b(13)75 183 y Fk(App)r(endix)25
b(B)41 b(F)-7 b(unction)26 b(and)h(V)-7 b(ariable)26
-b(Index)137 359 y Fc(\(Index)14 b(is)f(nonexisten)o(t\))p
-eop
+b(Index)75 359 y Fm(A)75 417 y Fc(add)p 137 417 12 2
+v 13 w(history)6 b Fd(.)s(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g
+(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)
+g(.)g(.)g(.)g(.)g(.)h(.)18 b Fe(4)75 467 y Fc(append)p
+197 467 V 12 w(history)8 b Fd(.)e(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g
+(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)
+g(.)g(.)g(.)g(.)23 b Fe(6)75 567 y Fm(C)75 625 y Fc(clear)p
+177 625 V 12 w(history)s Fd(.)t(.)6 b(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f
+(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)
+g(.)g(.)g(.)g(.)g(.)g(.)16 b Fe(4)75 675 y Fc(current)p
+217 675 V 11 w(history)7 b Fd(.)f(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g
+(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)
+g(.)g(.)g(.)22 b Fe(5)75 774 y Fm(G)75 832 y Fc(get)p
+137 832 V 13 w(history)p 290 832 V 11 w(event)8 b Fd(.)e(.)g(.)g(.)g(.)
+g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h
+(.)f(.)g(.)g(.)g(.)g(.)g(.)22 b Fe(7)75 932 y Fm(H)75
+990 y Fc(history)p 217 990 V 11 w(arg)p 288 990 V 13
+w(extract)7 b Fd(.)t(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)
+g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)20
+b Fe(7)75 1040 y Fc(history)p 217 1040 V 11 w(base)f
+Fd(.)6 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)
+g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)19
+b Fe(7)75 1090 y Fc(history_co)o(mm)o(ent)o(_c)o(har)h
+Fd(.)6 b(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)
+g(.)g(.)g(.)g(.)g(.)h(.)f(.)23 b Fe(8)75 1139 y Fc(history)p
+217 1139 V 11 w(expand)9 b Fd(.)d(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g
+(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)
+g(.)g(.)g(.)g(.)23 b Fe(7)75 1189 y Fc(history)p 217
+1189 V 11 w(expansion)p 408 1189 V 11 w(char)17 b Fd(.)6
+b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g
+(.)g(.)g(.)g(.)g(.)18 b Fe(7)75 1239 y Fc(history)p 217
+1239 V 11 w(get)6 b Fd(.)f(.)h(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g
+(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)
+g(.)g(.)g(.)g(.)g(.)h(.)18 b Fe(5)75 1289 y Fc(history)p
+217 1289 V 11 w(get)p 288 1289 V 13 w(history)p 441 1289
+V 12 w(state)9 b Fd(.)d(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g
+(.)h(.)f(.)g(.)g(.)g(.)g(.)23 b Fe(4)75 1339 y Fc(history_in)o(hi)o
+(bit)o(_e)o(xpa)o(nsi)o(on)o(_fu)o(nc)o(tio)o(n)d Fd(.)6
+b(.)g(.)g(.)g(.)g(.)g(.)g(.)23 b Fe(8)75 1389 y Fc(history)p
+217 1389 V 11 w(is)p 268 1389 V 14 w(stifled)8 b Fd(.)s(.)f(.)f(.)g(.)g
+(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)
+g(.)g(.)g(.)g(.)g(.)21 b Fe(4)75 1438 y Fc(history)p
+217 1438 V 11 w(length)15 b Fd(.)6 b(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)
+g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g
+(.)g(.)g(.)g(.)g(.)17 b Fe(7)75 1488 y Fc(history)p 217
+1488 V 11 w(list)5 b Fd(.)g(.)h(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g
+(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)
+f(.)g(.)g(.)g(.)g(.)17 b Fe(5)75 1538 y Fc(history_no)o(_e)o(xpa)o(nd)o
+(_ch)o(ars)f Fd(.)6 b(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g
+(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)20 b Fe(8)75 1588 y Fc(history_qu)o(ot)o
+(es_)o(in)o(hib)o(it_)o(ex)o(pan)o(si)o(on)14 b Fd(.)6
+b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)17 b Fe(8)75
+1638 y Fc(history)p 217 1638 V 11 w(search)9 b Fd(.)d(.)g(.)g(.)g(.)g
+(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)
+g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)23 b Fe(5)75 1687
+y Fc(history_se)o(ar)o(ch_)o(de)o(lim)o(ite)o(r_)o(cha)o(rs)16
+b Fd(.)6 b(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)19
+b Fe(8)75 1737 y Fc(history)p 217 1737 V 11 w(search)p
+348 1737 V 12 w(pos)8 b Fd(.)d(.)i(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g
+(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)21
+b Fe(6)75 1787 y Fc(history)p 217 1787 V 11 w(search)p
+348 1787 V 12 w(prefix)5 b Fd(.)t(.)h(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g
+(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)17
+b Fe(6)75 1837 y Fc(history)p 217 1837 V 11 w(set)p 288
+1837 V 13 w(history)p 441 1837 V 12 w(state)9 b Fd(.)d(.)g(.)g(.)g(.)g
+(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)23
+b Fe(4)75 1887 y Fc(history)p 217 1887 V 11 w(set)p 288
+1887 V 13 w(pos)t Fd(.)5 b(.)h(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g
+(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)
+g(.)g(.)16 b Fe(5)1012 359 y Fc(history_sub)o(st)o(_ch)o(ar)e
+Fd(.)6 b(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)
+g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)18 b Fe(8)1012
+409 y Fc(history)p 1154 409 V 12 w(tokenize)8 b Fd(.)s(.)e(.)g(.)g(.)g
+(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)
+g(.)g(.)h(.)f(.)g(.)g(.)g(.)21 b Fe(7)1012 459 y Fc(history)p
+1154 459 V 12 w(total)p 1266 459 V 12 w(bytes)7 b Fd(.)t(.)f(.)g(.)g(.)
+g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f
+(.)g(.)g(.)g(.)g(.)20 b Fe(5)1012 509 y Fc(history)p
+1154 509 V 12 w(truncate)p 1326 509 V 11 w(file)5 b Fd(.)t(.)h(.)g(.)g
+(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)
+g(.)g(.)g(.)18 b Fe(6)1012 612 y Fm(M)1012 670 y Fc(max)p
+1074 670 V 13 w(input)p 1187 670 V 13 w(history)13 b
+Fd(.)6 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)
+g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)16 b
+Fe(7)1012 773 y Fm(N)1012 831 y Fc(next)p 1094 831 V
+13 w(history)5 b Fd(.)s(.)h(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g
+(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)
+g(.)g(.)g(.)g(.)18 b Fe(5)1012 934 y Fm(P)1012 992 y
+Fc(previous)p 1174 992 V 11 w(history)8 b Fd(.)t(.)e(.)g(.)g(.)g(.)g(.)
+g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g
+(.)h(.)f(.)g(.)g(.)g(.)21 b Fe(5)1012 1096 y Fm(R)1012
+1154 y Fc(read)p 1094 1154 V 13 w(history)5 b Fd(.)s(.)h(.)g(.)g(.)g(.)
+g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g
+(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)18 b Fe(6)1012
+1204 y Fc(read)p 1094 1204 V 13 w(history)p 1247 1204
+V 11 w(range)8 b Fd(.)d(.)h(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g
+(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)21
+b Fe(6)1012 1253 y Fc(remove)p 1134 1253 V 12 w(history)8
+b Fd(.)e(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)
+g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)24
+b Fe(4)1012 1303 y Fc(replace)p 1154 1303 V 12 w(history)p
+1306 1303 V 11 w(entry)5 b Fd(.)t(.)h(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g
+(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)18
+b Fe(4)1012 1406 y Fm(S)1012 1464 y Fc(stifle)p 1134
+1464 V 12 w(history)8 b Fd(.)e(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g
+(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)
+g(.)g(.)g(.)24 b Fe(4)1012 1568 y Fm(U)1012 1626 y Fc(unstifle)p
+1174 1626 V 11 w(history)8 b Fd(.)t(.)e(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h
+(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)
+g(.)g(.)21 b Fe(4)1012 1676 y Fc(using)p 1114 1676 V
+13 w(history)s Fd(.)s(.)6 b(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g
+(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)
+g(.)g(.)g(.)17 b Fe(4)1012 1779 y Fm(W)1012 1837 y Fc(where)p
+1114 1837 V 13 w(history)s Fd(.)s(.)6 b(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g
+(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)
+g(.)g(.)g(.)g(.)g(.)g(.)17 b Fe(5)1012 1887 y Fc(write)p
+1114 1887 V 13 w(history)s Fd(.)s(.)6 b(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g
+(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)
+g(.)g(.)g(.)g(.)g(.)g(.)17 b Fe(6)p eop
%%Page: 14 16
-14 15 bop 75 -58 a Fm(14)1324 b(GNU)15 b(History)g(Library)p
+14 15 bop 75 -58 a Fo(14)1324 b(GNU)15 b(History)g(Library)p
eop
%%Page: -1 17
--1 16 bop 1862 -58 a Fm(i)75 183 y Fi(T)-7 b(able)27
-b(of)f(Con)n(ten)n(ts)75 354 y Fk(1)67 b(Using)22 b(History)h(In)n
+-1 16 bop 1862 -58 a Fo(i)75 183 y Fk(T)-7 b(able)27
+b(of)f(Con)n(ten)n(ts)75 354 y Fm(1)67 b(Using)22 b(History)h(In)n
(teractiv)n(ely)9 b Fb(.)k(.)d(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)h
-(.)f(.)g(.)g(.)h(.)31 b Fk(1)224 423 y Fm(1.1)45 b(History)15
+(.)f(.)g(.)g(.)h(.)31 b Fm(1)224 423 y Fo(1.1)45 b(History)15
b(Expansion)5 b Fa(.)j(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)g(.)f(.)h(.)f
(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)
-f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)19 b Fm(1)374 478 y(1.1.1)44
+f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)19 b Fo(1)374 478 y(1.1.1)44
b(Ev)o(en)o(t)14 b(Designators)e Fa(.)7 b(.)h(.)f(.)h(.)f(.)h(.)f(.)h
(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)
-f(.)h(.)f(.)h(.)26 b Fm(1)374 532 y(1.1.2)44 b(W)l(ord)15
+f(.)h(.)f(.)h(.)26 b Fo(1)374 532 y(1.1.2)44 b(W)l(ord)15
b(Designators)5 b Fa(.)h(.)i(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)
f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h
-(.)19 b Fm(2)374 587 y(1.1.3)44 b(Mo)q(di\014ers)t Fa(.)8
+(.)19 b Fo(2)374 587 y(1.1.3)44 b(Mo)q(di\014ers)t Fa(.)8
b(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)g(.)f
(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)
-f(.)h(.)f(.)19 b Fm(2)75 708 y Fk(2)67 b(Programming)23
+f(.)h(.)f(.)19 b Fo(2)75 708 y Fm(2)67 b(Programming)23
b(with)g(GNU)f(History)16 b Fb(.)10 b(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f
-(.)g(.)38 b Fk(3)224 777 y Fm(2.1)45 b(In)o(tro)q(duction)16
+(.)g(.)38 b Fm(3)224 777 y Fo(2.1)45 b(In)o(tro)q(duction)16
b(to)f(History)10 b Fa(.)d(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f
(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)
-f(.)h(.)f(.)h(.)24 b Fm(3)224 832 y(2.2)45 b(History)15
+f(.)h(.)f(.)h(.)24 b Fo(3)224 832 y(2.2)45 b(History)15
b(Storage)c Fa(.)d(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f
(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)
-g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)26 b Fm(3)224 886
+g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)26 b Fo(3)224 886
y(2.3)45 b(History)15 b(F)l(unctions)d Fa(.)c(.)f(.)h(.)f(.)h(.)f(.)h
(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)
f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)26
-b Fm(4)374 941 y(2.3.1)44 b(Initializing)18 b(History)d(and)h(State)e
+b Fo(4)374 941 y(2.3.1)44 b(Initializing)18 b(History)d(and)h(State)e
(Managemen)o(t)g Fa(.)7 b(.)h(.)g(.)f(.)h(.)f(.)29 b
-Fm(4)374 996 y(2.3.2)44 b(History)15 b(List)h(Managemen)o(t)d
+Fo(4)374 996 y(2.3.2)44 b(History)15 b(List)h(Managemen)o(t)d
Fa(.)7 b(.)h(.)f(.)h(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)
-h(.)f(.)h(.)f(.)h(.)f(.)29 b Fm(4)374 1051 y(2.3.3)44
+h(.)f(.)h(.)f(.)h(.)f(.)29 b Fo(4)374 1051 y(2.3.3)44
b(Information)15 b(Ab)q(out)g(the)h(History)f(List)c
Fa(.)d(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)26
-b Fm(5)374 1106 y(2.3.4)44 b(Mo)o(ving)15 b(Around)g(the)g(History)g
+b Fo(5)374 1106 y(2.3.4)44 b(Mo)o(ving)15 b(Around)g(the)g(History)g
(List)c Fa(.)d(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f
-(.)h(.)25 b Fm(5)374 1160 y(2.3.5)44 b(Searc)o(hing)16
+(.)h(.)25 b Fo(5)374 1160 y(2.3.5)44 b(Searc)o(hing)16
b(the)f(History)g(List)7 b Fa(.)h(.)g(.)f(.)h(.)g(.)f(.)h(.)f(.)h(.)f
(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)22
-b Fm(5)374 1215 y(2.3.6)44 b(Managing)15 b(the)g(History)g(File)6
+b Fo(5)374 1215 y(2.3.6)44 b(Managing)15 b(the)g(History)g(File)6
b Fa(.)i(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)
-f(.)h(.)f(.)h(.)f(.)h(.)20 b Fm(6)374 1270 y(2.3.7)44
+f(.)h(.)f(.)h(.)f(.)h(.)20 b Fo(6)374 1270 y(2.3.7)44
b(History)15 b(Expansion)9 b Fa(.)f(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h
(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)
-h(.)f(.)24 b Fm(6)224 1325 y(2.4)45 b(History)15 b(V)l(ariables)6
+h(.)f(.)24 b Fo(6)224 1325 y(2.4)45 b(History)15 b(V)l(ariables)6
b Fa(.)j(.)e(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)g(.)f(.)h(.)f(.)h(.)
f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h
-(.)f(.)h(.)f(.)h(.)f(.)21 b Fm(7)224 1380 y(2.5)45 b(History)15
+(.)f(.)h(.)f(.)h(.)f(.)21 b Fo(7)224 1380 y(2.5)45 b(History)15
b(Programming)f(Example)7 b Fa(.)i(.)e(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f
(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)22
-b Fm(8)75 1501 y Fk(App)r(endix)i(A)67 b(Concept)22 b(Index)17
+b Fo(8)75 1501 y Fm(App)r(endix)i(A)67 b(Concept)22 b(Index)17
b Fb(.)10 b(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g
-(.)38 b Fk(11)75 1636 y(App)r(endix)24 b(B)67 b(F)-6
+(.)38 b Fm(11)75 1636 y(App)r(endix)24 b(B)67 b(F)-6
b(unction)25 b(and)e(V)-6 b(ariable)24 b(Index)16 b Fb(.)10
-b(.)g(.)g(.)38 b Fk(13)p eop
+b(.)g(.)g(.)38 b Fm(13)p eop
%%Page: -2 18
--2 17 bop 75 -58 a Fm(ii)1346 b(GNU)15 b(History)g(Library)p
+-2 17 bop 75 -58 a Fo(ii)1346 b(GNU)15 b(History)g(Library)p
eop
%%Trailer
end
diff --git a/doc/manvers.texinfo b/doc/manvers.texinfo
new file mode 100644
index 0000000..63924e3
--- /dev/null
+++ b/doc/manvers.texinfo
@@ -0,0 +1,6 @@
+@set EDITION 4.0
+@set VERSION 4.0
+@set UPDATED 31 December 1998
+@set UPDATE-MONTH December 1998
+
+@set LASTCHANGE Thu Dec 31 10:17:05 EST 1998
diff --git a/doc/readline.0 b/doc/readline.0
index c925d52..970d8c6 100644
--- a/doc/readline.0
+++ b/doc/readline.0
@@ -8,6 +8,7 @@ NNAAMMEE
readline - get a line from a user with editing
SSYYNNOOPPSSIISS
+ ##iinncclluuddee <>
##iinncclluuddee <>
##iinncclluuddee <>
@@ -57,11 +58,10 @@ NNOOTTAATTIIOONN
ments deviates from this are noted.
When a command is described as _k_i_l_l_i_n_g text, the text
- deleted is saved for possible future retrieval (_y_a_n_k_i_n_g).
-GNU 1998 Feb 19 1
+GNU 1998 Dec 31 1
@@ -70,6 +70,7 @@ GNU 1998 Feb 19 1
READLINE(3) READLINE(3)
+ deleted is saved for possible future retrieval (_y_a_n_k_i_n_g).
The killed text is saved in a _k_i_l_l _r_i_n_g. Consecutive
kills cause the text to be accumulated into one unit,
which can be yanked all at once. Commands which do not
@@ -126,8 +127,7 @@ IINNIITTIIAALLIIZZAATTIIOONN FFIILLEE
-
-GNU 1998 Feb 19 2
+GNU 1998 Dec 31 2
@@ -193,7 +193,7 @@ READLINE(3) READLINE(3)
-GNU 1998 Feb 19 3
+GNU 1998 Dec 31 3
@@ -259,7 +259,7 @@ READLINE(3) READLINE(3)
-GNU 1998 Feb 19 4
+GNU 1998 Dec 31 4
@@ -274,6 +274,18 @@ READLINE(3) READLINE(3)
for display, scrolling the input horizontally on a
single screen line when it becomes longer than the
screen width rather than wrapping to a new line.
+ iinnppuutt--mmeettaa ((OOffff))
+ If set to OOnn, readline will enable eight-bit input
+ (that is, it will not strip the high bit from the
+ characters it reads), regardless of what the termi-
+ nal claims it can support. The name mmeettaa--ffllaagg is a
+ synonym for this variable.
+ iisseeaarrcchh--tteerrmmiinnaattoorrss ((````CC--[[CC--JJ''''))
+ The string of characters that should terminate an
+ incremental search without subsequently executing
+ the character as a command. If this variable has
+ not been given a value, the characters _E_S_C and _C_-_J
+ will terminate an incremental search.
kkeeyymmaapp ((eemmaaccss))
Set the current readline keymap. The set of legal
keymap names is _e_m_a_c_s_, _e_m_a_c_s_-_s_t_a_n_d_a_r_d_, _e_m_a_c_s_-_m_e_t_a_,
@@ -288,44 +300,32 @@ READLINE(3) READLINE(3)
mmaarrkk--mmooddiiffiieedd--lliinneess ((OOffff))
If set to OOnn, history lines that have been modified
are displayed with a preceding asterisk (**).
- mmeettaa--ffllaagg ((OOffff))
- If set to OOnn, readline will enable eight-bit input
- (that is, it will not strip the high bit from the
- characters it reads), regardless of what the termi-
- nal claims it can support.
oouuttppuutt--mmeettaa ((OOffff))
If set to OOnn, readline will display characters with
- the eighth bit set directly rather than as a meta-
+ the eighth bit set directly rather than as a meta-
prefixed escape sequence.
pprriinntt--ccoommpplleettiioonnss--hhoorriizzoonnttaallllyy ((OOffff))
- If set to OOnn, readline will display completions
- with matches sorted horizontally in alphabetical
+ If set to OOnn, readline will display completions
+ with matches sorted horizontally in alphabetical
order, rather than down the screen.
sshhooww--aallll--iiff--aammbbiigguuoouuss ((OOffff))
- This alters the default behavior of the completion
- functions. If set to oonn, words which have more
- than one possible completion cause the matches to
- be listed immediately instead of ringing the bell.
+ This alters the default behavior of the completion
+ functions. If set to oonn, words which have more
+ than one possible completion cause the matches to
+ be listed immediately instead of ringing the bell.
vviissiibbllee--ssttaattss ((OOffff))
If set to OOnn, a character denoting a file's type as
- reported by ssttaatt(2) is appended to the filename
+ reported by ssttaatt(2) is appended to the filename
when listing possible completions.
CCoonnddiittiioonnaall CCoonnssttrruuccttss
- 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 per-
- formed as the result of tests. There are four parser
- directives used.
-
- $$iiff The $$iiff construct allows bindings to be made based
- on the editing mode, the terminal being used, or
- the application using readline. The text of the
- test extends to the end of the line; no characters
+ 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
-GNU 1998 Feb 19 5
+GNU 1998 Dec 31 5
@@ -334,21 +334,28 @@ GNU 1998 Feb 19 5
READLINE(3) READLINE(3)
+ performed as the result of tests. There are four parser
+ directives used.
+
+ $$iiff The $$iiff construct allows bindings to be made based
+ on the editing mode, the terminal being used, or
+ the application using readline. The text of the
+ test extends to the end of the line; no characters
are required to isolate it.
- mmooddee The mmooddee== form of the $$iiff directive is used
- to test whether readline is in emacs or vi
- mode. This may be used in conjunction with
+ mmooddee The mmooddee== form of the $$iiff directive is used
+ to test whether readline is in emacs or vi
+ mode. This may be used in conjunction with
the sseett kkeeyymmaapp command, for instance, to set
- bindings in the _e_m_a_c_s_-_s_t_a_n_d_a_r_d and _e_m_a_c_s_-
- _c_t_l_x keymaps only if readline is starting
+ bindings in the _e_m_a_c_s_-_s_t_a_n_d_a_r_d and _e_m_a_c_s_-
+ _c_t_l_x keymaps only if readline is starting
out in emacs mode.
tteerrmm The tteerrmm== form may be used to include termi-
- nal-specific key bindings, perhaps to bind
- the key sequences output by the terminal's
- function keys. The word on the right side
- of the == is tested against the full name of
+ nal-specific key bindings, perhaps to bind
+ the key sequences output by the terminal's
+ function keys. The word on the right side
+ of the == is tested against the full name of
the terminal and the portion of the terminal
name before the first --. This allows _s_u_n to
match both _s_u_n and _s_u_n_-_c_m_d, for instance.
@@ -357,12 +364,12 @@ READLINE(3) READLINE(3)
The aapppplliiccaattiioonn construct is used to include
application-specific settings. Each program
using the readline library sets the _a_p_p_l_i_c_a_-
- _t_i_o_n _n_a_m_e, and an initialization file can
- test for a particular value. This could be
+ _t_i_o_n _n_a_m_e, and an initialization file can
+ test for a particular value. This could be
used to bind key sequences to functions use-
- ful for a specific program. For instance,
- the following command adds a key sequence
- that quotes the current or previous word in
+ ful for a specific program. For instance,
+ the following command adds a key sequence
+ that quotes the current or previous word in
Bash:
$$iiff bash
@@ -373,25 +380,18 @@ READLINE(3) READLINE(3)
$$eennddiiff This command, as seen in the previous example, ter-
minates an $$iiff command.
- $$eellssee Commands in this branch of the $$iiff directive are
+ $$eellssee Commands in this branch of the $$iiff directive are
executed if the test fails.
$$iinncclluuddee
- This directive takes a single filename as an argu-
- ment and reads commands and bindings from that
- file. For example, the following directive would
+ This directive takes a single filename as an argu-
+ ment and reads commands and bindings from that
+ file. For example, the following directive would
read _/_e_t_c_/_i_n_p_u_t_r_c:
- $$iinncclluuddee _/_e_t_c_/_i_n_p_u_t_r_c
-
-SSEEAARRCCHHIINNGG
- Readline provides commands for searching through the com-
- mand history for lines containing a specified string.
- There are two search modes: _i_n_c_r_e_m_e_n_t_a_l and _n_o_n_-
-
-GNU 1998 Feb 19 6
+GNU 1998 Dec 31 6
@@ -400,36 +400,44 @@ GNU 1998 Feb 19 6
READLINE(3) READLINE(3)
- _i_n_c_r_e_m_e_n_t_a_l.
+ $$iinncclluuddee _/_e_t_c_/_i_n_p_u_t_r_c
+
+SSEEAARRCCHHIINNGG
+ Readline provides commands for searching through the com-
+ mand history for lines containing a specified string.
+ There are two search modes: _i_n_c_r_e_m_e_n_t_a_l and _n_o_n_-_i_n_c_r_e_m_e_n_-
+ _t_a_l.
- Incremental searches begin before the user has finished
+ Incremental searches begin before the user has finished
typing the search string. As each character of the search
string is typed, readline displays the next entry from the
- history matching the string typed so far. An incremental
- search requires only as many characters as needed to find
- the desired history entry. The Escape character is used
- to terminate an incremental search. Control-J will also
- terminate the search. Control-G will abort an incremental
- search and restore the original line. When the search is
- terminated, the history entry containing the search string
- becomes the current line. To find other matching entries
- in the history list, type Control-S or Control-R as appro-
- priate. This will search backward or forward in the his-
- tory for the next line matching the search string typed so
- far. Any other key sequence bound to a readline command
- will terminate the search and execute that command. For
- instance, a _n_e_w_l_i_n_e will terminate the search and accept
- the line, thereby executing the command from the history
- list.
-
- Non-incremental searches read the entire search string
+ history matching the string typed so far. An incremental
+ search requires only as many characters as needed to find
+ the desired history entry. The characters present in the
+ value of the _i_s_e_a_r_c_h_-_t_e_r_m_i_n_a_t_o_r_s variable are used to ter-
+ minate an incremental search. If that variable has not
+ been assigned a value the Escape and Control-J characters
+ will terminate an incremental search. Control-G will
+ abort an incremental search and restore the original line.
+ When the search is terminated, the history entry contain-
+ ing the search string becomes the current line. To find
+ other matching entries in the history list, type Control-S
+ or Control-R as appropriate. This will search backward or
+ forward in the history for the next line matching the
+ search string typed so far. Any other key sequence bound
+ to a readline command will terminate the search and exe-
+ cute that command. For instance, a _n_e_w_l_i_n_e will terminate
+ the search and accept the line, thereby executing the com-
+ mand from the history list.
+
+ Non-incremental searches read the entire search string
before starting to search for matching history lines. The
- search string may be typed by the user or be part of the
+ search string may be typed by the user or be part of the
contents of the current line.
EEDDIITTIINNGG CCOOMMMMAANNDDSS
- The following is a list of the names of the commands and
- the default key sequences to which they are bound. Com-
+ The following is a list of the names of the commands and
+ the default key sequences to which they are bound. Com-
mand names without an accompanying key sequence are
unbound by default.
@@ -443,21 +451,13 @@ EEDDIITTIINNGG CCOOMMMMAANNDDSS
bbaacckkwwaarrdd--cchhaarr ((CC--bb))
Move back a character.
ffoorrwwaarrdd--wwoorrdd ((MM--ff))
- Move forward to the end of the next word. Words
- are composed of alphanumeric characters (letters
+ Move forward to the end of the next word. Words
+ are composed of alphanumeric characters (letters
and digits).
- bbaacckkwwaarrdd--wwoorrdd ((MM--bb))
- Move back to the start of this, or the previous,
- word. Words are composed of alphanumeric charac-
- ters (letters and digits).
- cclleeaarr--ssccrreeeenn ((CC--ll))
- Clear the screen leaving the current line at the
- top of the screen. With an argument, refresh the
- current line without clearing the screen.
-GNU 1998 Feb 19 7
+GNU 1998 Dec 31 7
@@ -466,64 +466,64 @@ GNU 1998 Feb 19 7
READLINE(3) READLINE(3)
+ bbaacckkwwaarrdd--wwoorrdd ((MM--bb))
+ Move back to the start of this, or the previous,
+ word. Words are composed of alphanumeric charac-
+ ters (letters and digits).
+ cclleeaarr--ssccrreeeenn ((CC--ll))
+ Clear the screen leaving the current line at the
+ top of the screen. With an argument, refresh the
+ current line without clearing the screen.
rreeddrraaww--ccuurrrreenntt--lliinnee
Refresh the current line.
CCoommmmaannddss ffoorr MMaanniippuullaattiinngg tthhee HHiissttoorryy
aacccceepptt--lliinnee ((NNeewwlliinnee,, RReettuurrnn))
- Accept the line regardless of where the cursor is.
- If this line is non-empty, add it to the history
- list. If the line is a modified history line, then
+ Accept the line regardless of where the cursor is.
+ If this line is non-empty, add it to the history
+ list. If the line is a modified history line, then
restore the history line to its original state.
pprreevviioouuss--hhiissttoorryy ((CC--pp))
- Fetch the previous command from the history list,
+ Fetch the previous command from the history list,
moving back in the list.
nneexxtt--hhiissttoorryy ((CC--nn))
- Fetch the next command from the history list, mov-
+ Fetch the next command from the history list, mov-
ing forward in the list.
bbeeggiinnnniinngg--ooff--hhiissttoorryy ((MM--<<))
Move to the first line in the history.
eenndd--ooff--hhiissttoorryy ((MM-->>))
- Move to the end of the input history, i.e., the
+ Move to the end of the input history, i.e., the
line currently being entered.
rreevveerrssee--sseeaarrcchh--hhiissttoorryy ((CC--rr))
- Search backward starting at the current line and
+ Search backward starting at the current line and
moving `up' through the history as necessary. This
is an incremental search.
ffoorrwwaarrdd--sseeaarrcchh--hhiissttoorryy ((CC--ss))
- Search forward starting at the current line and
- moving `down' through the history as necessary.
+ Search forward starting at the current line and
+ moving `down' through the history as necessary.
This is an incremental search.
nnoonn--iinnccrreemmeennttaall--rreevveerrssee--sseeaarrcchh--hhiissttoorryy ((MM--pp))
Search backward through the history starting at the
- current line using a non-incremental search for a
+ current line using a non-incremental search for a
string supplied by the user.
nnoonn--iinnccrreemmeennttaall--ffoorrwwaarrdd--sseeaarrcchh--hhiissttoorryy ((MM--nn))
- Search forward through the history using a non-
- incremental search for a string supplied by the
+ Search forward through the history using a non-
+ incremental search for a string supplied by the
user.
hhiissttoorryy--sseeaarrcchh--ffoorrwwaarrdd
- Search forward through the history for the string
+ Search forward through the history for the string
of characters between the start of the current line
- and the current cursor position (the _p_o_i_n_t). This
+ and the current cursor position (the _p_o_i_n_t). This
is a non-incremental search.
hhiissttoorryy--sseeaarrcchh--bbaacckkwwaarrdd
- Search backward through the history for the string
+ 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.
- yyaannkk--nntthh--aarrgg ((MM--CC--yy))
- Insert the first argument to the previous command
- (usually the second word on the previous line) at
- point (the current cursor position). With an argu-
- ment _n, insert the _nth word from the previous com-
- mand (the words in the previous command begin with
- word 0). A negative argument inserts the _nth word
- from the end of the previous command.
-GNU 1998 Feb 19 8
+GNU 1998 Dec 31 8
@@ -532,24 +532,37 @@ GNU 1998 Feb 19 8
READLINE(3) READLINE(3)
+ yyaannkk--nntthh--aarrgg ((MM--CC--yy))
+ Insert the first argument to the previous command
+ (usually the second word on the previous line) at
+ point (the current cursor position). With an argu-
+ ment _n, insert the _nth word from the previous com-
+ mand (the words in the previous command begin with
+ word 0). A negative argument inserts the _nth word
+ from the end of the previous command.
yyaannkk--llaasstt--aarrgg ((MM--..,, MM--__))
- Insert the last argument to the previous command
- (the last word of the previous history entry).
+ Insert the last argument to the previous command
+ (the last word of the previous history entry).
With an argument, behave exactly like yyaannkk--nntthh--aarrgg.
Successive calls to yyaannkk--llaasstt--aarrgg move back through
- the history list, inserting the last argument of
+ the history list, inserting the last argument of
each line in turn.
CCoommmmaannddss ffoorr CChhaannggiinngg TTeexxtt
ddeelleettee--cchhaarr ((CC--dd))
Delete the character under the cursor. If point is
- at the beginning of the line, there are no charac-
- ters in the line, and the last character typed was
+ at the beginning of the line, there are no charac-
+ ters in the line, and the last character typed was
not bound to BBddeelleettee--cchhaarr, then return EEOOFF.
bbaacckkwwaarrdd--ddeelleettee--cchhaarr ((RRuubboouutt))
Delete the character behind the cursor. When given
- a numeric argument, save the deleted text on the
+ a numeric argument, save the deleted text on the
kill ring.
+ ffoorrwwaarrdd--bbaacckkwwaarrdd--ddeelleettee--cchhaarr
+ 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.
qquuootteedd--iinnsseerrtt ((CC--qq,, CC--vv))
Add the next character that you type to the line
verbatim. This is how to insert characters like
@@ -572,6 +585,19 @@ READLINE(3) READLINE(3)
Uppercase the current (or following) word. With a
negative argument, uppercase the previous word, but
do not move point.
+
+
+
+
+GNU 1998 Dec 31 9
+
+
+
+
+
+READLINE(3) READLINE(3)
+
+
ddoowwnnccaassee--wwoorrdd ((MM--ll))
Lowercase the current (or following) word. With a
negative argument, lowercase the previous word, but
@@ -585,19 +611,6 @@ READLINE(3) READLINE(3)
kkiillll--lliinnee ((CC--kk))
Kill the text from the current cursor position to
the end of the line.
-
-
-
-
-GNU 1998 Feb 19 9
-
-
-
-
-
-READLINE(3) READLINE(3)
-
-
bbaacckkwwaarrdd--kkiillll--lliinnee ((CC--xx RRuubboouutt))
Kill backward to the beginning of the line.
uunniixx--lliinnee--ddiissccaarrdd ((CC--uu))
@@ -639,6 +652,18 @@ READLINE(3) READLINE(3)
Rotate the kill ring, and yank the new top. Only
works following yyaannkk or yyaannkk--ppoopp.
+
+
+
+GNU 1998 Dec 31 10
+
+
+
+
+
+READLINE(3) READLINE(3)
+
+
NNuummeerriicc AArrgguummeennttss
ddiiggiitt--aarrgguummeenntt ((MM--00,, MM--11,, ......,, MM----))
Add this digit to the argument already accumulat-
@@ -651,20 +676,8 @@ READLINE(3) READLINE(3)
define the argument. If the command is followed by
digits, executing uunniivveerrssaall--aarrgguummeenntt again ends the
numeric argument, but is otherwise ignored. As a
- special case, if this command is immediately
-
-
-
-GNU 1998 Feb 19 10
-
-
-
-
-
-READLINE(3) READLINE(3)
-
-
- followed by a character that is neither a digit or
+ special case, if this command is immediately fol-
+ lowed by a character that is neither a digit or
minus sign, the argument count for the next command
is multiplied by four. The argument count is ini-
tially one, so executing this function the first
@@ -705,30 +718,36 @@ READLINE(3) READLINE(3)
the list. This command is intended to be bound to
TTAABB, but is unbound by default.
- KKeeyybbooaarrdd MMaaccrrooss
- ssttaarrtt--kkbbdd--mmaaccrroo ((CC--xx (())
- Begin saving the characters typed into the current
- keyboard macro.
- eenndd--kkbbdd--mmaaccrroo ((CC--xx ))))
- Stop saving the characters typed into the current
- keyboard macro and store the definition.
- ccaallll--llaasstt--kkbbdd--mmaaccrroo ((CC--xx ee))
- Re-execute the last keyboard macro defined, by mak-
- ing the characters in the macro appear as if typed
- at the keyboard.
+GNU 1998 Dec 31 11
-GNU 1998 Feb 19 11
+READLINE(3) READLINE(3)
-READLINE(3) READLINE(3)
+ ddeelleettee--cchhaarr--oorr--lliisstt
+ Deletes the character under the cursor if not at
+ the beginning or end of the line (like ddeelleettee--
+ cchhaarr). If at the end of the line, behaves identi-
+ cally to ppoossssiibbllee--ccoommpplleettiioonnss. This command is
+ unbound by default.
+ KKeeyybbooaarrdd MMaaccrrooss
+ ssttaarrtt--kkbbdd--mmaaccrroo ((CC--xx (())
+ Begin saving the characters typed into the current
+ keyboard macro.
+ eenndd--kkbbdd--mmaaccrroo ((CC--xx ))))
+ Stop saving the characters typed into the current
+ keyboard macro and store the definition.
+ ccaallll--llaasstt--kkbbdd--mmaaccrroo ((CC--xx ee))
+ Re-execute the last keyboard macro defined, by mak-
+ ing the characters in the macro appear as if typed
+ at the keyboard.
MMiisscceellllaanneeoouuss
rree--rreeaadd--iinniitt--ffiillee ((CC--xx CC--rr))
@@ -753,7 +772,7 @@ READLINE(3) READLINE(3)
Undo all changes made to this line. This is like
executing the uunnddoo command enough times to return
the line to its initial state.
- ttiillddee--eexxppaanndd ((MM--~~))
+ ttiillddee--eexxppaanndd ((MM--&&))
Perform tilde expansion on the current word.
sseett--mmaarrkk ((CC--@@,, MM--<>))
Set the mark to the current point. If a numeric
@@ -765,6 +784,18 @@ READLINE(3) READLINE(3)
cursor position is saved as the mark.
cchhaarraacctteerr--sseeaarrcchh ((CC--]]))
A character is read and point is moved to the next
+
+
+
+GNU 1998 Dec 31 12
+
+
+
+
+
+READLINE(3) READLINE(3)
+
+
occurrence of that character. A negative count
searches for previous occurrences.
cchhaarraacctteerr--sseeaarrcchh--bbaacckkwwaarrdd ((MM--CC--]]))
@@ -783,20 +814,8 @@ READLINE(3) READLINE(3)
ment is supplied, the output is formatted in such a
way that it can be made part of an _i_n_p_u_t_r_c file.
dduummpp--vvaarriiaabblleess
- Print all of the settable variables and their
-
-
-
-GNU 1998 Feb 19 12
-
-
-
-
-
-READLINE(3) READLINE(3)
-
-
- values to the readline output stream. If a numeric
+ Print all of the settable variables and their val-
+ ues 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 _i_n_p_u_t_r_c
file.
@@ -830,6 +849,19 @@ DDEEFFAAUULLTT KKEEYY BBIINNDDIINNGGSS
the bell (subject to the setting of the bbeellll--ssttyyllee vari-
able).
+
+
+
+
+GNU 1998 Dec 31 13
+
+
+
+
+
+READLINE(3) READLINE(3)
+
+
EEmmaaccss MMooddee
Emacs Standard bindings
@@ -850,18 +882,6 @@ DDEEFFAAUULLTT KKEEYY BBIINNDDIINNGGSS
"C-P" previous-history
"C-Q" quoted-insert
"C-R" reverse-search-history
-
-
-
-GNU 1998 Feb 19 13
-
-
-
-
-
-READLINE(3) READLINE(3)
-
-
"C-S" forward-search-history
"C-T" transpose-chars
"C-U" unix-line-discard
@@ -896,6 +916,18 @@ READLINE(3) READLINE(3)
"M-1" digit-argument
"M-2" digit-argument
"M-3" digit-argument
+
+
+
+GNU 1998 Dec 31 14
+
+
+
+
+
+READLINE(3) READLINE(3)
+
+
"M-4" digit-argument
"M-5" digit-argument
"M-6" digit-argument
@@ -916,18 +948,6 @@ READLINE(3) READLINE(3)
"M-R" revert-line
"M-T" transpose-words
"M-U" upcase-word
-
-
-
-GNU 1998 Feb 19 14
-
-
-
-
-
-READLINE(3) READLINE(3)
-
-
"M-Y" yank-pop
"M-\" delete-horizontal-space
"M-~" tilde-expand
@@ -962,6 +982,18 @@ READLINE(3) READLINE(3)
"C-W" unix-word-rubout
"C-Y" yank
"C-[" vi-movement-mode
+
+
+
+GNU 1998 Dec 31 15
+
+
+
+
+
+READLINE(3) READLINE(3)
+
+
"C-_" undo
" " to "~" self-insert
"C-?" backward-delete-char
@@ -982,18 +1014,6 @@ READLINE(3) READLINE(3)
"C-R" reverse-search-history
"C-S" forward-search-history
"C-T" transpose-chars
-
-
-
-GNU 1998 Feb 19 15
-
-
-
-
-
-READLINE(3) READLINE(3)
-
-
"C-U" unix-line-discard
"C-V" quoted-insert
"C-W" unix-word-rubout
@@ -1028,6 +1048,18 @@ READLINE(3) READLINE(3)
"S" vi-subst
"T" vi-char-search
"U" revert-line
+
+
+
+GNU 1998 Dec 31 16
+
+
+
+
+
+READLINE(3) READLINE(3)
+
+
"W" vi-next-word
"X" backward-delete-char
"Y" vi-yank-to
@@ -1048,18 +1080,6 @@ READLINE(3) READLINE(3)
"l" forward-char
"m" vi-set-mark
"n" vi-search-again
-
-
-
-GNU 1998 Feb 19 16
-
-
-
-
-
-READLINE(3) READLINE(3)
-
-
"p" vi-put
"r" vi-change-char
"s" vi-subst
@@ -1094,6 +1114,18 @@ BBUUGG RREEPPOORRTTSS
library that you have.
Once you have determined that a bug actually exists, mail
+
+
+
+GNU 1998 Dec 31 17
+
+
+
+
+
+READLINE(3) READLINE(3)
+
+
a bug report to _b_u_g_-_r_e_a_d_l_i_n_e@_g_n_u_._o_r_g. If you have a fix,
you are welcome to mail that as well! Suggestions and
`philosophical' bug reports may be mailed to _b_u_g_-_r_e_a_d_-
@@ -1117,6 +1149,40 @@ BBUUGGSS
-GNU 1998 Feb 19 17
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+GNU 1998 Dec 31 18
diff --git a/doc/readline.3 b/doc/readline.3
index bb9f759..6b36f2f 100644
--- a/doc/readline.3
+++ b/doc/readline.3
@@ -6,9 +6,9 @@
.\" Case Western Reserve University
.\" chet@ins.CWRU.Edu
.\"
-.\" Last Change: Thu Feb 19 10:26:47 EST 1998
+.\" Last Change: Thu Dec 31 10:16:30 EST 1998
.\"
-.TH READLINE 3 "1998 Feb 19" GNU
+.TH READLINE 3 "1998 Dec 31" GNU
.\"
.\" File Name macro. This used to be `.PN', for Path Name,
.\" but Sun doesn't seem to like that very much.
@@ -22,6 +22,7 @@ readline \- get a line from a user with editing
.LP
.nf
.ft B
+#include
#include
#include
.ft
@@ -380,6 +381,19 @@ When set to \fBOn\fP, makes readline use a single line for display,
scrolling the input horizontally on a single screen line when it
becomes longer than the screen width rather than wrapping to a new line.
.TP
+.B input\-meta (Off)
+If set to \fBOn\fP, readline will enable eight-bit input (that is,
+it will not strip the high bit from the characters it reads),
+regardless of what the terminal claims it can support. The name
+.B meta\-flag
+is a synonym for this variable.
+.TP
+.B isearch\-terminators (``C\-[C\-J'')
+The string of characters that should terminate an incremental
+search without subsequently executing the character as a command.
+If this variable has not been given a value, the characters
+\fIESC\fP and \fIC\-J\fP will terminate an incremental search.
+.TP
.B keymap (emacs)
Set the current readline keymap. The set of legal keymap names is
\fIemacs, emacs-standard, emacs-meta, emacs-ctlx, vi, vi-move,
@@ -400,11 +414,6 @@ appended.
If set to \fBOn\fP, history lines that have been modified are displayed
with a preceding asterisk (\fB*\fP).
.TP
-.B meta\-flag (Off)
-If set to \fBOn\fP, readline will enable eight-bit input (that is,
-it will not strip the high bit from the characters it reads),
-regardless of what the terminal claims it can support.
-.TP
.B output\-meta (Off)
If set to \fBOn\fP, readline will display characters with the
eighth bit set directly rather than as a meta-prefixed escape
@@ -509,8 +518,10 @@ As each character of the search string is typed, readline displays
the next entry from the history matching the string typed so far.
An incremental search requires only as many characters as needed to
find the desired history entry.
-The Escape character is used to terminate an incremental search.
-Control-J will also terminate the search.
+The characters present in the value of the \fIisearch-terminators\fP
+variable are used to terminate an incremental search.
+If that variable has not been assigned a value the Escape and
+Control-J characters will terminate an incremental search.
Control-G will abort an incremental search and restore the original
line.
When the search is terminated, the history entry containing the
@@ -647,6 +658,11 @@ the last character typed was not bound to \fBBdelete\-char\fP, then return
Delete the character behind the cursor. When given a numeric argument,
save the deleted text on the kill ring.
.TP
+.B forward\-backward\-delete\-char
+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.
+.TP
.B quoted\-insert (C\-q, C\-v)
Add the next character that you type to the line verbatim. This is
how to insert characters like \fBC\-q\fP, for example.
@@ -798,6 +814,13 @@ of matches; a negative argument may be used to move backward
through the list.
This command is intended to be bound to \fBTAB\fP, but is unbound
by default.
+.TP
+.B delete\-char\-or\-list
+Deletes the character under the cursor if not at the beginning or
+end of the line (like \fBdelete-char\fP).
+If at the end of the line, behaves identically to
+\fBpossible-completions\fP.
+This command is unbound by default.
.PD
.SS Keyboard Macros
.PP
@@ -847,7 +870,7 @@ Undo all changes made to this line. This is like executing the
.B undo
command enough times to return the line to its initial state.
.TP
-.B tilde\-expand (M\-~)
+.B tilde\-expand (M\-&)
Perform tilde expansion on the current word.
.TP
.B set\-mark (C\-@, M-)
diff --git a/doc/readline.dvi b/doc/readline.dvi
index d8491dc0cb0011b9c90ad6e4c2cb72c6a5efc294..8335d6a21f269bcbd02ad65e7bfb9471f54aea34 100644
GIT binary patch
delta 16653
zc-oa)d3+Q__D@y!B!L7-Lhgfvo5UpM;z+m!G~ozW5EUVGGM!}1WG2i(5?CEwK~OeX
zhFYeE%LGL<3SJ|$;<}>jF1X@~xA-#=)b(Oj)O8V+_4lg!m`OzUv;JXvs;geTdgu4O
zYJRsr>cGzEtyx0~i}H&L%LU?Iho{A-W|fwIoFV`E3yLn
z^QRyoZB#b-$CbH4(wy=@e8G7n#K1#D(P_*^$Ok27_`qMsuRwwc-$q7FEU-j=ombT$
zlUjd+B)|<4V?3oHiNOF|eb7-O@$2p6DiBa+i;skg~yA_aNL^$M@N3Cy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oo`$}%~hG0~M
zvY5EyVVnk@M^1K4ug9$|9!^f;)vt;@j_h7A9@EvYmMaklSTM9=lE!;4)~^77%asS%7ct}P!S3fJB>IP_&EcH
za9Z}}r>$gq>Ku#!Ua7|*ac!~W(CxQL+4&OOC#x3UEJasPkm@VmF2hHG-^!-)m;KH&
z<3!+1IgZ~)%JE6y7mBdIsH>p!uaXkZ51BATTwR69$al}hF#f^<4B&0e=*mM@qBr-S
zPvIr>OY_LN6Z5f_N6b+;_dQsJ@F|NZ>X#Pc+P|>pEW#$b067S1?*9UIKvEBa
zaVh$XGnQbQ;1FE$H|jh4ml5iU`u1fQ$R{jEFERe_xKQA1E#YA$c^lPXVJ)6)6
zxPJxpBpJieTQE)j9n9A?;}?pqQ1S2^I0E?FbBUa_4SmExThRshsTH;2q-{77
z6u+BV(N|{e(s;HF2LNBVk>d2*fj=rrX6&ZJkhKf{P`3g_03dG&%Q$m@O+N2ix$xz_%EAD=jJ{5Z%2W=wHFJJoAu=Ii2b-*
z4K4h~!FzCBZ<}`Q$34!XgSVor?7w(D9lSJR
z?n`C+(1+-!jO5H1OZT`PCXZVRLT+ZtNU@mprR8O&a)aE8%e#7U4Mh>
z@eVpvR}t6rOo_{08$jd3b{c&h)2xE;2*YdQl20%cX;?L!#WHZn&5N=*T@$4M`qS{#
zhMQaY;Lk8ssEMAzZ9dp0%m{4d_dY{^*DhrwA`izPowcivpO~jFofA`LD(m8yr%W2E
z
-
+
GNU Readline Library
GNU Readline Library
-Edition 2.2, for Readline Library
Version 2.1.
-September 1997
+Edition 4.0, for Readline Library
Version 4.0.
+December 1998
Brian Fox, Free Software Foundation
Chet Ramey, Case Western Reserve University
-
-
-@dircategory Libraries
-@direntry
-* Readline: (readline). The GNU readline library API
-
-
+Table of Contents
+
+
This document describes the GNU Readline Library, a utility which aids
@@ -50,17 +110,17 @@ notice identical to this one.
Permission is granted to copy and distribute translations of this manual
into another language, under the above conditions for modified versions,
except that this permission notice may be stated in a translation approved
-by the Foundation.
+by the Free Software Foundation.
-Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+Copyright (C) 1988-1999 Free Software Foundation, Inc.
-
+
This chapter describes the basic features of the GNU
@@ -68,9 +128,19 @@ command line editing interface.
+
+
-
+
The following paragraphs describe the notation used to represent
@@ -88,24 +158,24 @@ The text M-k is read as `Meta-K' and describes the character
produced when the meta key (if you have one) is depressed, and the k
key is pressed. If you do not have a meta key, the identical keystroke
can be generated by typing ESC first, and then typing k.
-Either process is known as metafying the k key.
+Either process is known as metafying the k key.
The text M-C-k is read as `Meta-Control-k' and describes the
-character produced by metafying C-k.
+character produced by metafying C-k.
In addition, several keys have their own names. Specifically,
DEL, ESC, LFD, SPC, RET, and TAB all
stand for themselves when seen in this text, or in an init file
-(@xref{Readline Init File}).
+(see section Readline Init File).
-
+
@@ -124,16 +194,288 @@ regardless of the location of the cursor within the line.
+
+
+
+
+
+
+
+
+
+
+
+
+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 miss typing a character that you wanted to type, and
+not notice your error until you have typed several other characters. In
+that case, you can type C-b to move the cursor to the left, and then
+correct your mistake. Afterwards, you can move the cursor to the right
+with C-f.
+
+
+
+When you add text in the middle of a line, you will notice that characters
+to the right of the cursor are `pushed over' to make room for the text
+that you have inserted. Likewise, when you delete text behind the cursor,
+characters to the right of the cursor are `pulled back' to fill in the
+blank space created by the removal of the text. A list of the basic bare
+essentials for editing the text of an input line follows.
+
+
+
+
+- C-b
+
-
+Move back one character.
+
- C-f
+
-
+Move forward one character.
+
- DEL
+
-
+Delete the character to the left of the cursor.
+
- C-d
+
-
+Delete the character underneath the cursor.
+
- Printing characters
+
-
+Insert the character into the line at the cursor.
+
- C-_
+
-
+Undo the last editing command. You can undo all the way back to an
+empty line.
+
+
+
+
+
+
+
+The above table describes the most basic possible 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.
+
+
+
+
+- C-a
+
-
+Move to the start of the line.
+
- C-e
+
-
+Move to the end of the line.
+
- M-f
+
-
+Move forward a word, where a word is composed of letters and digits.
+
- M-b
+
-
+Move backward a word.
+
- C-l
+
-
+Clear the screen, reprinting the current line at the top.
+
+
+
+Notice how C-f moves forward a character, while M-f moves
+forward a word. It is a loose convention that control keystrokes
+operate on characters while meta keystrokes operate on words.
+
+
+
+
+
+
+
+
+
+
+
+
+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.
+If the description for a command says that it `kills' text, then you can
+be sure that you can get the text back in a different (or the same)
+place later.
+
+
+
+When you use a kill command, the text is saved in a kill-ring.
+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.
+
+
+
+
+Here is the list of commands for killing text.
+
+
+
+
+- C-k
+
-
+Kill the text from the current cursor position to the end of the line.
+
+
- M-d
+
-
+Kill from the cursor to the end of the current word, or if between
+words, to the end of the next word.
+
+
- M-DEL
+
-
+Kill from the cursor the start of the previous word, or if between
+words, to the start of the previous word.
+
+
- C-w
+
-
+Kill from the cursor to the previous whitespace. This is different than
+M-DEL because the word boundaries differ.
+
+
+
+
+Here is how to yank the text back into the line. Yanking
+means to copy the most-recently-killed text from the kill buffer.
+
+
+
+
+- C-y
+
-
+Yank the most recently killed text back into the buffer at the cursor.
+
+
- M-y
+
-
+Rotate the kill-ring, and yank the new top. You can only do this if
+the prior command is C-y or M-y.
+
+
+
+
+
+
+
+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
+act in a backward direction. For example, to kill text back to the
+start of the line, you might type `M-- C-k'.
+
+
+
+The general way to pass numeric arguments to a command is to type meta
+digits before the command. If the first `digit' typed is a minus
+sign (-), then the sign of the argument will be negative. Once
+you have typed one meta digit to get the argument started, you can type
+the remainder of the digits, and then the command. For example, to give
+the C-d command an argument of 10, you could type `M-1 0 C-d'.
+
+
+
+
-
+
+Readline provides commands for searching through the command history
+for lines containing a specified string.
+There are two search modes: incremental and non-incremental.
+
+
+
+Incremental searches begin before the user has finished typing the
+search string.
+As each character of the search string is typed, Readline displays
+the next entry from the history matching the string typed so far.
+An incremental search requires only as many characters as needed to
+find the desired history entry.
+The characters present in the value of the isearch-terminators variable
+are used to terminate an incremental search.
+If that variable has not been assigned a value, the ESC and
+C-J characters will terminate an incremental search.
+C-g will abort an incremental search and restore the original line.
+When the search is terminated, the history entry containing the
+search string becomes the current line.
+To find other matching entries in the history list, type C-s or
+C-r as appropriate.
+This will search backward or forward in the history for the next
+entry matching the search string typed so far.
+Any other key sequence bound to a Readline command will terminate
+the search and execute that command.
+For instance, a RET will terminate the search and accept
+the line, thereby executing the command from the history list.
+
+
+
+Non-incremental searches read the entire search string before starting
+to search for matching history lines. The search string may be
+typed by the user or be part of the contents of the current line.
+
+
+
+
+
+
+
+
+
+
+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 in his home directory.
+The name of this
+file is taken from the value of the environment variable INPUTRC
. If
+that variable is unset, the default is `~/.inputrc'.
+
+
+
+When a program which uses the Readline library starts up, the
+init file is read, and the key bindings are set.
+
+
+
+In addition, the C-x C-r
command re-reads this init file, thus
+incorporating any changes that you might have made to it.
+
+
+
+
+
+
+
+
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 (see section Conditional Init Constructs). Other lines
+constructs (see section Conditional Init Constructs). Other lines
denote variable settings and key bindings.
@@ -159,7 +501,7 @@ variables.
bell-style
-
+
Controls what happens when Readline wants to ring the terminal bell.
If set to `none', Readline never rings the bell. If set to
`visible', Readline uses a visible bell if one is available.
@@ -168,7 +510,7 @@ the terminal's bell.
comment-begin
-
+
The string to insert at the beginning of the line when the
insert-comment
command is executed. The default value
is "#"
.
@@ -181,7 +523,7 @@ The default value is `off'.
completion-query-items
-
+
The number of possible completions that determines when the user is
asked whether he wants to see the list of possibilities. If the
number of possible completions is greater than this value,
@@ -191,7 +533,7 @@ them; otherwise, they are simply listed. The default limit is
convert-meta
-
+
If set to `on', Readline will convert characters with the
eighth bit set to an ASCII key sequence by stripping the eighth
bit and prepending an ESC character, converting them to a
@@ -199,14 +541,14 @@ meta-prefixed key sequence. The default value is `on'.
disable-completion
-
+
If set to `On', Readline will inhibit word completion.
Completion characters will be inserted into the line as if they had
been mapped to self-insert
. The default is `off'.
editing-mode
-
+
The editing-mode
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
@@ -214,29 +556,47 @@ set to either `emacs' or `vi'.
enable-keypad
-
+
When set to `on', Readline will try to enable the application
keypad when it is called. Some systems need this to enable the
arrow keys. The default is `off'.
expand-tilde
-
+
If set to `on', tilde expansion is performed when Readline
attempts word completion. The default is `off'.
horizontal-scroll-mode
-
+
This variable can be set to either `on' or `off'. Setting it
to `on' means that the text of the lines being edited will scroll
horizontally on a single screen line when they are longer than the width
of the screen, instead of wrapping onto a new screen line. By default,
this variable is set to `off'.
+input-meta
+
+
+
+If set to `on', Readline will enable eight-bit input (it
+will not strip the eighth bit from the characters it reads),
+regardless of what the terminal claims it can support. The
+default value is `off'. The name meta-flag
is a
+synonym for this variable.
+
+isearch-terminators
+
+
+The string of characters that should terminate an incremental search without
+subsequently executing the character as a command (see section Searching for Commands in the History).
+If this variable has not been given a value, the characters ESC and
+C-J will terminate an incremental search.
+
keymap
-
+
Sets Readline's idea of the current keymap for key binding commands.
Acceptable keymap
names are
emacs
,
@@ -258,24 +618,14 @@ appended. The default is `on'.
mark-modified-lines
-
+
This variable, when set to `on', causes Readline to display an
asterisk (`*') at the start of history lines which have been modified.
This variable is `off' by default.
-input-meta
-
-
-
-If set to `on', Readline will enable eight-bit input (it
-will not strip the eighth bit from the characters it reads),
-regardless of what the terminal claims it can support. The
-default value is `off'. The name meta-flag
is a
-synonym for this variable.
-
output-meta
-
+
If set to `on', Readline will display characters with the
eighth bit set directly rather than as a meta-prefixed escape
sequence. The default is `off'.
@@ -288,7 +638,7 @@ The default is `off'.
show-all-if-ambiguous
-
+
This alters the default behavior of the completion functions. If
set to `on',
words which have more than one possible completion cause the
@@ -297,7 +647,7 @@ The default value is `off'.
visible-stats
-
+
If set to `on', a character denoting a file's type
is appended to the filename when listing possible
completions. The default is `off'.
@@ -439,7 +789,7 @@ insert a single `\' into the line:
-
+
Readline implements a facility similar in spirit to the conditional
@@ -519,7 +869,7 @@ $include /etc/inputrc
-
+
Here is an example of an inputrc file. This illustrates key
@@ -629,7 +979,19 @@ $endif
-
+
+
+
+
This section describes Readline commands that may be bound to key
@@ -638,117 +1000,117 @@ sequences.
-
+
beginning-of-line (C-a)
-
-
+
Move to the start of the current line.
end-of-line (C-e)
-
-
+
Move to the end of the line.
forward-char (C-f)
-
-
+
Move forward a character.
backward-char (C-b)
-
-
+
Move back a character.
forward-word (M-f)
-
-
+
Move forward to the end of the next word. Words are composed of
letters and digits.
backward-word (M-b)
-
-
+
Move back to the start of this, or the previous, word. Words are
composed of letters and digits.
clear-screen (C-l)
-
-
+
Clear the screen and redraw the current line,
leaving the current line at the top of the screen.
redraw-current-line ()
-
-
+
Refresh the current line. By default, this is unbound.
-
+
accept-line (Newline, Return)
-
-
+
Accept the line regardless of where the cursor is. If this line is
non-empty, add it to the history list. If this line was a history
line, then restore the history line to its original state.
previous-history (C-p)
-
-
+
Move `up' through the history list.
next-history (C-n)
-
-
+
Move `down' through the history list.
beginning-of-history (M-<)
-
-
+
Move to the first line in the history.
end-of-history (M->)
-
-
+
Move to the end of the input history, i.e., the line currently
being entered.
reverse-search-history (C-r)
-
-
+
Search backward starting at the current line and moving `up' through
the history as necessary. This is an incremental search.
forward-search-history (C-s)
-
-
+
Search forward starting at the current line and moving `down' through
the the history as necessary. This is an incremental search.
non-incremental-reverse-search-history (M-p)
-
-
+
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.
non-incremental-forward-search-history (M-n)
-
-
+
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.
history-search-forward ()
-
-
+
Search forward through the history for the string of characters
between the start of the current line and the current cursor
position (the point). This is a non-incremental search. By
@@ -756,14 +1118,14 @@ default, this command is unbound.
history-search-backward ()
-
-
+
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.
yank-nth-arg (M-C-y)
-
-
+
Insert the first argument to the previous command (usually
the second word on the previous line). With an argument n,
insert the nth word from the previous command (the words
@@ -772,7 +1134,7 @@ inserts the nth word from the end of the previous command.
yank-last-arg (M-., 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
.
@@ -783,13 +1145,13 @@ list, inserting the last argument of each line in turn.
-
+
delete-char (C-d)
-
-
+
Delete the character under the cursor. If the cursor is at the
beginning of the line, there are no characters in the line, and
the last character typed was not bound to
delete-char
, then
@@ -797,29 +1159,36 @@ return EOF
.
backward-delete-char (Rubout)
-
-
+
Delete the character behind the cursor. A numeric argument means
to kill the characters instead of deleting them.
+
forward-backward-delete-char ()
+-
+
+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.
+
quoted-insert (C-q, C-v)
-
-
+
Add the next character typed to the line verbatim. This is
how to insert key sequences like C-q, for example.
tab-insert (M-TAB)
-
-
+
Insert a tab character.
self-insert (a, b, A, 1, !, ...)
-
-
+
Insert yourself.
transpose-chars (C-t)
-
-
+
Drag the character before the cursor forward over
the character at the cursor, moving the
cursor forward as well. If the insertion point
@@ -829,25 +1198,25 @@ Negative arguments don't work.
transpose-words (M-t)
-
-
+
Drag the word behind the cursor past the word in front of the cursor
moving the cursor over that word as well.
upcase-word (M-u)
-
-
+
Uppercase the current (or following) word. With a negative argument,
uppercase the previous word, but do not move the cursor.
downcase-word (M-l)
-
-
+
Lowercase the current (or following) word. With a negative argument,
lowercase the previous word, but do not move the cursor.
capitalize-word (M-c)
-
-
+
Capitalize the current (or following) word. With a negative argument,
capitalize the previous word, but do not move the cursor.
@@ -855,110 +1224,110 @@ capitalize the previous word, but do not move the cursor.
-
+
kill-line (C-k)
-
-
+
Kill the text from the current cursor position to the end of the line.
backward-kill-line (C-x Rubout)
-
-
+
Kill backward to the beginning of the line.
unix-line-discard (C-u)
-
-
+
Kill backward from the cursor to the beginning of the current line.
The killed text is saved on the kill-ring.
kill-whole-line ()
-
-
+
Kill all characters on the current line, no matter where the
cursor is. By default, this is unbound.
kill-word (M-d)
-
-
+
Kill from the cursor to the end of the current word, or if between
words, to the end of the next word. Word boundaries are the same
as
forward-word
.
backward-kill-word (M-DEL)
-
-
+
Kill the word behind the cursor. Word boundaries are the same
as
backward-word
.
unix-word-rubout (C-w)
-
-
+
Kill the word behind the cursor, using white space as a word
boundary. The killed text is saved on the kill-ring.
delete-horizontal-space ()
-
-
+
Delete all spaces and tabs around point. By default, this is unbound.
kill-region ()
-
-
+
Kill the text between the point and the mark (saved
cursor position). This text is referred to as the region.
By default, this command is unbound.
copy-region-as-kill ()
-
-
+
Copy the text in the region to the kill buffer, so it can be yanked
right away. By default, this command is unbound.
copy-backward-word ()
-
-
+
Copy the word before point to the kill buffer.
The word boundaries are the same as
backward-word
.
By default, this command is unbound.
copy-forward-word ()
-
-
+
Copy the word following point to the kill buffer.
The word boundaries are the same as
forward-word
.
By default, this command is unbound.
yank (C-y)
-
-
+
Yank the top of the kill ring into the buffer at the current
cursor position.
yank-pop (M-y)
-
-
+
Rotate the kill-ring, and yank the new top. You can only do this if
the prior command is yank or yank-pop.
-
+
digit-argument (M-0, M-1, ... M--)
-
-
+
Add this digit to the argument already accumulating, or start a new
argument. M-- starts a negative argument.
universal-argument ()
-
-
+
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.
@@ -975,13 +1344,13 @@ By default, this is not bound to a key.
-
+
complete (TAB)
-
-
+
Attempt to do completion on the text before the cursor. This is
application-specific. Generally, if you are typing a filename
argument, you can do filename completion; if you are typing a command,
@@ -991,18 +1360,18 @@ you can do variable name completion, and so on.
possible-completions (M-?)
-
-
+
List the possible completions of the text before the cursor.
insert-completions (M-*)
-
-
+
Insert all completions of the text before point that would have
been generated by
possible-completions
.
menu-complete ()
-
-
+
Similar to
complete
, but replaces the word to be completed
with a single match from the list of possible completions.
Repeated execution of menu-complete
steps through the list
@@ -1015,27 +1384,36 @@ through the list.
This command is intended to be bound to TAB
, but is unbound
by default.
+ delete-char-or-list ()
+-
+
+Deletes the character under the cursor if not at the beginning or
+end of the line (like
delete-char
).
+If at the end of the line, behaves identically to
+possible-completions
.
+This command is unbound by default.
+
-
+
start-kbd-macro (C-x ()
-
-
+
Begin saving the characters typed into the current keyboard macro.
end-kbd-macro (C-x ))
-
-
+
Stop saving the characters typed into the current keyboard macro
and save the definition.
call-last-kbd-macro (C-x e)
-
-
+
Re-execute the last keyboard macro defined, by making the characters
in the macro appear as if typed at the keyboard.
@@ -1043,86 +1421,86 @@ in the macro appear as if typed at the keyboard.
-
+
re-read-init-file (C-x C-r)
-
-
+
Read in the contents of the inputrc file, and incorporate
any bindings or variable assignments found there.
abort (C-g)
-
-
+
Abort the current editing command and
ring the terminal's bell (subject to the setting of
bell-style
).
do-uppercase-version (M-a, M-b, M-x, ...)
-
-
+
If the metafied character x is lowercase, run the command
that is bound to the corresponding uppercase character.
prefix-meta (ESC)
-
-
+
Make the next character typed be metafied. This is for keyboards
without a meta key. Typing `ESC f' is equivalent to typing
`M-f'.
undo (C-_, C-x C-u)
-
-
+
Incremental undo, separately remembered for each line.
revert-line (M-r)
-
-
+
Undo all changes made to this line. This is like executing the
undo
command enough times to get back to the beginning.
tilde-expand (M-~)
-
-
+
Perform tilde expansion on the current word.
set-mark (C-@)
-
-
+
Set the mark to the current point. If a
numeric argument is supplied, the mark is set to that position.
exchange-point-and-mark (C-x C-x)
-
-
+
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.
character-search (C-])
-
-
+
A character is read and point is moved to the next occurrence of that
character. A negative count searches for previous occurrences.
character-search-backward (M-C-])
-
-
+
A character is read and point is moved to the previous occurrence
of that character. A negative count searches for subsequent
occurrences.
insert-comment (M-#)
-
-
+
The value of the
comment-begin
variable is inserted at the beginning of the current line,
and the line is accepted as if a newline had been typed.
dump-functions ()
-
-
+
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
@@ -1130,7 +1508,7 @@ of an inputrc file. This command is unbound by default.
dump-variables ()
-
-
+
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
@@ -1138,7 +1516,7 @@ of an inputrc file. This command is unbound by default.
dump-macros ()
-
-
+
Print all of the Readline key sequences bound to macros and the
strings they ouput. If a numeric argument is supplied,
the output is formatted in such a way that it can be made part
@@ -1148,7 +1526,7 @@ of an inputrc file. This command is unbound by default.
-
+
While the Readline library does not have a full set of vi
@@ -1175,7 +1553,7 @@ so forth.
-
+
This chapter describes the interface between the GNU Readline Library and
@@ -1186,9 +1564,22 @@ in your own programs, this section is for you.
+
+
-
+
Many programs provide a command line interface, such as mail
,
@@ -1199,8 +1590,8 @@ the simplest way possible, perhaps to replace calls in your code to
-
-
+
+
The function readline ()
prints a prompt and then reads and returns
a single line of text from the user. The line readline
returns is allocated with malloc ()
; you should free ()
@@ -1235,7 +1626,7 @@ Otherwise, the line is ended just as if a newline had been typed.
If you want the user to be able to get at the line later, (with
C-p for example), you must call add_history ()
to save the
-line away in a history list of such lines.
+line away in a history list of such lines.
@@ -1314,12 +1705,12 @@ Thus, to disable the default TAB behavior, the following suffices:
This code should be executed once at the start of your program; you
might write a function called initialize_readline ()
which
performs this and other desired initializations, such as installing
-custom completers (see section Custom Completers).
+custom completers (see section Custom Completers).
-
+
Readline provides many functions for manipulating the text of
@@ -1330,13 +1721,18 @@ customized functionality to Readline.
+
+
-
+
For readabilty, we declare a new type of object, called
-Function. A Function
is a C function which
+Function. A Function
is a C function which
returns an int
. The type declaration for Function
is:
@@ -1381,7 +1777,7 @@ for functions returning no value, pointer to char
, and
-
+
In order to write new functions for Readline, you need to know the
@@ -1417,7 +1813,7 @@ negative argument.
-
+
These variables are available to function writers.
@@ -1426,16 +1822,16 @@ These variables are available to function writers.
- Variable: char * rl_line_buffer
-
-
+
-
This is the line gathered so far. You are welcome to modify the
-contents of the line, but see section Allowing Undoing.
+contents of the line, but see section Allowing Undoing.
- Variable: int rl_point
-
-
+
-
The offset of the current cursor position in
rl_line_buffer
(the point).
@@ -1444,7 +1840,7 @@ The offset of the current cursor position in rl_line_buffer
- Variable: int rl_end
-
-
+
-
The number of characters present in
rl_line_buffer
. When
rl_point
is at the end of the line, rl_point
and
rl_end
are equal.
@@ -1454,7 +1850,7 @@ The number of characters present in rl_line_buffer
. When
- Variable: int rl_mark
-
-
+
-
The mark (saved position) in the current line. If set, the mark
and point define a region.
@@ -1463,7 +1859,7 @@ and point define a region.
- Variable: int rl_done
-
-
+
-
Setting this to a non-zero value causes Readline to return the current
line immediately.
@@ -1472,16 +1868,27 @@ line immediately.
- Variable: int rl_pending_input
-
-
+
-
Setting this to a value makes it the next keystroke read. This is a
way to stuff a single character into the input stream.
+
+
+
+- Variable: int rl_erase_empty_line
+
-
+Setting this to a non-zero value causes Readline to completely erase
+the current line, including any prompt, any time a newline is typed as
+the only character on an otherwise-empty line. The cursor is moved to
+the beginning of the newly-blank line.
+
+
- Variable: char * rl_prompt
-
-
+
-
The prompt Readline uses. This is set from the argument to
readline ()
, and should not be assigned to directly.
@@ -1490,7 +1897,7 @@ The prompt Readline uses. This is set from the argument to
- Variable: char * rl_library_version
-
-
+
-
The version number of this revision of the library.
@@ -1498,7 +1905,7 @@ The version number of this revision of the library.
- Variable: char * rl_terminal_name
-
-
+
-
The terminal type, used for initialization.
@@ -1506,17 +1913,17 @@ The terminal type, used for initialization.
- Variable: char * rl_readline_name
-
-
+
-
This variable is set to a unique name by each application using Readline.
The value allows conditional parsing of the inputrc file
-(see section Conditional Init Constructs).
+(see section Conditional Init Constructs).
- Variable: FILE * rl_instream
-
-
+
-
The stdio stream from which Readline reads input.
@@ -1524,7 +1931,7 @@ The stdio stream from which Readline reads input.
- Variable: FILE * rl_outstream
-
-
+
-
The stdio stream to which Readline performs output.
@@ -1532,16 +1939,26 @@ The stdio stream to which Readline performs output.
- Variable: Function * rl_startup_hook
-
-
+
-
If non-zero, this is the address of a function to call just
before
readline
prints the first prompt.
+
+
+
+- Variable: Function * rl_pre_input_hook
+
-
+If non-zero, this is the address of a function to call after
+the first prompt has been printed and just before
readline
+starts reading input characters.
+
+
- Variable: Function * rl_event_hook
-
-
+
-
If non-zero, this is the address of a function to call periodically
when readline is waiting for terminal input.
@@ -1550,30 +1967,30 @@ when readline is waiting for terminal input.
- Variable: Function * rl_getc_function
-
-
+
-
If non-zero,
readline
will call indirectly through this pointer
to get a character from the input stream. By default, it is set to
rl_getc
, the default readline
character input function
-(see section Utility Functions).
+(see section Utility Functions).
- Variable: VFunction * rl_redisplay_function
-
-
+
-
If non-zero,
readline
will call indirectly through this pointer
to update the display with the current contents of the editing buffer.
By default, it is set to rl_redisplay
, the default readline
-redisplay function (see section Redisplay).
+redisplay function (see section Redisplay).
- Variable: Keymap rl_executing_keymap
-
-
-This variable is set to the keymap (see section Selecting a Keymap) in which the
+
-
+This variable is set to the keymap (see section Selecting a Keymap) in which the
currently executing readline function was found.
@@ -1581,19 +1998,33 @@ currently executing readline function was found.
- Variable: Keymap rl_binding_keymap
-
-
-This variable is set to the keymap (see section Selecting a Keymap) in which the
+
-
+This variable is set to the keymap (see section Selecting a Keymap) in which the
last key binding occurred.
-
+
+
+
-
+
+
The user can dynamically change the bindings of keys while using
@@ -1617,7 +2048,7 @@ well. Readline provides a function for doing that:
- Function: int rl_add_defun (char *name, Function *function, int key)
-
-
+
-
Add name to the list of named functions. Make function be
the function that gets called. If key is not -1, then bind it to
function using
rl_bind_key ()
.
@@ -1634,10 +2065,10 @@ underlying functions described below.
-
+
-Key bindings take place on a keymap. The keymap is the
+Key bindings take place on a keymap. The keymap is the
association between the keys that the user types and the functions that
get run. You can make your own keymaps, copy existing keymaps, and tell
Readline which keymap to use.
@@ -1646,7 +2077,7 @@ Readline which keymap to use.
- Function: Keymap rl_make_bare_keymap ()
-
-
+
-
Returns a new, empty keymap. The space for the keymap is allocated with
malloc ()
; you should free ()
it when you are done.
@@ -1655,7 +2086,7 @@ Returns a new, empty keymap. The space for the keymap is allocated with
- Function: Keymap rl_copy_keymap (Keymap map)
-
-
+
-
Return a new keymap which is a copy of map.
@@ -1663,7 +2094,7 @@ Return a new keymap which is a copy of map.
- Function: Keymap rl_make_keymap ()
-
-
+
-
Return a new keymap with the printing characters bound to rl_insert,
the lowercase Meta characters bound to run their equivalents, and
the Meta digits bound to produce numeric arguments.
@@ -1673,7 +2104,7 @@ the Meta digits bound to produce numeric arguments.
- Function: void rl_discard_keymap (Keymap keymap)
-
-
+
-
Free the storage associated with keymap.
@@ -1686,7 +2117,7 @@ change which keymap is active.
- Function: Keymap rl_get_keymap ()
-
-
+
-
Returns the currently active keymap.
@@ -1694,7 +2125,7 @@ Returns the currently active keymap.
- Function: void rl_set_keymap (Keymap keymap)
-
-
+
-
Makes keymap the currently active keymap.
@@ -1702,24 +2133,24 @@ Makes keymap the currently active keymap.
- Function: Keymap rl_get_keymap_by_name (char *name)
-
-
+
-
Return the keymap matching name. name is one which would
-be supplied in a
set keymap
inputrc line (@xref{Readline Init File}).
+be supplied in a set keymap
inputrc line (see section Readline Init File).
- Function: char * rl_get_keymap_name (Keymap keymap)
-
-
+
-
Return the name matching keymap. name is one which would
-be supplied in a
set keymap
inputrc line (@xref{Readline Init File}).
+be supplied in a set keymap
inputrc line (see section Readline Init File).
-
+
You associate keys with functions through the keymap. Readline has
@@ -1737,7 +2168,7 @@ These functions manage key bindings.
- Function: int rl_bind_key (int key, Function *function)
-
-
+
-
Binds key to function in the currently active keymap.
Returns non-zero in the case of an invalid key.
@@ -1746,7 +2177,7 @@ Returns non-zero in the case of an invalid key.
- Function: int rl_bind_key_in_map (int key, Function *function, Keymap map)
-
-
+
-
Bind key to function in map. Returns non-zero in the case
of an invalid key.
@@ -1755,7 +2186,7 @@ of an invalid key.
- Function: int rl_unbind_key (int key)
-
-
+
-
Bind key to the null function in the currently active keymap.
Returns non-zero in case of error.
@@ -1764,7 +2195,7 @@ Returns non-zero in case of error.
- Function: int rl_unbind_key_in_map (int key, Keymap map)
-
-
+
-
Bind key to the null function in map.
Returns non-zero in case of error.
@@ -1773,7 +2204,7 @@ Returns non-zero in case of error.
- Function: int rl_unbind_function_in_map (Function *function, Keymap map)
-
-
+
-
Unbind all keys that execute function in map.
@@ -1781,7 +2212,7 @@ Unbind all keys that execute function in map.
- Function: int rl_unbind_command_in_map (char *command, Keymap map)
-
-
+
-
Unbind all keys that are bound to command in map.
@@ -1789,7 +2220,7 @@ Unbind all keys that are bound to command in map.
- Function: int rl_generic_bind (int type, char *keyseq, char *data, Keymap map)
-
-
+
-
Bind the key sequence represented by the string keyseq to the arbitrary
pointer data. type says what kind of data is pointed to by
data; this can be a function (
ISFUNC
), a macro
@@ -1801,25 +2232,25 @@ necessary. The initial keymap in which to do bindings is map.
- Function: int rl_parse_and_bind (char *line)
-
-
+
-
Parse line as if it had been read from the
inputrc
file and
perform any key bindings and variable assignments found
-(@xref{Readline Init File}).
+(see section Readline Init File).
- Function: int rl_read_init_file (char *filename)
-
-
+
-
Read keybindings and variable assignments from filename
-(@xref{Readline Init File}).
+(see section Readline Init File).
-
+
These functions allow you to find out what keys invoke named functions
@@ -1829,7 +2260,7 @@ and the functions invoked by a particular key sequence.
- Function: Function * rl_named_function (char *name)
-
-
+
-
Return the function with name name.
@@ -1837,7 +2268,7 @@ Return the function with name name.
- Function: Function * rl_function_of_keyseq (char *keyseq, Keymap map, int *type)
-
-
+
-
Return the function invoked by keyseq in keymap map.
If map is NULL, the current keymap is used. If type is
not NULL, the type of the object is returned in it (one of
ISFUNC
,
@@ -1848,7 +2279,7 @@ not NULL, the type of the object is returned in it (one of ISFUNC
,
- Function: char ** rl_invoking_keyseqs (Function *function)
-
-
+
-
Return an array of strings representing the key sequences used to
invoke function in the current keymap.
@@ -1857,7 +2288,7 @@ invoke function in the current keymap.
- Function: char ** rl_invoking_keyseqs_in_map (Function *function, Keymap map)
-
-
+
-
Return an array of strings representing the key sequences used to
invoke function in the keymap map.
@@ -1866,7 +2297,7 @@ invoke function in the keymap map.
- Function: void rl_function_dumper (int readable)
-
-
+
-
Print the readline function names and the key sequences currently
bound to them to
rl_outstream
. If readable is non-zero,
the list is formatted in such a way that it can be made part of an
@@ -1877,14 +2308,14 @@ the list is formatted in such a way that it can be made part of an
- Function: void rl_list_funmap_names ()
-
-
+
-
Print the names of all bindable Readline functions to
rl_outstream
.
-
+
Supporting the undo command is a painless thing, and makes your
@@ -1926,7 +2357,7 @@ tells undo what to undo, not how to undo it. UNDO_BEGIN
and
- Function: int rl_begin_undo_group ()
-
-
+
-
Begins saving undo information in a group construct. The undo
information usually comes from calls to
rl_insert_text ()
and
rl_delete_text ()
, but could be the result of calls to
@@ -1937,7 +2368,7 @@ information usually comes from calls to rl_insert_text ()
and
- Function: int rl_end_undo_group ()
-
-
+
-
Closes the current undo group started with
rl_begin_undo_group
()
. There should be one call to rl_end_undo_group ()
for each call to rl_begin_undo_group ()
.
@@ -1947,7 +2378,7 @@ for each call to rl_begin_undo_group ()
.
- Function: void rl_add_undo (enum undo_code what, int start, int end, char *text)
-
-
+
-
Remember how to undo an event (according to what). The affected
text runs from start to end, and encompasses text.
@@ -1956,7 +2387,7 @@ text runs from start to end, and encompasses text
- Function: void free_undo_list ()
-
-
+
-
Free the existing undo list.
@@ -1964,7 +2395,7 @@ Free the existing undo list.
- Function: int rl_do_undo ()
-
-
+
-
Undo the first thing on the undo list. Returns
0
if there was
nothing to undo, non-zero if something was undone.
@@ -1980,7 +2411,7 @@ the text range that you are going to modify.
- Function: int rl_modifying (int start, int end)
-
-
+
-
Tell Readline to save the text between start and end as a
single undo unit. It is assumed that you will subsequently modify
that text.
@@ -1989,12 +2420,12 @@ that text.
-
+
- Function: void rl_redisplay ()
-
-
+
-
Change what's displayed on the screen to reflect the current contents
of
rl_line_buffer
.
@@ -2003,7 +2434,7 @@ of rl_line_buffer
.
- Function: int rl_forced_update_display ()
-
-
+
-
Force the line to be updated and redisplayed, whether or not
Readline thinks the screen display is correct.
@@ -2012,7 +2443,7 @@ Readline thinks the screen display is correct.
- Function: int rl_on_new_line ()
-
-
+
-
Tell the update routines that we have moved onto a new (empty) line,
usually after ouputting a newline.
@@ -2021,7 +2452,7 @@ usually after ouputting a newline.
- Function: int rl_reset_line_state ()
-
-
+
-
Reset the display state to a clean state and redisplay the current line
starting on a new line.
@@ -2030,9 +2461,9 @@ starting on a new line.
- Function: int rl_message (va_alist)
-
-
+
-
The arguments are a string as would be supplied to
printf
. The
-resulting string is displayed in the echo area. The echo area
+resulting string is displayed in the echo area. The echo area
is also used to display numeric arguments and search strings.
@@ -2040,19 +2471,37 @@ is also used to display numeric arguments and search strings.
- Function: int rl_clear_message ()
-
-
+
-
Clear the message in the echo area.
+
+
+
+- Function: void rl_save_prompt ()
+
-
+Save the local Readline prompt display state in preparation for
+displaying a new message in the message area with
rl_message
.
+
+
+
+
+
+- Function: void rl_restore_prompt ()
+
-
+Restore the local Readline prompt display state saved by the most
+recent call to
rl_save_prompt
.
+
+
-
+
- Function: int rl_insert_text (char *text)
-
-
+
-
Insert text into the line at the current cursor position.
@@ -2060,7 +2509,7 @@ Insert text into the line at the current cursor position.
- Function: int rl_delete_text (int start, int end)
-
-
+
-
Delete the text between start and end in the current line.
@@ -2068,7 +2517,7 @@ Delete the text between start and end in the current line.
- Function: char * rl_copy_text (int start, int end)
-
-
+
-
Return a copy of the text between start and end in
the current line.
@@ -2077,7 +2526,7 @@ the current line.
- Function: int rl_kill_text (int start, int end)
-
-
+
-
Copy the text between start and end in the current line
to the kill ring, appending or prepending to the last kill if the
last command was a kill command. The text is deleted.
@@ -2089,14 +2538,14 @@ not a kill, a new kill ring slot is used.
-
+
- Function: int rl_read_key ()
-
-
+
-
Return the next character available. This handles input inserted into
-the input stream via pending input (see section Readline Variables)
+the input stream via pending input (see section Readline Variables)
and
rl_stuff_char ()
, macros, and characters read from the keyboard.
@@ -2104,7 +2553,7 @@ and rl_stuff_char ()
, macros, and characters read from the keyboard
- Function: int rl_getc (FILE *)
-
-
+
-
Return the next character available from the keyboard.
@@ -2112,7 +2561,7 @@ Return the next character available from the keyboard.
- Function: int rl_stuff_char (int c)
-
-
+
-
Insert c into the Readline input stream. It will be "read"
before Readline attempts to read characters from the terminal with
rl_read_key ()
.
@@ -2122,7 +2571,7 @@ before Readline attempts to read characters from the terminal with
- Function: rl_extend_line_buffer (int len)
-
-
+
-
Ensure that
rl_line_buffer
has enough space to hold len
characters, possibly reallocating it if necessary.
@@ -2131,7 +2580,7 @@ characters, possibly reallocating it if necessary.
- Function: int rl_initialize ()
-
-
+
-
Initialize or re-initialize Readline's internal state.
@@ -2139,7 +2588,7 @@ Initialize or re-initialize Readline's internal state.
- Function: int rl_reset_terminal (char *terminal_name)
-
-
+
-
Reinitialize Readline's idea of the terminal settings using
terminal_name as the terminal type (e.g.,
vt100
).
@@ -2148,7 +2597,7 @@ Reinitialize Readline's idea of the terminal settings using
- Function: int alphabetic (int c)
-
-
+
-
Return 1 if c is an alphabetic character.
@@ -2156,7 +2605,7 @@ Return 1 if c is an alphabetic character.
- Function: int numeric (int c)
-
-
+
-
Return 1 if c is a numeric character.
@@ -2164,10 +2613,24 @@ Return 1 if c is a numeric character.
- Function: int ding ()
-
-
+
-
Ring the terminal bell, obeying the setting of
bell-style
.
+
+
+
+- Function: void rl_display_match_list (char **matches, int len, int max)
+
-
+A convenience function for displaying a list of strings in
+columnar format on Readline's output stream.
matches
is the list
+of strings, in argv format, such as a list of completion matches.
+len
is the number of strings in matches
, and max
+is the length of the longest string in matches
. This function uses
+the setting of print-completions-horizontally
to select how the
+matches are displayed (see section Readline Init File Syntax).
+
+
The following are implemented as macros, defined in chartypes.h
.
@@ -2176,7 +2639,7 @@ The following are implemented as macros, defined in chartypes.h
.
- Function: int uppercase_p (int c)
-
-
+
-
Return 1 if c is an uppercase alphabetic character.
@@ -2184,7 +2647,7 @@ Return 1 if c is an uppercase alphabetic character.
- Function: int lowercase_p (int c)
-
-
+
-
Return 1 if c is a lowercase alphabetic character.
@@ -2192,7 +2655,7 @@ Return 1 if c is a lowercase alphabetic character.
- Function: int digit_p (int c)
-
-
+
-
Return 1 if c is a numeric character.
@@ -2200,7 +2663,7 @@ Return 1 if c is a numeric character.
- Function: int to_upper (int c)
-
-
+
-
If c is a lowercase alphabetic character, return the corresponding
uppercase character.
@@ -2209,7 +2672,7 @@ uppercase character.
- Function: int to_lower (int c)
-
-
+
-
If c is an uppercase alphabetic character, return the corresponding
lowercase character.
@@ -2218,14 +2681,14 @@ lowercase character.
- Function: int digit_value (int c)
-
-
+
-
If c is a number, return the value it represents.
-
+
An alternate interface is available to plain readline()
. Some
@@ -2239,7 +2702,7 @@ are functions available to make this easy.
- Function: void rl_callback_handler_install (char *prompt, Vfunction *lhandler)
-
-
+
-
Set up the terminal for readline I/O and display the initial
expanded value of prompt. Save the value of lhandler to
use as a callback when a complete line of input has been entered.
@@ -2249,7 +2712,7 @@ use as a callback when a complete line of input has been entered.
- Function: void rl_callback_read_char ()
-
-
+
-
Whenever an application determines that keyboard input is available, it
should call
rl_callback_read_char()
, which will read the next
character from the current input source. If that character completes the
@@ -2263,7 +2726,7 @@ line. EOF
is indicated by calling lhandler with a
- Function: void rl_callback_handler_remove ()
-
-
+
-
Restore the terminal to its initial state and remove the line handler.
This may be called from within a callback as well as independently.
@@ -2271,7 +2734,7 @@ This may be called from within a callback as well as independently.
-
+
Here is a function which changes lowercase characters to their uppercase
@@ -2342,7 +2805,168 @@ invert_case_line (count, key)
-
+
+
+
+Signals are asynchronous events sent to a process by the Unix kernel,
+sometimes on behalf of another process. They are intended to indicate
+exceptional events, like a user pressing the interrupt key on his
+terminal, or a network connection being broken. There is a class of
+signals that can be sent to the process currently reading input from
+the keyboard. Since Readline changes the terminal attributes when it
+is called, it needs to perform special processing when a signal is
+received to restore the terminal to a sane state, or provide application
+writers with functions to do so manually.
+
+
+
+Readline contains an internal signal handler that is installed for a
+number of signals (SIGINT
, SIGQUIT
, SIGTERM
,
+SIGALRM
, SIGTSTP
, SIGTTIN
, and SIGTTOU
).
+When one of these signals is received, the signal handler
+will reset the terminal attributes to those that were in effect before
+readline ()
was called, reset the signal handling to what it was
+before readline ()
was called, and resend the signal to the calling
+application.
+If and when the calling application's signal handler returns, Readline
+will reinitialize the terminal and continue to accept input.
+When a SIGINT
is received, the Readline signal handler performs
+some additional work, which will cause any partially-entered line to be
+aborted (see the description of rl_free_line_state ()
).
+
+
+
+There is an additional Readline signal handler, for SIGWINCH
, which
+the kernel sends to a process whenever the terminal's size changes (for
+example, if a user resizes an xterm
). The Readline SIGWINCH
+handler updates Readline's internal screen size state, and then calls any
+SIGWINCH
signal handler the calling application has installed.
+Readline calls the application's SIGWINCH
signal handler without
+resetting the terminal to its original state. If the application's signal
+handler does more than update its idea of the terminal size and return (for
+example, a longjmp
back to a main processing loop), it must
+call rl_cleanup_after_signal ()
(described below), to restore the
+terminal state.
+
+
+
+Readline provides two variables that allow application writers to
+control whether or not it will catch certain signals and act on them
+when they are received. It is important that applications change the
+values of these variables only when calling readline ()
, not in
+a signal handler, so Readline's internal signal state is not corrupted.
+
+
+
+
+- Variable: int rl_catch_signals
+
-
+If this variable is non-zero, Readline will install signal handlers for
+
SIGINT
, SIGQUIT
, SIGTERM
, SIGALRM
,
+SIGTSTP
, SIGTTIN
, and SIGTTOU
.
+
+
+
+The default value of rl_catch_signals
is 1.
+
+
+
+
+
+- Variable: int rl_catch_sigwinch
+
-
+If this variable is non-zero, Readline will install a signal handler for
+
SIGWINCH
.
+
+
+
+The default value of rl_catch_sigwinch
is 1.
+
+
+
+
+If an application does not wish to have Readline catch any signals, or
+to handle signals other than those Readline catches (SIGHUP
,
+for example),
+Readline provides convenience functions to do the necessary terminal
+and internal state cleanup upon receipt of a signal.
+
+
+
+
+- Function: void rl_cleanup_after_signal (void)
+
-
+This function will reset the state of the terminal to what it was before
+
readline ()
was called, and remove the Readline signal handlers for
+all signals, depending on the values of rl_catch_signals
and
+rl_catch_sigwinch
.
+
+
+
+
+
+- Function: void rl_free_line_state (void)
+
-
+This will free any partial state associated with the current input line
+(undo information, any partial history entry, any partially-entered
+keyboard macro, and any partially-entered numeric argument). This
+should be called before
rl_cleanup_after_signal ()
. The
+Readline signal handler for SIGINT
calls this to abort the
+current input line.
+
+
+
+
+
+- Function: void rl_reset_after_signal (void)
+
-
+This will reinitialize the terminal and reinstall any Readline signal
+handlers, depending on the values of
rl_catch_signals
and
+rl_catch_sigwinch
.
+
+
+
+
+If an application does not wish Readline to catch SIGWINCH
, it may
+call rl_resize_terminal ()
to force Readline to update its idea of
+the terminal size when a SIGWINCH
is received.
+
+
+
+
+- Function: void rl_resize_terminal (void)
+
-
+Update Readline's internal screen size.
+
+
+
+
+The following functions install and remove Readline's signal handlers.
+
+
+
+
+- Function: int rl_set_signals (void)
+
-
+Install Readline's signal handler for
SIGINT
, SIGQUIT
,
+SIGTERM
, SIGALRM
, SIGTSTP
, SIGTTIN
,
+SIGTTOU
, and SIGWINCH
, depending on the values of
+rl_catch_signals
and rl_catch_sigwinch
.
+
+
+
+
+
+- Function: int rl_clear_signals (void)
+
-
+Remove all of the Readline signal handlers installed by
+
rl_set_signals ()
.
+
+
+
+
+
+
Typically, a program that reads commands from the user has a way of
@@ -2353,9 +2977,16 @@ cooperate to provide this service.
+
+
-
+
In order to complete some text, the full list of possible completions
@@ -2388,7 +3019,7 @@ completion, depending on which behavior is desired.
-
The internal function
completion_matches ()
uses your
-generator function to generate the list of possible matches, and
+generator function to generate the list of possible matches, and
then returns the array of these matches. You should place the address
of your generator function in rl_completion_entry_function
.
@@ -2413,7 +3044,7 @@ frees the strings when it has finished with them.
- Function: int rl_complete (int ignore, int invoking_key)
-
-
+
-
Complete the word at or before point. You have supplied the function
that does the initial simple matching selection algorithm (see
completion_matches ()
). The default is to do filename completion.
@@ -2423,7 +3054,7 @@ that does the initial simple matching selection algorithm (see
- Variable: Function * rl_completion_entry_function
-
-
+
-
This is a pointer to the generator function for
completion_matches
()
. If the value of rl_completion_entry_function
is
(Function *)NULL
then the default filename generator function,
@@ -2433,7 +3064,7 @@ This is a pointer to the generator function for completion_matches
-
+
Here is the complete list of callable completion functions present in
@@ -2443,7 +3074,7 @@ Readline.
- Function: int rl_complete_internal (int what_to_do)
-
-
+
-
Complete the word at or before point. what_to_do says what to do
with the completion. A value of `?' means list the possible
completions. `TAB' means do standard completion. `*' means
@@ -2456,7 +3087,7 @@ performing partial completion.
- Function: int rl_complete (int ignore, int invoking_key)
-
-
+
-
Complete the word at or before point. You have supplied the function
that does the initial simple matching selection algorithm (see
completion_matches ()
and rl_completion_entry_function
).
@@ -2469,7 +3100,7 @@ argument depending on invoking_key.
- Function: int rl_possible_completions (int count, int invoking_key))
-
-
+
-
List the possible completions. See description of
rl_complete
()
. This calls rl_complete_internal ()
with an argument of
`?'.
@@ -2479,7 +3110,7 @@ List the possible completions. See description of rl_complete
- Function: int rl_insert_completions (int count, int invoking_key))
-
-
+
-
Insert the list of possible completions into the line, deleting the
partially-completed word. See description of
rl_complete ()
.
This calls rl_complete_internal ()
with an argument of `*'.
@@ -2489,7 +3120,7 @@ This calls rl_complete_internal ()
with an argument of `*'
- Function: char ** completion_matches (char *text, CPFunction *entry_func)
-
-
+
-
Returns an array of
(char *)
which is a list of completions for
text. If there are no completions, returns (char **)NULL
.
The first entry in the returned array is the substitution for text.
@@ -2509,7 +3140,7 @@ when there are no more matches.
- Function: char * filename_completion_function (char *text, int state)
-
-
+
-
A generator function for filename completion in the general case. Note
that completion in Bash is a little different because of all
the pathnames that must be followed when looking up completions for a
@@ -2521,7 +3152,7 @@ completion functions.
- Function: char * username_completion_function (char *text, int state)
-
-
+
-
A completion generator for usernames. text contains a partial
username preceded by a random character (usually `~'). As with all
completion generators, state is zero on the first call and non-zero
@@ -2531,12 +3162,12 @@ for subsequent calls.
-
+
- Variable: Function * rl_completion_entry_function
-
-
+
-
A pointer to the generator function for
completion_matches ()
.
NULL
means to use filename_entry_function ()
, the default
filename completer.
@@ -2546,7 +3177,7 @@ filename completer.
- Variable: CPPFunction * rl_attempted_completion_function
-
-
+
-
A pointer to an alternative function to create matches.
The function is called with text, start, and end.
start and end are indices in
rl_line_buffer
saying
@@ -2561,7 +3192,7 @@ array of strings returned will be used.
- Variable: CPFunction * rl_filename_quoting_function
-
-
+
-
A pointer to a function that will quote a filename in an application-
specific fashion. This is called if filename completion is being
attempted and one of the characters in
rl_filename_quote_characters
@@ -2579,7 +3210,7 @@ to reset this character.
- Variable: CPFunction * rl_filename_dequoting_function
-
-
+
-
A pointer to a function that will remove application-specific quoting
characters from a filename before completion is attempted, so those
characters do not interfere with matching the text against names in
@@ -2593,7 +3224,7 @@ that delimits the filename (usually `'' or `"'). If
- Variable: Function * rl_char_is_quoted_p
-
-
+
-
A pointer to a function to call that determines whether or not a specific
character in the line buffer is quoted, according to whatever quoting
mechanism the program calling readline uses. The function is called with
@@ -2607,7 +3238,7 @@ used to break words for the completer.
- Variable: int rl_completion_query_items
-
-
+
-
Up to this many items will be displayed in response to a
possible-completions call. After that, we ask the user if she is sure
she wants to see them all. The default value is 100.
@@ -2617,7 +3248,7 @@ she wants to see them all. The default value is 100.
- Variable: char * rl_basic_word_break_characters
-
-
+
-
The basic list of characters that signal a break between words for the
completer routine. The default value of this variable is the characters
which break words for completion in Bash, i.e.,
@@ -2628,7 +3259,7 @@ which break words for completion in Bash, i.e.,
- Variable: char * rl_basic_quote_characters
-
-
+
-
List of quote characters which can cause a word break.
@@ -2636,7 +3267,7 @@ List of quote characters which can cause a word break.
- Variable: char * rl_completer_word_break_characters
-
-
+
-
The list of characters that signal a break between words for
rl_complete_internal ()
. The default list is the value of
rl_basic_word_break_characters
.
@@ -2646,7 +3277,7 @@ The list of characters that signal a break between words for
- Variable: char * rl_completer_quote_characters
-
-
+
-
List of characters which can be used to quote a substring of the line.
Completion occurs on the entire substring, and within the substring
rl_completer_word_break_characters
are treated as any other character,
@@ -2657,7 +3288,7 @@ unless they also appear within this list.
- Variable: char * rl_filename_quote_characters
-
-
+
-
A list of characters that cause a filename to be quoted by the completer
when they appear in a completed filename. The default is the null string.
@@ -2666,7 +3297,7 @@ when they appear in a completed filename. The default is the null string.
- Variable: char * rl_special_prefixes
-
-
+
-
The list of characters that are word break characters, but should be
left in text when it is passed to the completion function.
Programs can use this to help determine what kind of completing to do.
@@ -2678,7 +3309,7 @@ shell variables and hostnames.
- Variable: int rl_completion_append_character
-
-
+
-
When a single completion alternative matches at the end of the command
line, this character is appended to the inserted completion text. The
default is a space character (` '). Setting this to the null
@@ -2692,7 +3323,7 @@ an application-specific command line syntax specification.
- Variable: int rl_ignore_completion_duplicates
-
-
+
-
If non-zero, then disallow duplicates in the matches. Default is 1.
@@ -2700,7 +3331,7 @@ If non-zero, then disallow duplicates in the matches. Default is 1.
- Variable: int rl_filename_completion_desired
-
-
+
-
Non-zero means that the results of the matches are to be treated as
filenames. This is always zero on entry, and can only be changed
within a completion entry generator function. If it is set to a non-zero
@@ -2713,7 +3344,7 @@ characters.
- Variable: int rl_filename_quoting_desired
-
-
+
-
Non-zero means that the results of the matches are to be quoted using
double quotes (or an application-specific quoting mechanism) if the
completed filename contains any characters in
@@ -2727,7 +3358,7 @@ by
rl_filename_quoting_function
.
- Variable: int rl_inhibit_completion
-
-
+
-
If this variable is non-zero, completion is inhibit<ed. The completion
character will be inserted as any other bound to
self-insert
.
@@ -2736,7 +3367,7 @@ character will be inserted as any other bound to self-insert
.
- Variable: Function * rl_ignore_some_completions_function
-
-
+
-
This function, if defined, is called by the completer when real filename
completion is done, after all the matching names have been generated.
It is passed a
NULL
terminated array of matches.
@@ -2750,17 +3381,35 @@ from the array must be freed.
- Variable: Function * rl_directory_completion_hook
-
-
+
-
This function, if defined, is allowed to modify the directory portion
of filenames Readline completes. It is called with the address of a
string (the current directory name) as an argument. It could be used
to expand symbolic links or shell variables in pathnames.
+
+
+
+- Variable: VFunction * rl_completion_display_matches_hook
+
-
+If non-zero, then this is the address of a function to call when
+completing a word would normally display the list of possible matches.
+This function is called in lieu of Readline displaying the list.
+It takes three arguments:
+(
char **
matches, int
num_matches, int
max_length)
+where matches is the array of matching strings,
+num_matches is the number of strings in that array, and
+max_length is the length of the longest string in that array.
+Readline provides a convenience function, rl_display_match_list
,
+that takes care of doing the display to Readline's output stream. That
+function may be called from this hook.
+
+
-
+
Here is a small application demonstrating the use of the GNU Readline
@@ -3202,281 +3851,380 @@ valid_argument (caller, arg)
-
+
-
i
+Jump to:
+c
+-
+e
+-
+i
+-
+k
+-
+n
+-
+r
+-
+y
+
+
+
+- command editing
+
+
+
+- editing command lines
+
+
+- initialization file, readline
- interaction, readline
-r
+
+
+- kill ring
+
- killing text
+
+
+
+- notation, readline
+
+
+
+- readline, function
+
+
-- readline, function
+
- yanking text
-
-
-
(
+
+
+Jump to:
+(
+-
+a
+-
+b
+-
+c
+-
+d
+-
+e
+-
+f
+-
+h
+-
+i
+-
+k
+-
+l
+-
+m
+-
+n
+-
+o
+-
+p
+-
+q
+-
+r
+-
+s
+-
+t
+-
+u
+-
+v
+-
+y
+
+
-- (int
+
- (int
-a
+
-- abort (C-g)
-
- accept-line (Newline, Return)
-
- alphabetic
+
- abort (C-g)
+
- accept-line (Newline, Return)
+
- alphabetic
-b
+
-- backward-char (C-b)
-
- backward-delete-char (Rubout)
-
- backward-kill-line (C-x Rubout)
-
- backward-kill-word (M-DEL)
-
- backward-word (M-b)
-
- beginning-of-history (M-<)
-
- beginning-of-line (C-a)
-
- bell-style
+
- backward-char (C-b)
+
- backward-delete-char (Rubout)
+
- backward-kill-line (C-x Rubout)
+
- backward-kill-word (M-DEL)
+
- backward-word (M-b)
+
- beginning-of-history (M-<)
+
- beginning-of-line (C-a)
+
- bell-style
-c
+
-- call-last-kbd-macro (C-x e)
-
- capitalize-word (M-c)
-
- character-search (C-])
-
- character-search-backward (M-C-])
-
- clear-screen (C-l)
-
- comment-begin
-
- complete (TAB)
-
- completion-query-items
-
- completion_matches
-
- convert-meta
-
- copy-backward-word ()
-
- copy-forward-word ()
-
- copy-region-as-kill ()
+
- call-last-kbd-macro (C-x e)
+
- capitalize-word (M-c)
+
- character-search (C-])
+
- character-search-backward (M-C-])
+
- clear-screen (C-l)
+
- comment-begin
+
- complete (TAB)
+
- completion-query-items
+
- completion_matches
+
- convert-meta
+
- copy-backward-word ()
+
- copy-forward-word ()
+
- copy-region-as-kill ()
-d
+
-- delete-char (C-d)
-
- delete-horizontal-space ()
-
- digit-argument (M-0, M-1, ... M--)
-
- digit_p
-
- digit_value
-
- ding
-
- disable-completion
-
- do-uppercase-version (M-a, M-b, M-x, ...)
-
- downcase-word (M-l)
-
- dump-functions ()
-
- dump-macros ()
-
- dump-variables ()
+
- delete-char (C-d)
+
- delete-char-or-list ()
+
- delete-horizontal-space ()
+
- digit-argument (M-0, M-1, ... M--)
+
- digit_p
+
- digit_value
+
- ding
+
- disable-completion
+
- do-uppercase-version (M-a, M-b, M-x, ...)
+
- downcase-word (M-l)
+
- dump-functions ()
+
- dump-macros ()
+
- dump-variables ()
-e
+
-- editing-mode
-
- enable-keypad
-
- end-kbd-macro (C-x ))
-
- end-of-history (M->)
-
- end-of-line (C-e)
-
- exchange-point-and-mark (C-x C-x)
-
- expand-tilde
+
- editing-mode
+
- enable-keypad
+
- end-kbd-macro (C-x ))
+
- end-of-history (M->)
+
- end-of-line (C-e)
+
- exchange-point-and-mark (C-x C-x)
+
- expand-tilde
-f
+
-- filename_completion_function
-
- forward-char (C-f)
-
- forward-search-history (C-s)
-
- forward-word (M-f)
-
- free_undo_list
+
- filename_completion_function
+
- forward-backward-delete-char ()
+
- forward-char (C-f)
+
- forward-search-history (C-s)
+
- forward-word (M-f)
+
- free_undo_list
-h
+
-- history-search-backward ()
-
- history-search-forward ()
-
- horizontal-scroll-mode
+
- history-search-backward ()
+
- history-search-forward ()
+
- horizontal-scroll-mode
-i
+
-- input-meta
-
- insert-comment (M-#)
-
- insert-completions (M-*)
+
- input-meta
+
- insert-comment (M-#)
+
- insert-completions (M-*)
+
- isearch-terminators
-k
+
-- keymap
-
- kill-line (C-k)
-
- kill-region ()
-
- kill-whole-line ()
-
- kill-word (M-d)
+
- keymap
+
- kill-line (C-k)
+
- kill-region ()
+
- kill-whole-line ()
+
- kill-word (M-d)
-l
+
-- lowercase_p
+
- lowercase_p
-m
+
-- mark-modified-lines
-
- menu-complete ()
-
- meta-flag
+
- mark-modified-lines
+
- menu-complete ()
+
- meta-flag
-n
+
-- next-history (C-n)
-
- non-incremental-forward-search-history (M-n)
-
- non-incremental-reverse-search-history (M-p)
-
- numeric
+
- next-history (C-n)
+
- non-incremental-forward-search-history (M-n)
+
- non-incremental-reverse-search-history (M-p)
+
- numeric
-o
+
-- output-meta
+
- output-meta
-p
+
-- possible-completions (M-?)
-
- prefix-meta (ESC)
-
- previous-history (C-p)
+
- possible-completions (M-?)
+
- prefix-meta (ESC)
+
- previous-history (C-p)
-q
+
-- quoted-insert (C-q, C-v)
+
- quoted-insert (C-q, C-v)
-r
+
-- re-read-init-file (C-x C-r)
-
- readline
-
- redraw-current-line ()
-
- reverse-search-history (C-r)
-
- revert-line (M-r)
-
- rl_add_defun
-
- rl_add_undo
-
- rl_attempted_completion_function
-
- rl_basic_quote_characters
-
- rl_basic_word_break_characters
-
- rl_begin_undo_group
-
- rl_bind_key
-
- rl_bind_key_in_map
-
- rl_binding_keymap
-
- rl_callback_handler_install
-
- rl_callback_handler_remove
-
- rl_callback_read_char
-
- rl_char_is_quoted_p
-
- rl_clear_message
-
- rl_complete, rl_complete
-
- rl_complete_internal
-
- rl_completer_quote_characters
-
- rl_completer_word_break_characters
-
- rl_completion_append_character
-
- rl_completion_entry_function, rl_completion_entry_function
-
- rl_completion_query_items
-
- rl_copy_keymap
-
- rl_copy_text
-
- rl_delete_text
-
- rl_directory_completion_hook
-
- rl_discard_keymap
-
- rl_do_undo
-
- rl_done
-
- rl_end
-
- rl_end_undo_group
-
- rl_event_hook
-
- rl_executing_keymap
-
- rl_filename_completion_desired
-
- rl_filename_dequoting_function
-
- rl_filename_quote_characters
-
- rl_filename_quoting_desired
-
- rl_filename_quoting_function
-
- rl_forced_update_display
-
- rl_function_dumper
-
- rl_function_of_keyseq
-
- rl_generic_bind
-
- rl_get_keymap
-
- rl_get_keymap_by_name
-
- rl_get_keymap_name
-
- rl_getc
-
- rl_getc_function
-
- rl_ignore_completion_duplicates
-
- rl_ignore_some_completions_function
-
- rl_inhibit_completion
-
- rl_initialize
-
- rl_insert_completions
-
- rl_insert_text
-
- rl_instream
-
- rl_invoking_keyseqs
-
- rl_invoking_keyseqs_in_map
-
- rl_kill_text
-
- rl_library_version
-
- rl_line_buffer
-
- rl_list_funmap_names
-
- rl_make_bare_keymap
-
- rl_make_keymap
-
- rl_mark
-
- rl_message
-
- rl_modifying
-
- rl_named_function
-
- rl_on_new_line
-
- rl_outstream
-
- rl_parse_and_bind
-
- rl_pending_input
-
- rl_point
-
- rl_possible_completions
-
- rl_prompt
-
- rl_read_init_file
-
- rl_read_key
-
- rl_readline_name
-
- rl_redisplay
-
- rl_redisplay_function
-
- rl_reset_line_state
-
- rl_reset_terminal
-
- rl_set_keymap
-
- rl_special_prefixes
-
- rl_startup_hook
-
- rl_stuff_char
-
- rl_terminal_name
-
- rl_unbind_command_in_map
-
- rl_unbind_function_in_map
-
- rl_unbind_key
-
- rl_unbind_key_in_map
+
- re-read-init-file (C-x C-r)
+
- readline
+
- redraw-current-line ()
+
- reverse-search-history (C-r)
+
- revert-line (M-r)
+
- rl_add_defun
+
- rl_add_undo
+
- rl_attempted_completion_function
+
- rl_basic_quote_characters
+
- rl_basic_word_break_characters
+
- rl_begin_undo_group
+
- rl_bind_key
+
- rl_bind_key_in_map
+
- rl_binding_keymap
+
- rl_callback_handler_install
+
- rl_callback_handler_remove
+
- rl_callback_read_char
+
- rl_catch_signals
+
- rl_catch_sigwinch
+
- rl_char_is_quoted_p
+
- rl_cleanup_after_signal
+
- rl_clear_message
+
- rl_clear_signals
+
- rl_complete, rl_complete
+
- rl_complete_internal
+
- rl_completer_quote_characters
+
- rl_completer_word_break_characters
+
- rl_completion_append_character
+
- rl_completion_display_matches_hook
+
- rl_completion_entry_function, rl_completion_entry_function
+
- rl_completion_query_items
+
- rl_copy_keymap
+
- rl_copy_text
+
- rl_delete_text
+
- rl_directory_completion_hook
+
- rl_discard_keymap
+
- rl_display_match_list
+
- rl_do_undo
+
- rl_done
+
- rl_end
+
- rl_end_undo_group
+
- rl_erase_empty_line
+
- rl_event_hook
+
- rl_executing_keymap
+
- rl_filename_completion_desired
+
- rl_filename_dequoting_function
+
- rl_filename_quote_characters
+
- rl_filename_quoting_desired
+
- rl_filename_quoting_function
+
- rl_forced_update_display
+
- rl_free_line_state
+
- rl_function_dumper
+
- rl_function_of_keyseq
+
- rl_generic_bind
+
- rl_get_keymap
+
- rl_get_keymap_by_name
+
- rl_get_keymap_name
+
- rl_getc
+
- rl_getc_function
+
- rl_ignore_completion_duplicates
+
- rl_ignore_some_completions_function
+
- rl_inhibit_completion
+
- rl_initialize
+
- rl_insert_completions
+
- rl_insert_text
+
- rl_instream
+
- rl_invoking_keyseqs
+
- rl_invoking_keyseqs_in_map
+
- rl_kill_text
+
- rl_library_version
+
- rl_line_buffer
+
- rl_list_funmap_names
+
- rl_make_bare_keymap
+
- rl_make_keymap
+
- rl_mark
+
- rl_message
+
- rl_modifying
+
- rl_named_function
+
- rl_on_new_line
+
- rl_outstream
+
- rl_parse_and_bind
+
- rl_pending_input
+
- rl_point
+
- rl_possible_completions
+
- rl_pre_input_hook
+
- rl_prompt
+
- rl_read_init_file
+
- rl_read_key
+
- rl_readline_name
+
- rl_redisplay
+
- rl_redisplay_function
+
- rl_reset_after_signal
+
- rl_reset_line_state
+
- rl_reset_terminal
+
- rl_resize_terminal
+
- rl_restore_prompt
+
- rl_save_prompt
+
- rl_set_keymap
+
- rl_set_signals
+
- rl_special_prefixes
+
- rl_startup_hook
+
- rl_stuff_char
+
- rl_terminal_name
+
- rl_unbind_command_in_map
+
- rl_unbind_function_in_map
+
- rl_unbind_key
+
- rl_unbind_key_in_map
-s
+
-- self-insert (a, b, A, 1, !, ...)
-
- set-mark (C-@)
-
- show-all-if-ambiguous
-
- start-kbd-macro (C-x ()
+
- self-insert (a, b, A, 1, !, ...)
+
- set-mark (C-@)
+
- show-all-if-ambiguous
+
- start-kbd-macro (C-x ()
-t
+
-- tab-insert (M-TAB)
-
- tilde-expand (M-~)
-
- to_lower
-
- to_upper
-
- transpose-chars (C-t)
-
- transpose-words (M-t)
+
- tab-insert (M-TAB)
+
- tilde-expand (M-~)
+
- to_lower
+
- to_upper
+
- transpose-chars (C-t)
+
- transpose-words (M-t)
-u
+
-- undo (C-_, C-x C-u)
-
- universal-argument ()
-
- unix-line-discard (C-u)
-
- unix-word-rubout (C-w)
-
- upcase-word (M-u)
-
- uppercase_p
-
- username_completion_function
+
- undo (C-_, C-x C-u)
+
- universal-argument ()
+
- unix-line-discard (C-u)
+
- unix-word-rubout (C-w)
+
- upcase-word (M-u)
+
- uppercase_p
+
- username_completion_function
-v
+
-- visible-stats
+
- visible-stats
-y
+
-- yank (C-y)
-
- yank-last-arg (M-., M-_)
-
- yank-nth-arg (M-C-y)
-
- yank-pop (M-y)
+
- yank (C-y)
+
- yank-last-arg (M-., M-_)
+
- yank-nth-arg (M-C-y)
+
- yank-pop (M-y)
-This document was generated on 2 April 1998 using the
-texi2html
-translator version 1.51.
+This document was generated on 31 December 1998 using the
+texi2html
+translator version 1.52.