]> git.ipfire.org Git - thirdparty/readline.git/commitdiff
commit readline-20160829 snapshot
authorChet Ramey <chet.ramey@case.edu>
Mon, 29 Aug 2016 15:02:02 +0000 (11:02 -0400)
committerChet Ramey <chet.ramey@case.edu>
Mon, 29 Aug 2016 15:02:02 +0000 (11:02 -0400)
CHANGES
CHANGES-7.0
histexpand.c
input.c
signals.c

diff --git a/CHANGES b/CHANGES
index 129143907926ec629479b9c4cae02a1e65e583f6..b5e16b716c9f37d82bae7f0e239abdb92b441263 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -106,8 +106,8 @@ hh.  Fixed an issue that caused completion of git commands to display
 ii.  Fixed several redisplay bugs having to do with multibyte characters and
      invisible characters in prompt strings.
 
-jj. Fixed a bug that caused mode strings to be displayed incorrectly if the prompt was
-    shorter than the mode string.
+jj. Fixed a bug that caused mode strings to be displayed incorrectly if the
+    prompt was shorter than the mode string.
 
 2.  New Features in Readline
 
@@ -176,10 +176,11 @@ r.  The :p history modifier now applies to the entire line, so any expansion
 s.  New application-callable function: rl_pending_signal(): returns the signal
     number of any signal readline has caught but not yet handled.
     
-t.  New application-settable variable: rl_persistent_signal_handlers: if set to a
-    non-zero value, readline will enable the readline-6.2 signal handler behavior   
-    in callback mode: handlers are installed when rl_callback_handler_install is
-    called and removed removed when a complete line has been read.
+t.  New application-settable variable: rl_persistent_signal_handlers: if set
+    to a non-zero value, readline will enable the readline-6.2 signal handler
+    behavior in callback mode: handlers are installed when
+    rl_callback_handler_install is called and removed removed when a complete
+    line has been read.
 
 -------------------------------------------------------------------------------
 This document details the changes between this version, readline-6.3, and the
index 36694cb475b173eb8f367e8b3550d73b25cc2a36..1d14b5dc1f807c7729e68e8b76c59d68fea92796 100644 (file)
@@ -106,8 +106,8 @@ hh.  Fixed an issue that caused completion of git commands to display
 ii.  Fixed several redisplay bugs having to do with multibyte characters and
      invisible characters in prompt strings.
 
-jj. Fixed a bug that caused mode strings to be displayed incorrectly if the prompt was
-    shorter than the mode string.
+jj. Fixed a bug that caused mode strings to be displayed incorrectly if the
+    prompt was shorter than the mode string.
 
 2.  New Features in Readline
 
@@ -154,6 +154,7 @@ k.  If readline reads a history file that begins with `#' (or the value of
 l.  Readline now throws an error if it parses a key binding without a terminating
     `:' or whitespace.
 
+
 m.  The default binding for ^W in vi mode now uses word boundaries specified
     by Posix (vi-unix-word-rubout is bindable command name).
 
@@ -176,7 +177,8 @@ r.  The :p history modifier now applies to the entire line, so any expansion
 s.  New application-callable function: rl_pending_signal(): returns the signal
     number of any signal readline has caught but not yet handled.
     
-t.  New application-settable variable: rl_persistent_signal_handlers: if set to a
-    non-zero value, readline will enable the readline-6.2 signal handler behavior   
-    in callback mode: handlers are installed when rl_callback_handler_install is
-    called and removed removed when a complete line has been read.
+t.  New application-settable variable: rl_persistent_signal_handlers: if set
+    to a non-zero value, readline will enable the readline-6.2 signal handler
+    behavior in callback mode: handlers are installed when
+    rl_callback_handler_install is called and removed removed when a complete
+    line has been read.
index 46a99aa62e30e56dc4d43c3e5bd4c240f7eec1c7..b84a6b8ac4b21e3c139a3e5eb66276e8b9f753bf 100644 (file)
@@ -44,6 +44,7 @@
 
 #include "history.h"
 #include "histlib.h"
