Skip to content

Commit cc1fb49

Browse files
committed
slightly more compat code formatting
1 parent 8c8d33e commit cc1fb49

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/cmd/ksh93/sh/xec.c

+4-8
Original file line numberDiff line numberDiff line change
@@ -2382,16 +2382,12 @@ int sh_exec(const Shnode_t *t, int flags)
23822382
if(npv)
23832383
{
23842384
if(!sh.mktype)
2385-
{
2385+
{ /*
2386+
* Set the discipline function. If this is done in a subshell, the variable
2387+
* must be scoped to the subshell before nvfun is set to the discipline.
2388+
*/
23862389
if(sh.subshell && !sh.subshare)
2387-
{
2388-
/*
2389-
* When a variable is given a discipline function in
2390-
* a subshell, the variable must be scoped to the
2391-
* subshell before nvfun is set to the discipline.
2392-
*/
23932390
sh_assignok(npv, 1);
2394-
}
23952391
cp = nv_setdisc(npv,cp,np,(Namfun_t*)npv);
23962392
}
23972393
if(!cp)

0 commit comments

Comments
 (0)