21 lines
470 B
Plaintext
21 lines
470 B
Plaintext
|
--- src/cmd/ksh93/sh/xec.c
|
||
|
+++ src/cmd/ksh93/sh/xec.c 2011-06-14 13:31:32.471925963 +0200
|
||
|
@@ -2914,7 +2914,7 @@ int sh_fun(Namval_t *np, Namval_t *nq, c
|
||
|
long mode;
|
||
|
char *prefix = shp->prefix;
|
||
|
int n=0;
|
||
|
- char *av[2];
|
||
|
+ char *av[3];
|
||
|
Fcin_t save;
|
||
|
fcsave(&save);
|
||
|
if((offset=staktell())>0)
|
||
|
@@ -2922,7 +2922,7 @@ int sh_fun(Namval_t *np, Namval_t *nq, c
|
||
|
shp->prefix = 0;
|
||
|
if(!argv)
|
||
|
{
|
||
|
- argv = av;
|
||
|
+ argv = av+1;
|
||
|
argv[1]=0;
|
||
|
}
|
||
|
argv[0] = nv_name(np);
|