Skip to content

Commit

Permalink
slightly more compact code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
McDutchie committed Jan 5, 2025
1 parent 8c8d33e commit b4d411c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/cmd/ksh93/sh/xec.c
Original file line number Diff line number Diff line change
Expand Up @@ -2382,16 +2382,12 @@ int sh_exec(const Shnode_t *t, int flags)
if(npv)
{
if(!sh.mktype)
{
{ /*
* Set the discipline function. If this is done in a subshell, the variable
* must be scoped to the subshell before nvfun is set to the discipline.
*/
if(sh.subshell && !sh.subshare)
{
/*
* When a variable is given a discipline function in
* a subshell, the variable must be scoped to the
* subshell before nvfun is set to the discipline.
*/
sh_assignok(npv, 1);
}
cp = nv_setdisc(npv,cp,np,(Namfun_t*)npv);
}
if(!cp)
Expand Down

0 comments on commit b4d411c

Please sign in to comment.