2018-03-16 11:45:52 +01:00
|
|
|
---
|
|
|
|
Makefile.in | 4 +---
|
|
|
|
complete.c | 6 +++---
|
|
|
|
doc/Makefile.in | 2 +-
|
|
|
|
doc/readline.3 | 11 +++++++++++
|
2022-09-27 10:03:22 +02:00
|
|
|
examples/fileman.c | 2 +-
|
2018-03-16 11:45:52 +01:00
|
|
|
history.h | 1 +
|
|
|
|
readline.c | 7 +++++--
|
|
|
|
readline.h | 3 ++-
|
|
|
|
support/shobj-conf | 5 +++--
|
2022-09-27 10:03:22 +02:00
|
|
|
9 files changed, 28 insertions(+), 13 deletions(-)
|
2018-03-16 11:45:52 +01:00
|
|
|
|
|
|
|
--- Makefile.in
|
2022-09-27 10:03:22 +02:00
|
|
|
+++ Makefile.in 2022-04-28 12:16:56.148759888 +0000
|
|
|
|
@@ -252,10 +252,8 @@ uninstall-pc:
|
2019-01-09 14:02:42 +01:00
|
|
|
maybe-uninstall-pc: uninstall-pc
|
2018-03-16 11:45:52 +01:00
|
|
|
|
2019-01-09 14:02:42 +01:00
|
|
|
install-static: installdirs $(STATIC_LIBS) install-headers install-doc ${install_examples} install-pc
|
2018-03-16 11:45:52 +01:00
|
|
|
- -$(MV) $(DESTDIR)$(libdir)/libreadline.a $(DESTDIR)$(libdir)/libreadline.old
|
|
|
|
$(INSTALL_DATA) libreadline.a $(DESTDIR)$(libdir)/libreadline.a
|
|
|
|
-test -n "$(RANLIB)" && $(RANLIB) $(DESTDIR)$(libdir)/libreadline.a
|
|
|
|
- -$(MV) $(DESTDIR)$(libdir)/libhistory.a $(DESTDIR)$(libdir)/libhistory.old
|
|
|
|
$(INSTALL_DATA) libhistory.a $(DESTDIR)$(libdir)/libhistory.a
|
|
|
|
-test -n "$(RANLIB)" && $(RANLIB) $(DESTDIR)$(libdir)/libhistory.a
|
|
|
|
|
2022-09-27 10:03:22 +02:00
|
|
|
@@ -286,7 +284,7 @@ install-doc: installdirs
|
2018-03-16 11:45:52 +01:00
|
|
|
$(INSTALL_DATA) $(OTHER_DOCS) $(DESTDIR)$(docdir)
|
|
|
|
-( if test -d doc ; then \
|
|
|
|
cd doc && \
|
|
|
|
- ${MAKE} ${MFLAGS} infodir=$(infodir) DESTDIR=${DESTDIR} install; \
|
|
|
|
+ ${MAKE} infodir=$(infodir) DESTDIR=${DESTDIR} install; \
|
|
|
|
fi )
|
|
|
|
|
|
|
|
uninstall-doc:
|
|
|
|
--- complete.c
|
2022-09-27 10:03:22 +02:00
|
|
|
+++ complete.c 2022-04-28 12:16:56.148759888 +0000
|
|
|
|
@@ -1148,7 +1148,7 @@ _rl_find_completion_word (int *fp, int *
|
2018-03-16 11:45:52 +01:00
|
|
|
/* We didn't find an unclosed quoted substring upon which to do
|
|
|
|
completion, so use the word break characters to find the
|
|
|
|
substring on which to complete. */
|
|
|
|
- while (rl_point = MB_PREVCHAR (rl_line_buffer, rl_point, MB_FIND_ANY))
|
|
|
|
+ while ((rl_point = MB_PREVCHAR (rl_line_buffer, rl_point, MB_FIND_ANY)))
|
|
|
|
{
|
|
|
|
scan = rl_line_buffer[rl_point];
|
|
|
|
|
2024-01-16 09:44:50 +01:00
|
|
|
@@ -2232,7 +2232,7 @@ rl_completion_matches (const char *text,
|
2018-03-16 11:45:52 +01:00
|
|
|
match_list = (char **)xmalloc ((match_list_size + 1) * sizeof (char *));
|
|
|
|
match_list[1] = (char *)NULL;
|
|
|
|
|
|
|
|
- while (string = (*entry_function) (text, matches))
|
|
|
|
+ while ((string = (*entry_function) (text, matches)))
|
|
|
|
{
|
|
|
|
if (RL_SIG_RECEIVED ())
|
|
|
|
{
|
2024-01-16 09:44:50 +01:00
|
|
|
@@ -2304,7 +2304,7 @@ rl_username_completion_function (const c
|
2018-03-16 11:45:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#if defined (HAVE_GETPWENT)
|
|
|
|
- while (entry = getpwent ())
|
|
|
|
+ while ((entry = getpwent ()))
|
|
|
|
{
|
|
|
|
/* Null usernames should result in all users as possible completions. */
|
|
|
|
if (namelen == 0 || (STREQN (username, entry->pw_name, namelen)))
|
|
|
|
--- doc/Makefile.in
|
2022-09-27 10:03:22 +02:00
|
|
|
+++ doc/Makefile.in 2022-04-28 12:16:56.148759888 +0000
|
2018-03-16 11:45:52 +01:00
|
|
|
@@ -107,7 +107,7 @@ DIST_DOCS = $(DVIOBJ) $(PSOBJ) $(HTMLOBJ
|
|
|
|
# $(RM) $@
|
|
|
|
# -${TEXI2PDF} $<
|
|
|
|
|
|
|
|
-all: info dvi html ps text pdf
|
|
|
|
+all: info html
|
|
|
|
nodvi: info html text
|
|
|
|
|
|
|
|
xdist: $(DIST_DOCS)
|
|
|
|
--- doc/readline.3
|
2022-09-27 10:03:22 +02:00
|
|
|
+++ doc/readline.3 2022-04-28 12:16:56.148759888 +0000
|
2018-03-16 11:45:52 +01:00
|
|
|
@@ -119,6 +119,14 @@ environment variable. If that variable
|
|
|
|
.IR ~/.inputrc .
|
|
|
|
If that file does not exist or cannot be read, the ultimate default is
|
|
|
|
.IR /etc/inputrc .
|
|
|
|
+If both files
|
|
|
|
+.I ~/.inputrc
|
|
|
|
+and
|
|
|
|
+.I /etc/inputrc
|
|
|
|
+exist readline will read first
|
|
|
|
+.I /etc/inputrc
|
|
|
|
+and then
|
|
|
|
+.IR ~/.inputrc .
|
|
|
|
When a program which uses the readline library starts up, the
|
|
|
|
init file is read, and the key bindings and variables are set.
|
|
|
|
There are only a few basic constructs allowed in the
|
2022-09-27 10:03:22 +02:00
|
|
|
@@ -1564,6 +1572,9 @@ VI Command Mode functions
|
2018-03-16 11:45:52 +01:00
|
|
|
.TP
|
|
|
|
.FN ~/.inputrc
|
|
|
|
Individual \fBreadline\fP initialization file
|
|
|
|
+.TP
|
|
|
|
+.FN /etc/inputrc
|
|
|
|
+System \fBreadline\fP initialization file
|
|
|
|
.PD
|
|
|
|
.SH AUTHORS
|
|
|
|
Brian Fox, Free Software Foundation
|
2022-09-27 10:03:22 +02:00
|
|
|
--- examples/fileman.c
|
|
|
|
+++ examples/fileman.c 2022-04-28 12:26:35.022374539 +0000
|
|
|
|
@@ -377,7 +377,7 @@ com_stat (arg)
|
|
|
|
|
|
|
|
printf ("Statistics for `%s':\n", arg);
|
|
|
|
|
|
|
|
- printf ("%s has %d link%s, and is %lu byte%s in length.\n",
|
|
|
|
+ printf ("%s has %lu link%s, and is %lu byte%s in length.\n",
|
|
|
|
arg,
|
|
|
|
finfo.st_nlink,
|
|
|
|
(finfo.st_nlink == 1) ? "" : "s",
|
2018-03-16 11:45:52 +01:00
|
|
|
--- history.h
|
2022-09-27 10:03:22 +02:00
|
|
|
+++ history.h 2022-04-28 12:16:56.152759816 +0000
|
2018-03-16 11:45:52 +01:00
|
|
|
@@ -32,6 +32,7 @@ extern "C" {
|
|
|
|
# include "rlstdc.h"
|
|
|
|
# include "rltypedefs.h"
|
|
|
|
#else
|
|
|
|
+# include <stdio.h>
|
|
|
|
# include <readline/rlstdc.h>
|
|
|
|
# include <readline/rltypedefs.h>
|
|
|
|
#endif
|
|
|
|
--- readline.c
|
2022-09-27 10:03:22 +02:00
|
|
|
+++ readline.c 2022-04-28 12:16:56.152759816 +0000
|
|
|
|
@@ -906,8 +906,11 @@ _rl_dispatch_subseq (register int key, K
|
2018-03-16 11:45:52 +01:00
|
|
|
{
|
|
|
|
/* Special case rl_do_lowercase_version (). */
|
|
|
|
if (func == rl_do_lowercase_version)
|
|
|
|
- /* Should we do anything special if key == ANYOTHERKEY? */
|
|
|
|
- return (_rl_dispatch (_rl_to_lower ((unsigned char)key), map));
|
|
|
|
+ {
|
|
|
|
+ if (key == ANYOTHERKEY)
|
|
|
|
+ return -1;
|
|
|
|
+ return (_rl_dispatch (_rl_to_lower ((unsigned char)key), map));
|
|
|
|
+ }
|
|
|
|
|
|
|
|
rl_executing_keymap = map;
|
|
|
|
rl_executing_key = key;
|
|
|
|
--- readline.h
|
2022-09-27 10:03:22 +02:00
|
|
|
+++ readline.h 2022-04-28 12:17:48.115828027 +0000
|
2018-03-16 11:45:52 +01:00
|
|
|
@@ -32,6 +32,7 @@ extern "C" {
|
|
|
|
# include "keymaps.h"
|
|
|
|
# include "tilde.h"
|
|
|
|
#else
|
|
|
|
+# include <stdio.h>
|
|
|
|
# include <readline/rlstdc.h>
|
|
|
|
# include <readline/rltypedefs.h>
|
|
|
|
# include <readline/keymaps.h>
|
2022-09-27 10:03:22 +02:00
|
|
|
@@ -496,7 +497,7 @@ extern char *rl_filename_completion_func
|
2018-03-16 11:45:52 +01:00
|
|
|
|
2022-09-27 10:03:22 +02:00
|
|
|
extern int rl_completion_mode (rl_command_func_t *);
|
2018-03-16 11:45:52 +01:00
|
|
|
|
|
|
|
-#if 0
|
|
|
|
+#ifdef OLD_READLINE
|
|
|
|
/* Backwards compatibility (compat.c). These will go away sometime. */
|
2022-09-27 10:03:22 +02:00
|
|
|
extern void free_undo_list (void);
|
|
|
|
extern int maybe_save_line (void);
|
2018-03-16 11:45:52 +01:00
|
|
|
--- support/shobj-conf
|
2022-09-27 10:03:22 +02:00
|
|
|
+++ support/shobj-conf 2022-04-28 12:18:35.078985803 +0000
|
2018-03-16 11:45:52 +01:00
|
|
|
@@ -126,10 +126,11 @@ sunos5*|solaris2*)
|
2022-09-27 10:03:22 +02:00
|
|
|
linux*-*|gnu*-*|k*bsd*-gnu-*|midnightbsd*|freebsd*|dragonfly*)
|
2018-03-16 11:45:52 +01:00
|
|
|
SHOBJ_CFLAGS=-fPIC
|
|
|
|
SHOBJ_LD='${CC}'
|
|
|
|
- SHOBJ_LDFLAGS='-shared -Wl,-soname,$@'
|
|
|
|
+ SHOBJ_LDFLAGS='-shared'
|
|
|
|
|
|
|
|
- SHLIB_XLDFLAGS='-Wl,-rpath,$(libdir) -Wl,-soname,`basename $@ $(SHLIB_MINOR)`'
|
|
|
|
+ SHLIB_XLDFLAGS='-Wl,-rpath-link,$(libdir) -Wl,-soname,`basename $@ $(SHLIB_MINOR)`'
|
|
|
|
SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)'
|
|
|
|
+ echo 'int main () { return 0; }' | gcc -ltinfo -o /dev/null -xc - > /dev/null 2>&1 && SHLIB_LIBS=-ltinfo || SHLIB_LIBS=-lncurses
|
|
|
|
;;
|
|
|
|
|
2021-01-11 12:44:48 +01:00
|
|
|
# Darwin/MacOS X
|