🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by James Clark Wed, 14 Jun 1989 11:24
rl_getc on SYSV
#97
Author: James Clark
Date: Wed, 14 Jun 1989 11:24
27 lines
1145 bytes
The version of rl_getc that bash 0.99 provides for SYSV won't work for
meta characters on machines which have a signed char. The result is
that on such machines bash core dumps whenever a meta character is
used.

*** readline.c~ Tue Jun 13 14:18:20 1989
--- readline.c  Wed Jun 14 11:17:32 1989
***************
*** 4390,4396 ****
      {
        result = read (fileno (stream), &c, sizeof (char));
        if (result == sizeof (char))
!       return (c);

        if (errno != EINTR)
        return (EOF);
--- 4390,4396 ----
      {
        result = read (fileno (stream), &c, sizeof (char));
        if (result == sizeof (char))
!       return ((unsigned char)c);

        if (errno != EINTR)
        return (EOF);

James Clark
jjc@jclark.uucp
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads