1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Revert "Fix defining types conditionally and/or in subshells (re: 8ced1daa)"

This reverts commit 2b9cbbbc8e.

This is not ready for prime time. Crashses when running a $PS2
discipline function. This needs fixing and more testing in
development before making it into the 1.0 branch. In the meantime,
that terrible problem with types is back, sorry about that.
This commit is contained in:
Martijn Dekker 2021-11-29 20:08:53 +01:00
parent 2b9cbbbc8e
commit f508660ddf
10 changed files with 18 additions and 101 deletions

View file

@ -21,7 +21,7 @@
#pragma prototyped
#include "defs.h"
#define ENUM_ID "enum (ksh 93u+m) 2021-11-29"
#define ENUM_ID "enum (ksh 93u+m) 2021-11-23"
const char sh_optenum[] =
"[-?@(#)$Id: " ENUM_ID " $\n]"
@ -239,10 +239,6 @@ int b_enum(int argc, char** argv, Shbltin_t *context)
error(ERROR_USAGE|2, "%s", optusage(NiL));
return 1;
}
#ifndef STANDALONE
if(shp->subshell && !shp->subshare)
sh_subfork();
#endif
while(cp = *argv++)
{
if(!(np = nv_open(cp, (void*)0, NV_VARNAME|NV_NOADD)) || !(ap=nv_arrayptr(np)) || ap->fun || (sz=ap->nelem&(((1L<<ARRAY_BITS)-1))) < 2)