This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Bash 3.02 (w/small patch)



A new version of Bash (3.02) was released about a month ago.
The package is available at <ftp://ftp.gnu.org/gnu/bash/>.

It seems to be faster than earlier releases even without
Trevor's spawn modifications.

With the following patch it compiles and runs fine on Cygwin.

--------------------------------------------------------------
diff -u3 -rN bash-2.03-orig/Makefile.in bash-2.03/Makefile.in
--- bash-2.03-orig/Makefile.in	Thu Feb 18 12:07:38 1999
+++ bash-2.03/Makefile.in	Sun Mar 14 05:42:46 1999
@@ -58,7 +58,7 @@
 	$(CC) $(CCFLAGS) -c $<
 
 # The name of this program and some version information.
-Program = bash
+Program = bash.exe
 Version = @BASHVERS@
 PatchLevel = @BASHPATCH@
 RELSTATUS = release
diff -u3 -rN bash-2.03-orig/config-top.h bash-2.03/config-top.h
--- bash-2.03-orig/config-top.h	Tue Dec 15 13:24:38 1998
+++ bash-2.03/config-top.h	Sun Mar 14 05:06:36 1999
@@ -45,7 +45,9 @@
 #endif
 
 /* Default primary and secondary prompt strings. */
-#define PPROMPT "\\s-\\v\\$ "
+#if defined (PROMPT_STRING_DECODE)
+#  define PPROMPT "\\s-\\v\\$ "
+#endif
 #define SPROMPT "> "
 
 /* System-wide .bashrc file for interactive shells. */
diff -u3 -rN bash-2.03-orig/execute_cmd.c bash-2.03/execute_cmd.c
--- bash-2.03-orig/execute_cmd.c	Tue Jan 26 16:23:50 1999
+++ bash-2.03/execute_cmd.c	Mon Mar 15 06:17:46 1999
@@ -2787,8 +2787,10 @@
   /* A subshell is neither a login shell nor interactive. */
   login_shell = interactive = 0;
 
+#if defined (JOB_CONTROL)
   jobs_hack = (builtin == jobs_builtin) &&
 		((subshell_environment & SUBSHELL_ASYNC) == 0 || pipe_out != NO_PIPE);
+#endif
 
   subshell_environment = SUBSHELL_ASYNC;
 
diff -u3 -rN bash-2.03-orig/variables.c bash-2.03/variables.c
--- bash-2.03-orig/variables.c	Tue Nov 10 13:29:46 1998
+++ bash-2.03/variables.c	Sun Mar 14 22:44:18 1999
@@ -282,7 +282,7 @@
   /* set up the prompts. */
   if (interactive_shell)
     {
-#if defined (PROMPT_STRING_DECODE)
+#if defined (PROMPT_STRING_DECODE) || defined (__CYGWIN32__)
       set_if_not ("PS1", primary_prompt);
 #else
       if (current_user.uid == -1)
--------------------------------------------------------------

-glenn

-- 
            Glenn Spell <glenn@gs.fay.nc.us>
         Fayetteville, North Carolina, U. S. A.
  ____________________________________________________
  ... blue skies ... happy trails ... sweet dreams ...

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com