home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / bash / bug / 764 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  2.8 KB

  1. Path: sparky!uunet!stanford.edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!csee.lehigh.edu!wbader
  2. From: wbader@csee.lehigh.edu (wbader)
  3. Newsgroups: gnu.bash.bug
  4. Subject: bash, sco unix and sco xenix
  5. Date: 26 Jan 1993 22:19:52 -0500
  6. Organization: GNUs Not Usenet
  7. Lines: 94
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-bash@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <9301262244.AA05282@pluto.csee.lehigh.edu>
  12.  
  13. Changes to build bash-1.12 under SCO Unix 3.2v4.0:
  14.  
  15. In the M_UNIX section of machines.h:
  16.  
  17. #    if !defined (HAVE_GCC)
  18. #      define REQUIRED_LIBRARIES -lPW -lmalloc -lc_s
  19. #    endif /* !HAVE_GCC */
  20.  
  21. SCO Unix has alloca() in -lPW.
  22. malloc pulls in a faster malloc than the one in -lc
  23. -lc_s uses a shared library version of the c runtimes
  24.  
  25. jobs.c:
  26.  
  27. The ' #if defined (SCO) ' sections make bash hang on the call to waitpid.
  28. I removed the SCO conditional code, and bash no longer hangs.
  29. Apparently, SCO fixed the sigsuspend() call in 3.2v4.0, and somehow broke
  30. something that the workaround uses.
  31.  
  32. lib/readline/readline.c:
  33.  
  34. *** readline.c-    Mon Jan 25 15:21:13 1993
  35. --- readline.c    Tue Jan 26 14:29:50 1993
  36. ***************
  37. *** 4530,4533 ****
  38. --- 4530,4537 ----
  39.     int reverse = (direction < 0);
  40.   
  41. + #if 1
  42. +   int pre_search = 0;
  43. + #endif
  44.     /* Create an arrary of pointers to the lines that we want to search. */
  45.     maybe_replace_line ();
  46. ***************
  47. *** 4560,4565 ****
  48. --- 4564,4576 ----
  49.   
  50.     /* Initialize search parameters. */
  51. + #if 1
  52. +   strncpy(search_string, the_line, 127);
  53. +   search_string[127] = '\0';
  54. +   search_string_index = strlen(search_string);
  55. +   if (direction < 0 && rl_point > 0) { pre_search = 1; rl_point = 0; }
  56. + #else
  57.     *search_string = '\0';
  58.     search_string_index = 0;
  59. + #endif
  60.   
  61.     /* Normalize DIRECTION into 1 or -1. */
  62. ***************
  63. *** 4576,4579 ****
  64. --- 4587,4593 ----
  65.     while (!done)
  66.       {
  67. + #if 1
  68. +       if (pre_search) { c = -1; pre_search = 0; } else
  69. + #endif
  70.         c = rl_read_key ();
  71.   
  72. So history searches start with the text already on the line as the pattern.
  73.  
  74.  
  75. changes for SCO Xenix 2.3.3:
  76.  
  77. machines.h:
  78.  
  79. Xenix 2.3 should not use -DREVERSED_SETVBUF_ARGS.
  80. Only Xenix 2.2 has them reversed.
  81.  
  82. Xenix 2.3 does not have getwd(), and should #undef HAVE_GETWD.
  83.  
  84. readline.c:
  85.  
  86. Added Xenix to list of systems that #undef HAVE_BSD_SIGNALS.
  87.  
  88. ----------------------------------------
  89.  
  90. How hard would it be to add
  91. ((...))  (for quoted expressions, equivalent to let "...") and
  92. [[...]]  (shorthand for test. evaluates an expression and returns 0 for true)
  93. These two changes would allow bash to run more ksh scripts.
  94.  
  95.  
  96. William Bader
  97. Software Consulting Services
  98. 3162 Bath Pike
  99. Nazareth, PA  18064
  100. phone: 215-837-8485
  101. fax:   215-837-8080
  102. email: wbader@scarecrow.csee.lehigh.edu,
  103.        wbader@einstein.mse.lehigh.edu,
  104.        lehi3b15.csee.lehigh.edu!batman!bader
  105.  
  106.