components/ksh93/patches/220-17699248.patch
changeset 5129 5431772f7235
parent 4268 d723f8ed85fe
equal deleted inserted replaced
5128:218234c0062c 5129:5431772f7235
       
     1 This fix is from the community, details in the following location.
       
     2 http://lists.research.att.com/pipermail/ast-developers/2013q4/003716.html
       
     3 ---
       
     4 --- a/src/cmd/ksh93/sh/array.c 	2013-11-15 12:39:50.632526510 +0100
       
     5 +++ b/src/cmd/ksh93/sh/array.c	2013-11-15 12:45:53.420869610 +0100
       
     6 @@ -963,7 +963,7 @@
       
     7  		ap->nelem = nelem;
       
     8  		ap->fun = fun;
       
     9  		nv_onattr(np,NV_ARRAY);
       
    10 -		if(fp || value)
       
    11 +		if(fp || (value && value!=Empty))
       
    12  		{
       
    13  			nv_putsub(np, "0", ARRAY_ADD);
       
    14  			if(value)