• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

cross-build/H03-May-2022-4740

doc/H03-May-2022-24,33019,774

examples/H03-May-2022-12,0249,151

shlib/H03-May-2022-502406

support/H03-May-2022-5,8364,719

.gitignoreH A D13-Sep-2020399 3829

CHANGELOGH A D03-Jul-202135.3 KiB1,4061,127

CHANGESH A D03-Jul-202174.6 KiB1,8281,246

COPYINGH A D13-Sep-202034.3 KiB675553

ChangeLog.gdbH A D03-Jul-202152 KiB1,5551,017

INSTALLH A D03-Jul-202112.2 KiB293230

MANIFESTH A D13-Sep-20202.8 KiB166165

Makefile.inH A D03-Jul-202119.2 KiB617483

NEWSH A D03-Jul-202118.3 KiB429304

READMEH A D03-Jul-20217.8 KiB197150

USAGEH A D13-Sep-20202 KiB3832

aclocal.m4H A D03-Jul-202156 KiB2,3032,121

ansi_stdlib.hH A D13-Sep-20201.4 KiB5520

bind.cH A D03-Jul-202173.7 KiB2,9712,247

callback.cH A D13-Sep-202010 KiB361243

chardefs.hH A D13-Sep-20204.6 KiB165110

colors.cH A D03-Jul-20217.9 KiB302232

colors.hH A D13-Sep-20203.5 KiB12768

compat.cH A D13-Sep-20202.3 KiB10767

complete.cH A D03-Jul-202187.7 KiB2,9912,025

config.h.inH A D13-Sep-20206.8 KiB303196

configureH A D03-Jul-2021220.7 KiB8,2426,790

configure.acH A D03-Jul-20218.8 KiB340271

display.cH A D03-Jul-2021113.3 KiB3,5582,390

emacs_keymap.cH A D03-Jul-202136.8 KiB873784

funmap.cH A D03-Jul-20219.6 KiB272218

histexpand.cH A D03-Jul-202141.5 KiB1,6961,200

histfile.cH A D03-Jul-202121.6 KiB836590

histlib.hH A D13-Sep-20202.4 KiB8645

history.cH A D13-Sep-202015.3 KiB608406

history.hH A D13-Sep-202010.5 KiB28791

histsearch.cH A D13-Sep-20207 KiB288200

input.cH A D03-Jul-202116.1 KiB716516

isearch.cH A D03-Jul-202126.1 KiB891604

keymaps.cH A D13-Sep-20204 KiB175106

keymaps.hH A D13-Sep-20203.2 KiB10139

kill.cH A D03-Jul-202119.3 KiB867626

macro.cH A D13-Sep-20208 KiB333217

mbutil.cH A D03-Jul-202112.2 KiB525381

misc.cH A D03-Jul-202117.7 KiB738508

nls.cH A D13-Sep-20206.8 KiB291195

parens.cH A D13-Sep-20204.7 KiB181123

parse-colors.cH A D13-Sep-202012.8 KiB441350

parse-colors.hH A D13-Sep-20201.5 KiB4713

patchlevelH A D03-Jul-202149 42

posixdir.hH A D03-Jul-20212.3 KiB7239

posixjmp.hH A D13-Sep-20201.4 KiB4717

posixselect.hH A D13-Sep-20201.3 KiB4822

posixstat.hH A D03-Jul-20214.9 KiB163104

readline.cH A D03-Jul-202143.2 KiB1,535982

readline.hH A D03-Jul-202138.8 KiB970474

readline.pc.inH A D03-Jul-2021332 1311

rlconf.hH A D13-Sep-20202.8 KiB8019

rldefs.hH A D13-Sep-20204.8 KiB167101

rlmbutil.hH A D03-Jul-20216.9 KiB214131

rlprivate.hH A D03-Jul-202118.6 KiB606381

rlshell.hH A D13-Sep-20201.2 KiB349

rlstdc.hH A D13-Sep-20201.8 KiB5824

rltty.cH A D13-Sep-202023.2 KiB992727

rltty.hH A D13-Sep-20202.5 KiB8145

rltypedefs.hH A D13-Sep-20203.1 KiB10148

