| 
									
										
										
										
											2010-02-18 11:17:29 +00:00
										 |  |  | --- config-top.h | 
					
						
							|  |  |  | +++ config-top.h	2007-12-04 14:44:39.314025629 +0000 | 
					
						
							| 
									
										
										
										
											2009-03-03 17:12:53 +00:00
										 |  |  | @@ -54,14 +54,14 @@ | 
					
						
							| 
									
										
										
										
											2006-12-15 17:03:59 +00:00
										 |  |  |  /* The default value of the PATH variable. */ | 
					
						
							|  |  |  |  #ifndef DEFAULT_PATH_VALUE | 
					
						
							|  |  |  |  #define DEFAULT_PATH_VALUE \ | 
					
						
							|  |  |  | -  "/usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:." | 
					
						
							|  |  |  | +  "/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:." | 
					
						
							|  |  |  |  #endif | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  /* The value for PATH when invoking `command -p'.  This is only used when | 
					
						
							|  |  |  |     the Posix.2 confstr () function, or CS_PATH define are not present. */ | 
					
						
							|  |  |  |  #ifndef STANDARD_UTILS_PATH | 
					
						
							|  |  |  |  #define STANDARD_UTILS_PATH \ | 
					
						
							|  |  |  | -  "/bin:/usr/bin:/sbin:/usr/sbin:/etc:/usr/etc" | 
					
						
							|  |  |  | +  "/bin:/usr/bin:/sbin:/usr/sbin" | 
					
						
							|  |  |  |  #endif | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  /* Default primary and secondary prompt strings. */ | 
					
						
							| 
									
										
										
										
											2009-03-03 17:12:53 +00:00
										 |  |  | @@ -75,20 +75,20 @@ | 
					
						
							| 
									
										
										
										
											2006-12-15 17:03:59 +00:00
										 |  |  |  #define KSH_COMPATIBLE_SELECT | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  /* System-wide .bashrc file for interactive shells. */ | 
					
						
							|  |  |  | -/* #define SYS_BASHRC "/etc/bash.bashrc" */ | 
					
						
							|  |  |  | +#define SYS_BASHRC "/etc/bash.bashrc" | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  /* System-wide .bash_logout for login shells. */ | 
					
						
							|  |  |  | -/* #define SYS_BASH_LOGOUT "/etc/bash.bash_logout" */ | 
					
						
							|  |  |  | +#define SYS_BASH_LOGOUT "/etc/bash.bash_logout" | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  /* Define this to make non-interactive shells begun with argv[0][0] == '-' | 
					
						
							|  |  |  |     run the startup files when not in posix mode. */ | 
					
						
							|  |  |  | -/* #define NON_INTERACTIVE_LOGIN_SHELLS */ | 
					
						
							|  |  |  | +#define NON_INTERACTIVE_LOGIN_SHELLS | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  /* Define this if you want bash to try to check whether it's being run by | 
					
						
							| 
									
										
										
										
											2009-03-03 17:12:53 +00:00
										 |  |  |     sshd and source the .bashrc if so (like the rshd behavior).  This checks | 
					
						
							|  |  |  |     for the presence of SSH_CLIENT or SSH2_CLIENT in the initial environment, | 
					
						
							|  |  |  |     which can be fooled under certain not-uncommon circumstances. */ | 
					
						
							| 
									
										
										
										
											2007-12-05 22:45:24 +00:00
										 |  |  | -/* #define SSH_SOURCE_BASHRC */ | 
					
						
							|  |  |  | +#define SSH_SOURCE_BASHRC | 
					
						
							| 
									
										
										
										
											2009-03-03 17:12:53 +00:00
										 |  |  |   | 
					
						
							|  |  |  |  /* Define if you want the case-capitalizing operators (~[~]) and the | 
					
						
							|  |  |  |     `capcase' variable attribute (declare -c). */ | 
					
						
							| 
									
										
										
										
											2010-02-18 11:17:29 +00:00
										 |  |  | --- general.h | 
					
						
							|  |  |  | +++ general.h	2006-03-27 12:15:25.000000000 +0000 | 
					
						
							| 
									
										
										
										
											2006-12-15 17:03:59 +00:00
										 |  |  | @@ -21,10 +21,13 @@ | 
					
						
							|  |  |  |  #if !defined (_GENERAL_H_) | 
					
						
							|  |  |  |  #define _GENERAL_H_ | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  | +#include <time.h> | 
					
						
							|  |  |  | +#include <sys/types.h> | 
					
						
							|  |  |  |  #include "stdc.h" | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  #include "bashtypes.h" | 
					
						
							|  |  |  |  #include "chartypes.h" | 
					
						
							|  |  |  | +#include "bashline.h" | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  #if defined (HAVE_SYS_RESOURCE_H) && defined (RLIMTYPE) | 
					
						
							|  |  |  |  #  if defined (HAVE_SYS_TIME_H) | 
					
						
							| 
									
										
										
										
											2010-02-18 11:17:29 +00:00
										 |  |  | --- jobs.c | 
					
						
							|  |  |  | +++ jobs.c	2006-03-27 12:15:25.000000000 +0000 | 
					
						
							| 
									
										
										
										
											2009-03-03 17:12:53 +00:00
										 |  |  | @@ -199,10 +199,10 @@ int previous_job = NO_JOB; | 
					
						
							| 
									
										
										
										
											2006-12-15 17:03:59 +00:00
										 |  |  |  #endif | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  /* Last child made by the shell.  */ | 
					
						
							|  |  |  | -pid_t last_made_pid = NO_PID; | 
					
						
							|  |  |  | +volatile pid_t last_made_pid = NO_PID; | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  /* Pid of the last asynchronous child. */ | 
					
						
							|  |  |  | -pid_t last_asynchronous_pid = NO_PID; | 
					
						
							|  |  |  | +volatile pid_t last_asynchronous_pid = NO_PID; | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  /* The pipeline currently being built. */ | 
					
						
							|  |  |  |  PROCESS *the_pipeline = (PROCESS *)NULL; | 
					
						
							| 
									
										
										
										
											2010-02-18 11:17:29 +00:00
										 |  |  | --- jobs.h | 
					
						
							|  |  |  | +++ jobs.h	2006-03-27 12:15:25.000000000 +0000 | 
					
						
							| 
									
										
										
										
											2009-03-03 17:12:53 +00:00
										 |  |  | @@ -165,7 +165,7 @@ extern pid_t fork (), getpid (), getpgrp | 
					
						
							| 
									
										
										
										
											2006-12-15 17:03:59 +00:00
										 |  |  |  extern struct jobstats js; | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  extern pid_t original_pgrp, shell_pgrp, pipeline_pgrp; | 
					
						
							|  |  |  | -extern pid_t last_made_pid, last_asynchronous_pid; | 
					
						
							|  |  |  | +extern volatile pid_t last_made_pid, last_asynchronous_pid; | 
					
						
							|  |  |  |  extern int asynchronous_notification; | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  extern JOB **jobs; | 
					
						
							| 
									
										
										
										
											2010-02-18 11:17:29 +00:00
										 |  |  | --- parse.y | 
					
						
							|  |  |  | +++ parse.y	2006-03-27 12:15:25.000000000 +0000 | 
					
						
							| 
									
										
										
										
											2009-03-03 17:12:53 +00:00
										 |  |  | @@ -1283,7 +1283,7 @@ input_file_descriptor () | 
					
						
							| 
									
										
										
										
											2006-12-15 17:03:59 +00:00
										 |  |  |   | 
					
						
							|  |  |  |  #if defined (READLINE) | 
					
						
							|  |  |  |  char *current_readline_prompt = (char *)NULL; | 
					
						
							|  |  |  | -char *current_readline_line = (char *)NULL; | 
					
						
							|  |  |  | +unsigned char *current_readline_line = (unsigned char *)NULL; | 
					
						
							|  |  |  |  int current_readline_line_index = 0; | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  static int | 
					
						
							| 
									
										
										
										
											2011-11-25 17:50:33 +00:00
										 |  |  | @@ -5983,6 +5983,8 @@ save_input_line_state (ls) | 
					
						
							|  |  |  |    /* force reallocation */ | 
					
						
							|  |  |  |    shell_input_line = 0; | 
					
						
							|  |  |  |    shell_input_line_size = shell_input_line_len = shell_input_line_index = 0; | 
					
						
							|  |  |  | + | 
					
						
							|  |  |  | +  return ls; | 
					
						
							|  |  |  |  } | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  void | 
					
						
							| 
									
										
										
										
											2010-02-18 11:17:29 +00:00
										 |  |  | --- shell.c | 
					
						
							|  |  |  | +++ shell.c	2006-03-27 12:15:25.000000000 +0000 | 
					
						
							| 
									
										
										
										
											2009-03-03 17:12:53 +00:00
										 |  |  | @@ -479,7 +479,7 @@ main (argc, argv, env) | 
					
						
							| 
									
										
										
										
											2006-12-15 17:03:59 +00:00
										 |  |  |    if (dump_translatable_strings) | 
					
						
							|  |  |  |      read_but_dont_execute = 1; | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  | -  if (running_setuid && privileged_mode == 0) | 
					
						
							|  |  |  | +  if (running_setuid && privileged_mode == 0 /* && act_like_sh == 0 */) | 
					
						
							|  |  |  |      disable_priv_mode (); | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |    /* Need to get the argument to a -c option processed in the | 
					
						
							| 
									
										
										
										
											2010-02-18 11:17:29 +00:00
										 |  |  | --- subst.c | 
					
						
							|  |  |  | +++ subst.c	2006-03-27 12:15:25.000000000 +0000 | 
					
						
							| 
									
										
										
										
											2009-08-28 15:45:57 +00:00
										 |  |  | @@ -2962,6 +2962,7 @@ call_expand_word_internal (w, q, i, c, e | 
					
						
							| 
									
										
										
										
											2006-12-15 17:03:59 +00:00
										 |  |  |        last_command_exit_value = EXECUTION_FAILURE; | 
					
						
							|  |  |  |        exp_jump_to_top_level ((result == &expand_word_error) ? DISCARD : FORCE_EOF); | 
					
						
							|  |  |  |        /* NOTREACHED */ | 
					
						
							|  |  |  | +      return NULL; /* make stupid compiler happy */ | 
					
						
							|  |  |  |      } | 
					
						
							|  |  |  |    else | 
					
						
							|  |  |  |      return (result); | 
					
						
							| 
									
										
										
										
											2010-02-18 11:17:29 +00:00
										 |  |  | --- doc/Makefile.in | 
					
						
							|  |  |  | +++ doc/Makefile.in	2006-03-27 12:15:25.000000000 +0000 | 
					
						
							| 
									
										
										
										
											2009-03-03 17:12:53 +00:00
										 |  |  | @@ -142,7 +142,7 @@ BASHREF_FILES = $(srcdir)/bashref.texi $ | 
					
						
							| 
									
										
										
										
											2006-12-15 17:03:59 +00:00
										 |  |  |  	${RM} $@ | 
					
						
							|  |  |  |  	-${DVIPS} $< | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  | -all: ps info dvi text html | 
					
						
							|  |  |  | +all: info html | 
					
						
							|  |  |  |  nodvi: ps info text html | 
					
						
							| 
									
										
										
										
											2009-03-03 17:12:53 +00:00
										 |  |  |  everything: all pdf | 
					
						
							| 
									
										
										
										
											2006-12-15 17:03:59 +00:00
										 |  |  |   | 
					
						
							| 
									
										
										
										
											2010-02-18 11:17:29 +00:00
										 |  |  | --- doc/bash.1 | 
					
						
							|  |  |  | +++ doc/bash.1	2006-03-27 12:15:25.000000000 +0000 | 
					
						
							| 
									
										
										
										
											2009-08-28 15:45:57 +00:00
										 |  |  | @@ -4620,8 +4620,8 @@ file (the \fIinputrc\fP file). | 
					
						
							| 
									
										
										
										
											2006-12-15 17:03:59 +00:00
										 |  |  |  The name of this file is taken from the value of the | 
					
						
							|  |  |  |  .SM | 
					
						
							|  |  |  |  .B INPUTRC | 
					
						
							|  |  |  | -variable.  If that variable is unset, the default is | 
					
						
							|  |  |  | -.IR ~/.inputrc . | 
					
						
							|  |  |  | +environment variable. If that variable is unset, readline will read both | 
					
						
							|  |  |  | +.IR /etc/inputrc " and " ~/.inputrc . | 
					
						
							|  |  |  |  When a program which uses the readline library starts up, the | 
					
						
							|  |  |  |  initialization file is read, and the key bindings and variables | 
					
						
							|  |  |  |  are set. | 
					
						
							| 
									
										
										
										
											2009-08-28 15:45:57 +00:00
										 |  |  | @@ -9340,6 +9340,9 @@ The individual login shell cleanup file, | 
					
						
							| 
									
										
										
										
											2006-12-15 17:03:59 +00:00
										 |  |  |  .TP | 
					
						
							|  |  |  |  .FN ~/.inputrc | 
					
						
							|  |  |  |  Individual \fIreadline\fP initialization file | 
					
						
							|  |  |  | +.TP | 
					
						
							|  |  |  | +.FN /etc/inputrc | 
					
						
							|  |  |  | +System \fBreadline\fP initialization file | 
					
						
							|  |  |  |  .PD | 
					
						
							|  |  |  |  .SH AUTHORS | 
					
						
							|  |  |  |  Brian Fox, Free Software Foundation | 
					
						
							| 
									
										
										
										
											2011-11-25 17:50:33 +00:00
										 |  |  | --- support/man2html.c | 
					
						
							|  |  |  | +++ support/man2html.c	2011-11-25 17:07:28.895646776 +0000 | 
					
						
							|  |  |  | @@ -77,6 +77,7 @@ | 
					
						
							|  |  |  |  #include <time.h> | 
					
						
							|  |  |  |  #include <sys/time.h> | 
					
						
							|  |  |  |  #include <errno.h> | 
					
						
							|  |  |  | +#include <unistd.h> | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  #define NULL_TERMINATED(n) ((n) + 1) | 
					
						
							|  |  |  |   | 
					
						
							| 
									
										
										
										
											2010-02-18 11:17:29 +00:00
										 |  |  | --- support/printenv.c | 
					
						
							|  |  |  | +++ support/printenv.c	2007-12-06 15:33:46.899561365 +0000 | 
					
						
							| 
									
										
										
										
											2007-12-12 21:07:41 +00:00
										 |  |  | @@ -27,6 +27,7 @@ | 
					
						
							|  |  |  |  #if defined (HAVE_CONFIG_H) | 
					
						
							|  |  |  |  #  include  <config.h> | 
					
						
							|  |  |  |  #endif | 
					
						
							|  |  |  | +#include  <stdio.h> | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  #include "bashansi.h" | 
					
						
							|  |  |  |   | 
					
						
							| 
									
										
										
										
											2010-02-18 11:17:29 +00:00
										 |  |  | --- support/rlvers.sh | 
					
						
							|  |  |  | +++ support/rlvers.sh	2006-03-27 12:15:25.000000000 +0000 | 
					
						
							| 
									
										
										
										
											2006-12-15 17:03:59 +00:00
										 |  |  | @@ -27,10 +27,10 @@ TDIR=$TMPDIR/rlvers | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  # defaults | 
					
						
							|  |  |  |  CC=cc | 
					
						
							|  |  |  | -RL_LIBDIR=/usr/local/lib | 
					
						
							|  |  |  | -RL_INCDIR=/usr/local/include | 
					
						
							|  |  |  | +RL_LIBDIR=/lib | 
					
						
							|  |  |  | +RL_INCDIR=/usr/include | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  | -TERMCAP_LIB="-ltermcap" | 
					
						
							| 
									
										
										
										
											2011-11-16 11:14:23 +00:00
										 |  |  | +echo 'int main () { return 0; }' | gcc -ltinfo -o /dev/null -xc - > /dev/null 2>&1 && TERMCAP_LIB="-ltinfo" || TERMCAP_LIB="-lncurses" | 
					
						
							| 
									
										
										
										
											2006-12-15 17:03:59 +00:00
										 |  |  |   | 
					
						
							|  |  |  |  # cannot rely on the presence of getopts | 
					
						
							|  |  |  |  while [ $# -gt 0 ]; do | 
					
						
							| 
									
										
										
										
											2010-02-18 11:17:29 +00:00
										 |  |  | --- support/shobj-conf | 
					
						
							|  |  |  | +++ support/shobj-conf	2006-09-22 14:11:58.000000000 +0000 | 
					
						
							| 
									
										
										
										
											2009-03-03 17:12:53 +00:00
										 |  |  | @@ -112,10 +112,11 @@ sunos5*|solaris2*) | 
					
						
							| 
									
										
										
										
											2010-02-18 11:17:29 +00:00
										 |  |  |  linux*-*|gnu*-*|k*bsd*-gnu-*|freebsd*-gentoo) | 
					
						
							| 
									
										
										
										
											2006-12-15 17:03:59 +00:00
										 |  |  |  	SHOBJ_CFLAGS=-fPIC | 
					
						
							|  |  |  |  	SHOBJ_LD='${CC}' | 
					
						
							|  |  |  | -	SHOBJ_LDFLAGS='-shared -Wl,-soname,$@' | 
					
						
							|  |  |  | +	SHOBJ_LDFLAGS='-shared' | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  | -	SHLIB_XLDFLAGS='-Wl,-rpath,$(libdir) -Wl,-soname,`basename $@ $(SHLIB_MINOR)`' | 
					
						
							|  |  |  | +	SHLIB_XLDFLAGS='-Wl,-rpath-link,$(libdir) -Wl,-soname,`basename $@ $(SHLIB_MINOR)`' | 
					
						
							|  |  |  |  	SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)' | 
					
						
							| 
									
										
										
										
											2011-11-16 11:14:23 +00:00
										 |  |  | +	echo 'int main () { return 0; }' | gcc -ltinfo -o /dev/null -xc - > /dev/null 2>&1 && SHLIB_LIBS=-ltinfo || SHLIB_LIBS=-lncurses | 
					
						
							| 
									
										
										
										
											2006-12-15 17:03:59 +00:00
										 |  |  |  	;; | 
					
						
							|  |  |  |   | 
					
						
							| 
									
										
										
										
											2009-03-03 17:12:53 +00:00
										 |  |  |  freebsd2*) | 
					
						
							| 
									
										
										
										
											2010-02-18 11:17:29 +00:00
										 |  |  | --- tests/run-intl | 
					
						
							|  |  |  | +++ tests/run-intl	2009-08-26 11:13:13.000000000 +0000 | 
					
						
							| 
									
										
										
										
											2009-03-03 17:12:53 +00:00
										 |  |  | @@ -5,4 +5,4 @@ echo "warning: some of these tests will | 
					
						
							|  |  |  |  echo "warning: locales installed on your system." >&2 | 
					
						
							|  |  |  |  echo "warning: please ignore any differences consisting only of white space" >&2 | 
					
						
							|  |  |  |  ${THIS_SH} ./intl.tests > /tmp/xx | 
					
						
							|  |  |  | -diff $AFLAG /tmp/xx intl.right && rm -f /tmp/xx | 
					
						
							|  |  |  | +diff -w $AFLAG /tmp/xx intl.right && rm -f /tmp/xx | 
					
						
							| 
									
										
										
										
											2010-02-18 11:17:29 +00:00
										 |  |  | --- tests/run-read | 
					
						
							|  |  |  | +++ tests/run-read	2009-08-26 11:13:13.000000000 +0000 | 
					
						
							| 
									
										
										
										
											2009-03-03 17:12:53 +00:00
										 |  |  | @@ -1,4 +1,4 @@ | 
					
						
							|  |  |  |  echo "warning: please do not consider output differing only in the amount of" >&2 | 
					
						
							|  |  |  |  echo "warning: white space to be an error." >&2 | 
					
						
							|  |  |  |  ${THIS_SH} ./read.tests > /tmp/xx 2>&1 | 
					
						
							|  |  |  | -diff /tmp/xx read.right && rm -f /tmp/xx | 
					
						
							|  |  |  | +diff -w /tmp/xx read.right && rm -f /tmp/xx |