delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/03/15/09:54:50

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199903151453.GAA02478@shell4.ba.best.com>
Subject: Bash 3.02 (w/small patch)
To: cygwin AT sourceware DOT cygnus DOT com (Cygwin List)
Date: Mon, 15 Mar 1999 09:53:11 -0500 (EST)
From: Glenn Spell <glenn AT gs DOT fay DOT nc DOT us>
Reply-To: glenn AT gs DOT fay DOT nc DOT us (Glenn Spell)
Organization: the aerie
X-Mailer: ELM [version 2.4ME+ PL38 (25)]
MIME-Version: 1.0

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 AT gs DOT fay DOT nc DOT 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019