Article View: gnu.bash.bug
Article #997bash and sco unix 3.2v4.0
From: wbader
Date: Tue, 26 Jan 1993 02:27
Date: Tue, 26 Jan 1993 02:27
44 lines
1620 bytes
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
Technical Details
Message-ID:
<9301260117.AA04335@pluto.csee.lehigh.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!csee.lehigh.EDU!wbaderShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!csee.lehigh.EDU!wbader From: wbader@csee.lehigh.EDU (wbader) Newsgroups: gnu.bash.bug Subject: bash and sco unix 3.2v4.0 Date: 25 Jan 1993 21:27:28 -0500 Organization: GNUs Not Usenet Lines: 45 Sender: daemon@cis.ohio-state.edu Approved: bug-bash@prep.ai.mit.edu Distribution: gnu Message-ID: <9301260117.AA04335@pluto.csee.lehigh.edu>