Blame SOURCES/ksh-20130628-longer.patch

1a53a7
diff -up ksh-20120801/src/cmd/ksh93/include/defs.h.longer ksh-20120801/src/cmd/ksh93/include/defs.h
1a53a7
--- ksh-20120801/src/cmd/ksh93/include/defs.h.longer	2012-06-25 20:47:47.000000000 +0200
1a53a7
+++ ksh-20120801/src/cmd/ksh93/include/defs.h	2013-07-08 17:33:42.238534376 +0200
1a53a7
@@ -162,8 +162,8 @@ struct shared
1a53a7
 	Namval_t	*prev_table;	/* previous table used in nv_open  */ \
1a53a7
 	Sfio_t		*outpool;	/* ouput stream pool */ \
1a53a7
 	long		timeout;	/* read timeout */ \
1a53a7
-	short		curenv;		/* current subshell number */ \
1a53a7
-	short		jobenv;		/* subshell number for jobs */ \
1a53a7
+	long		curenv;		/* current subshell number */ \
1a53a7
+	long		jobenv;		/* subshell number for jobs */ \
1a53a7
 	int		infd;		/* input file descriptor */ \
1a53a7
 	short		nextprompt;	/* next prompt is PS<nextprompt> */ \
1a53a7
 	short		poolfiles; \
1a53a7
diff -up ksh-20120801/src/cmd/ksh93/include/jobs.h.longer ksh-20120801/src/cmd/ksh93/include/jobs.h
1a53a7
--- ksh-20120801/src/cmd/ksh93/include/jobs.h.longer	2011-12-19 13:36:37.000000000 +0100
1a53a7
+++ ksh-20120801/src/cmd/ksh93/include/jobs.h	2013-07-08 17:32:52.881124147 +0200
1a53a7
@@ -87,7 +87,7 @@ struct process
1a53a7
 	unsigned short	p_exit;		/* exit value or signal number */
1a53a7
 	unsigned short	p_exitmin;	/* minimum exit value for xargs */
1a53a7
 	unsigned short	p_flag;		/* flags - see below */
1a53a7
-	int		p_env;		/* subshell environment number */
1a53a7
+	long		p_env;		/* subshell environment number */
1a53a7
 #ifdef JOBS
1a53a7
 	off_t		p_name;		/* history file offset for command */
1a53a7
 	struct termios	p_stty;		/* terminal state for job */
1a53a7
diff -up ksh-20120801/src/cmd/ksh93/sh/jobs.c.longer ksh-20120801/src/cmd/ksh93/sh/jobs.c
1a53a7
diff -up ksh-20120801/src/cmd/ksh93/sh/subshell.c.longer ksh-20120801/src/cmd/ksh93/sh/subshell.c
1a53a7
--- ksh-20120801/src/cmd/ksh93/sh/subshell.c.longer	2013-07-08 17:32:52.874124090 +0200
1a53a7
+++ ksh-20120801/src/cmd/ksh93/sh/subshell.c	2013-07-08 17:32:52.882124156 +0200
1a53a7
@@ -98,7 +98,7 @@ static struct subshell
1a53a7
 #endif /* SHOPT_COSHELL */
1a53a7
 } *subshell_data;
1a53a7
 
1a53a7
-static int subenv;
1a53a7
+static long subenv;
1a53a7
 
1a53a7
 
1a53a7
 /*
1a53a7
@@ -171,7 +171,8 @@ void sh_subfork(void)
1a53a7
 {
1a53a7
 	register struct subshell *sp = subshell_data;
1a53a7
 	Shell_t	*shp = sp->shp;
1a53a7
-	int	curenv = shp->curenv, comsub=shp->comsub;
1a53a7
+	long	curenv = shp->curenv;
1a53a7
+	int	comsub=shp->comsub;
1a53a7
 	pid_t pid;
1a53a7
 	char *trap = shp->st.trapcom[0];
1a53a7
 	if(trap)
1a53a7
@@ -461,7 +462,7 @@ Sfio_t *sh_subshell(Shell_t *shp,Shnode_
1a53a7
 	struct subshell sub_data;
1a53a7
 	register struct subshell *sp = &sub_data;
1a53a7
 	int jmpval,nsig=0,duped=0;
1a53a7
-	int savecurenv = shp->curenv;
1a53a7
+	long savecurenv = shp->curenv;
1a53a7
 	int savejobpgid = job.curpgid;
1a53a7
 	int *saveexitval = job.exitval;
1a53a7
 	int16_t subshell;