Skip to content

Commit

Permalink
Revert SH_MATCH_disc to the 93u+ version
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnoKing committed Jan 24, 2024
1 parent 1612763 commit fcbcd8e
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/cmd/ksh93/sh/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1012,18 +1012,7 @@ static char* get_match(Namval_t* np, Namfun_t *fp)
return mp->rval[i];
}

static char *name_match(Namval_t *np, Namfun_t *fp)
{
int sub = nv_aindex(SH_MATCHNOD);
if(sub==0)
sfprintf(sh.strbuf,".sh.match");
else
sfprintf(sh.strbuf,".sh.match[%d]",sub);
return sfstruse(sh.strbuf);
}

static const Namdisc_t SH_MATCH_disc = { sizeof(struct match), 0, get_match,
0,0,0,0,name_match };
static const Namdisc_t SH_MATCH_disc = { sizeof(struct match), 0, get_match };

static char* get_version(Namval_t* np, Namfun_t *fp)
{
Expand Down

0 comments on commit fcbcd8e

Please sign in to comment.