rlwinsize.hH A D13-Sep-20202.2 KiB5927

savestring.cH A D13-Sep-20201.3 KiB4114

search.cH A D03-Jul-202118.4 KiB696480

shell.cH A D13-Sep-20204.6 KiB215141

signals.cH A D03-Jul-202120.6 KiB782539

tcap.hH A D13-Sep-20201.6 KiB6127

terminal.cH A D03-Jul-202121.4 KiB846589

text.cH A D03-Jul-202141.9 KiB1,8811,360

tilde.cH A D03-Jul-202112.8 KiB494329

tilde.hH A D13-Sep-20203 KiB8124

undo.cH A D03-Jul-20218 KiB368256

util.cH A D03-Jul-202111.8 KiB577426

vi_keymap.cH A D13-Sep-202035.7 KiB876789

vi_mode.cH A D03-Jul-202155 KiB2,4091,857

xfree.cH A D13-Sep-20201.5 KiB5016

xmalloc.cH A D13-Sep-20202 KiB7635

xmalloc.hH A D13-Sep-20201.3 KiB4618

README

1Introduction
2============
3
4This is the Gnu Readline library, version 8.1.
5
6The Readline library provides a set of functions for use by applications
7that allow users to edit command lines as they are typed in.  Both
8Emacs and vi editing modes are available.  The Readline library includes
9additional functions to maintain a list of previously-entered command
10lines, to recall and perhaps reedit those lines, and perform csh-like
11history expansion on previous commands.
12
13The history facilites are also placed into a separate library, the
14History library, as part of the build process.  The History library
15may be used without Readline in applications which desire its
16capabilities.
17
18The Readline library is free software, distributed under the terms of
19the [GNU] General Public License as published by the Free Software
20Foundation, version 3 of the License.  For more information, see the
21file COPYING.
22
23To build the library, try typing `./configure', then `make'.  The
24configuration process is automated, so no further intervention should
25be necessary.  Readline builds with `gcc' by default if it is
26available.  If you want to use `cc' instead, type
27
28        CC=cc ./configure
29
30if you are using a Bourne-style shell.  If you are not, the following
31may work:
32
33        env CC=cc ./configure
34
35Read the file INSTALL in this directory for more information about how
36to customize and control the build process.
37
38The file rlconf.h contains C preprocessor defines that enable and disable
39certain Readline features.
40
41The special make target `everything' will build the static and shared
42libraries (if the target platform supports them) and the examples.
43
44Examples
45========
46
47There are several example programs that use Readline features in the
48examples directory.  The `rl' program is of particular interest.  It
49is a command-line interface to Readline, suitable for use in shell
50scripts in place of `read'.
51
52Shared Libraries
53================
54
55There is skeletal support for building shared versions of the
56Readline and History libraries.  The configure script creates
57a Makefile in the `shlib' subdirectory, and typing `make shared'
58will cause shared versions of the Readline and History libraries
59to be built on supported platforms.
60
61If `configure' is given the `--enable-shared' option, it will attempt
62to build the shared libraries by default on supported platforms.
63
64Configure calls the script support/shobj-conf to test whether or
65not shared library creation is supported and to generate the values
66of variables that are substituted into shlib/Makefile.  If you
67try to build shared libraries on an unsupported platform, `make'
68will display a message asking you to update support/shobj-conf for
69your platform.
70
71If you need to update support/shobj-conf, you will need to create
72a `stanza' for your operating system and compiler.  The script uses
73the value of host_os and ${CC} as determined by configure.  For
74instance, FreeBSD 4.2 with any version of gcc is identified as
75`freebsd4.2-gcc*'.
76
77In the stanza for your operating system-compiler pair, you will need to
78define several variables.  They are:
79
80SHOBJ_CC	The C compiler used to compile source files into shareable
81		object files.  This is normally set to the value of ${CC}
82		by configure, and should not need to be changed.
83
84SHOBJ_CFLAGS	Flags to pass to the C compiler ($SHOBJ_CC) to create
85		position-independent code.  If you are using gcc, this
86		should probably be set to `-fpic'.
87
88SHOBJ_LD	The link editor to be used to create the shared library from
89		the object files created by $SHOBJ_CC.  If you are using
90		gcc, a value of `gcc' will probably work.
91
92SHOBJ_LDFLAGS	Flags to pass to SHOBJ_LD to enable shared object creation.
93		If you are using gcc, `-shared' may be all that is necessary.
94		These should be the flags needed for generic shared object
95		creation.
96
97SHLIB_XLDFLAGS	Additional flags to pass to SHOBJ_LD for shared library
98		creation.  Many systems use the -R option to the link
99		editor to embed a path within the library for run-time
100		library searches.  A reasonable value for such systems would
101		be `-R$(libdir)'.
102
103SHLIB_LIBS	Any additional libraries that shared libraries should be
104		linked against when they are created.
105
106SHLIB_LIBPREF	The prefix to use when generating the filename of the shared
107		library.  The default is `lib'; Cygwin uses `cyg'.
108
109SHLIB_LIBSUFF	The suffix to add to `libreadline' and `libhistory' when
110		generating the filename of the shared library.  Many systems
111		use `so'; HP-UX uses `sl'.
112
113SHLIB_LIBVERSION The string to append to the filename to indicate the version
114		of the shared library.  It should begin with $(SHLIB_LIBSUFF),
115		and possibly include version information that allows the
116		run-time loader to load the version of the shared library
117		appropriate for a particular program.  Systems using shared
118		libraries similar to SunOS 4.x use major and minor library
119		version numbers; for those systems a value of
120		`$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)' is appropriate.
121		Systems based on System V Release 4 don't use minor version
122		numbers; use `$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)' on those systems.
123		Other Unix versions use different schemes.
124
125SHLIB_DLLVERSION The version number for shared libraries that determines API
126		compatibility between readline versions and the underlying
127		system.  Used only on Cygwin.  Defaults to $SHLIB_MAJOR, but
128		can be overridden at configuration time by defining DLLVERSION
129		in the environment.
130
131SHLIB_DOT	The character used to separate the name of the shared library
132		from the suffix and version information.  The default is `.';
133		systems like Cygwin which don't separate version information
134		from the library name should set this to the empty string.
135
136SHLIB_STATUS	Set this to `supported' when you have defined the other
137		necessary variables.  Make uses this to determine whether
138		or not shared library creation should be attempted.
139
140You should look at the existing stanzas in support/shobj-conf for ideas.
141
142Once you have updated support/shobj-conf, re-run configure and type
143`make shared'.  The shared libraries will be created in the shlib
144subdirectory.
145
146If shared libraries are created, `make install' will install them.
147You may install only the shared libraries by running `make
148install-shared' from the top-level build directory.  Running `make
149install' in the shlib subdirectory will also work.  If you don't want
150to install any created shared libraries, run `make install-static'.
151
152Documentation
153=============
154
155The documentation for the Readline and History libraries appears in
156the `doc' subdirectory.  There are three texinfo files and a
157Unix-style manual page describing the facilities available in the
158Readline library.  The texinfo files include both user and
159programmer's manuals.  HTML versions of the manuals appear in the
160`doc' subdirectory as well.
161
162Usage
163=====
164
165Our position on the use of Readline through a shared-library linking
166mechanism is that there is no legal difference between shared-library
167linking and static linking--either kind of linking combines various
168modules into a single larger work.  The conditions for using Readline
169in a larger work are stated in section 3 of the GNU GPL.
170
171Reporting Bugs
172==============
173
174Bug reports for Readline should be sent to:
175
176        bug-readline@gnu.org
177
178When reporting a bug, please include the following information:
179
180        * the version number and release status of Readline (e.g., 4.2-release)
181        * the machine and OS that it is running on
182        * a list of the compilation flags or the contents of `config.h', if
183          appropriate
184        * a description of the bug
185        * a recipe for recreating the bug reliably
186        * a fix for the bug if you have one!
187
188If you would like to contact the Readline maintainer directly, send mail
189to bash-maintainers@gnu.org.
190
191Since Readline is developed along with bash, the bug-bash@gnu.org mailing
192list (mirrored to the Usenet newsgroup gnu.bash.bug) often contains
193Readline bug reports and fixes.
194
195Chet Ramey
196chet.ramey@case.edu
197