ebf9b31727
- do not resend signal on termination (#1092132) - fix brace expansion on/off - fix incorrect rounding of numsers 0.5 < |x| <1.0 in printf (#1080940) - fix parser errors related to the end of the here-document marker - ksh hangs when command substitution fills out the pipe buffer - using typeset -l with a restricted variabled caused segmentation fault - monitor mode was documented incorrectly - do not crash when unsetting running function from another one (#1105139) - should report an error when trying to cd into directory without execution bit - job locking mechanism did not survive compiler optimization - reading a file via command substitution did not work when any of stdin, stdout or stderr were closed (#1070308) - fix lexical parser crash
13 lines
613 B
Diff
13 lines
613 B
Diff
diff -up ksh-20120801/src/cmd/ksh93/sh/init.c.tpstl ksh-20120801/src/cmd/ksh93/sh/init.c
|
|
--- ksh-20120801/src/cmd/ksh93/sh/init.c.tpstl 2014-04-03 11:21:25.395547276 +0200
|
|
+++ ksh-20120801/src/cmd/ksh93/sh/init.c 2014-04-03 11:26:03.908867208 +0200
|
|
@@ -332,7 +332,7 @@ static Namfun_t *clone_optindex(Namval_t
|
|
/* Trap for restricted variables FPATH, PATH, SHELL, ENV */
|
|
static void put_restricted(register Namval_t* np,const char *val,int flags,Namfun_t *fp)
|
|
{
|
|
- Shell_t *shp = nv_shell(np);
|
|
+ Shell_t *shp = sh_getinterp();
|
|
int path_scoped = 0, fpath_scoped=0;
|
|
Pathcomp_t *pp;
|
|
char *name = nv_name(np);
|