🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by wbader Tue, 26 Jan 1993 02:27
bash and sco unix 3.2v4.0
#997
Author: wbader
Date: Tue, 26 Jan 1993 02:27
44 lines
1620 bytes
Changes to build bash-1.12 under SCO Unix 3.2v4.0:

In the M_UNIX section of machines.h:

#    if !defined (HAVE_GCC)
#      define REQUIRED_LIBRARIES -lPW -lmalloc -lc_s
#    endif /* !HAVE_GCC */

SCO Unix has alloca() in -lPW.
malloc pulls in a faster malloc than the one in -lc
-lc_s uses a shared library version of the c runtimes

jobs.c:

The ' #if defined (SCO) ' sections make bash hang on the call to waitpid.
I removed the SCO conditional code, and bash no longer hangs.
Apparently, SCO fixed the sigsuspend() call in 3.2v4.0, and somehow broke
something that the workaround uses.

lib/readline/readline.c:

In rl_search_history,
  /* Initialize search parameters. */
#if 1
  strncpy(search_string, the_line, 127);
  search_string[127] = '\0';
  search_string_index = strlen(search_string);
#else
  *search_string = '\0';
  search_string_index = 0;
#endif

So history searches start with the text already on the line as the pattern.


William Bader
Software Consulting Services
3162 Bath Pike
Nazareth, PA  18064
phone: 215-837-8485
fax:   215-837-8080
email: wbader@scarecrow.csee.lehigh.edu,
       wbader@einstein.mse.lehigh.edu,
       lehi3b15.csee.lehigh.edu!batman!bader
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