+#include "chardefs.h"
 
 #include "rlshell.h"
 #include "xmalloc.h"
@@ -1433,10 +1434,10 @@ history_tokenize_word (string, ind)
       return i;
     }
 
-  if (isdigit (string[i]))
+  if (ISDIGIT (string[i]))
     {
       j = i;
-      while (string[j] && isdigit (string[j]))
+      while (string[j] && ISDIGIT (string[j]))
        j++;
       if (string[j] == 0)
        return (j);
@@ -1465,7 +1466,7 @@ history_tokenize_word (string, ind)
       else if (peek == '&' && (string[i] == '>' || string[i] == '<'))
        {
          j = i + 2;
-         while (string[j] && isdigit (string[j]))      /* file descriptor */
+         while (string[j] && ISDIGIT (string[j]))      /* file descriptor */
            j++;
          if (string[j] =='-')          /* <&[digits]-, >&[digits]- */
            j++;
diff --git a/input.c b/input.c
index 84faf5a844b0c956f480ca78f6c89964b2b6ab60..ce86853bf41d22587fa496ec020d88d810dee9c9 100644 (file)
--- a/input.c
+++ b/input.c
@@ -567,10 +567,18 @@ handle_error:
       if (errno != EINTR)
        return (RL_ISSTATE (RL_STATE_READCMD) ? READERR : EOF);
       /* fatal signals of interest */
+#if defined (SIGHUP)
       else if (_rl_caught_signal == SIGHUP || _rl_caught_signal == SIGTERM)
+#else
+      else if (_rl_caught_signal == SIGTERM)
+#endif
        return (RL_ISSTATE (RL_STATE_READCMD) ? READERR : EOF);
       /* keyboard-generated signals of interest */
+#if defined (SIGQUIT)
       else if (_rl_caught_signal == SIGINT || _rl_caught_signal == SIGQUIT)
+#else
+      else if (_rl_caught_signal == SIGINT)
+#endif
         RL_CHECK_SIGNALS ();
       /* non-keyboard-generated signals of interest */
       else if (_rl_caught_signal == SIGWINCH)
index 0b8dda4871d90863d87b202cf34a2bd3d3913ae0..927f532304efa51e99c9c87ca10056394d29079a 100644 (file)
--- a/signals.c
+++ b/signals.c
@@ -235,7 +235,9 @@ _rl_handle_signal (sig)
     case SIGTTOU:
 #endif /* SIGTSTP */
     case SIGTERM:
+#if defined (SIGHUP)
     case SIGHUP:
+#endif
 #if defined (SIGALRM)
     case SIGALRM:
 #endif
@@ -415,7 +417,9 @@ rl_set_signals ()
 
       sigaddset (&bset, SIGINT);
       sigaddset (&bset, SIGTERM);
+#if defined (SIGHUP)
       sigaddset (&bset, SIGHUP);
+#endif
 #if defined (SIGQUIT)
       sigaddset (&bset, SIGQUIT);
 #endif
@@ -444,7 +448,9 @@ rl_set_signals ()
 
       rl_maybe_set_sighandler (SIGINT, rl_signal_handler, &old_int);
       rl_maybe_set_sighandler (SIGTERM, rl_signal_handler, &old_term);
+#if defined (SIGHUP)
       rl_maybe_set_sighandler (SIGHUP, rl_signal_handler, &old_hup);
+#endif
 #if defined (SIGQUIT)
       rl_maybe_set_sighandler (SIGQUIT, rl_signal_handler, &old_quit);
 #endif
@@ -509,7 +515,9 @@ rl_clear_signals ()
         overhead */
       rl_maybe_restore_sighandler (SIGINT, &old_int);
       rl_maybe_restore_sighandler (SIGTERM, &old_term);
+#if defined (SIGHUP)
       rl_maybe_restore_sighandler (SIGHUP, &old_hup);
+#endif
 #if defined (SIGQUIT)
       rl_maybe_restore_sighandler (SIGQUIT, &old_quit);
 #endif