Blame SOURCES/ksh-20130628-longer.patch

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