From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glenn Spell To: cygwin@sourceware.cygnus.com (Cygwin List) Subject: Bash 3.02 (w/small patch) Date: Mon, 15 Mar 1999 06:54:00 -0000 Message-id: <199903151453.GAA02478@shell4.ba.best.com> X-SW-Source: 1999-03/msg00478.html 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 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glenn Spell To: cygwin@sourceware.cygnus.com (Cygwin List) Subject: Bash 3.02 (w/small patch) Date: Wed, 31 Mar 1999 19:45:00 -0000 Message-ID: <199903151453.GAA02478@shell4.ba.best.com> X-SW-Source: 1999-03n/msg00478.html Message-ID: <19990331194500.9_XkVZnEBAGP2qIy5e-vA6dlkHYuAC4gZefLeh2GAlY@z> 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 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