bash 1.05 on an IBM RISC 6000

Nesser pjnesser at mbunix.mitre.org
Thu Aug 30 04:17:50 AEST 1990


I have successfully (I hope/think) did the minor ports neccessary for
bash-1.05, patched from the patches on prep.ai.mit.edu as of 8/29/90, to
run on an IBM RISC 6000 workstation.  A couple of notes:

1.  My c compiler doesn't define any symbols so I had to define
RISC6000 in the Makefile.  Other machines may.  (If they do and they
don't call themselves RISC6000 then that should obviously be changed.)
(Read the INSTALL file)

2.  Four files(glob.c, machines.h, nojobs.c and readline/readline.c)
needed to be modified.  The last one was a syntax error(a "1" was at
the end of a line instead of a ";")  I assume that the semicolon is
what is wanted but just to be sure left it as an #ifdef.  

3.  I haven't done extensive tests yet, but the few basic ones I did
seem to work fine.

--->  	Philip J. Nesser
	Member of the Technical Staff
	The MITRE Corporation

diffs follow:
(obtained with diff -c foo bar)
------------------------------cut here------------------------
*** glob.c	Wed Aug 29 13:50:54 1990
--- orig-glob.c	Wed Aug 29 11:24:13 1990
***************
*** 50,61 ****
  #if defined (SYSV)
  #include <memory.h>
  #include <string.h>
- #if defined (RISC6000)
- extern void bcopy();
- #else /* not a RISC6000 */
  #define bcopy(s, d, n) ((void) memcpy ((d), (s), (n)))
- #endif
  #define rindex	strrchr
  #else /* not SYSV */
  #include <strings.h>
  
--- 50,58 ----
  #if defined (SYSV)
  #include <memory.h>
  #include <string.h>
  #define bcopy(s, d, n) ((void) memcpy ((d), (s), (n)))
  #define rindex	strrchr
+ 
  #else /* not SYSV */
  #include <strings.h>
  

*** nojobs.c		Wed Aug 29 11:49:14 1990
--- orig-nojobs.c	Wed Aug 29 11:24:15 1990
***************
*** 21,31 ****
  
  #include <stdio.h>
  #include <sys/types.h>
- #ifdef RISC6000
- #include <sgtty.h>
- #else
  #include <sys/ttold.h>
- #endif
  #include <fcntl.h>
  #include <termio.h>
  #include <signal.h>
--- 21,27 ----

*** machines.h  	Wed Aug 29 14:02:59 1990
--- orig-machines.h	Wed Aug 29 11:24:14 1990
***************
*** 376,396 ****
  #define HAVE_SETLINEBUF
  #endif  /* clipper */
  
- /* ************************ */
- /*			    */
- /*	 IBM RISC 6000	    */
- /*			    */
- /* ************************ */
- 
- #if defined (RISC6000)
- #define M_MACHINE "RISC6000"
- #define M_OS SYSV
- #define HAVE_SIGLIST
- #define HAVE_SETLINEBUF
- #define HAVE_VPRINTF
- #endif  /* RISC 6000 */
- 
- 
  /* **************************************************************** */
  /*								    */
  /*			Generic Entry   			    */
--- 376,381 ----

*** readline/readline.c	Wed Aug 29 12:15:58 1990
--- readline/readline.c~	Sun Feb 25 16:33:07 1990
***************
*** 1101,1111 ****
    if (ioctl (tty, TCGETA, &ttybuff) != -1)
      {
        int erase = ttybuff.c_cc[VERASE];
- #ifdef RISC6000
-       int kill = ttybuff.c_cc[VKILL];
- #else     
        int kill = ttybuff.c_cc[VKILL]l
! #endif
        if (erase != -1 && keymap[(unsigned char)erase].type == ISFUNC)
  	keymap[(unsigned char)erase].function = rl_rubout;
  
--- 1101,1108 ----
    if (ioctl (tty, TCGETA, &ttybuff) != -1)
      {
        int erase = ttybuff.c_cc[VERASE];
        int kill = ttybuff.c_cc[VKILL]l
! 
        if (erase != -1 && keymap[(unsigned char)erase].type == ISFUNC)
  	keymap[(unsigned char)erase].function = rl_rubout;
  
--
---> Philip J. Nesser
Student Staff Software Engineer
MIT EECS Educational Computer Facility


ARPA:	    pjnesser at fenchurch.mit.edu
UUCP: 	    ...mit-eddie!pjnesser



More information about the Comp.unix.aix mailing list