VirtualBox

Changeset 1202 in kBuild for trunk/src/kash/expand.c


Ignore:
Timestamp:
Oct 7, 2007 12:24:15 AM (17 years ago)
Author:
bird
Message:

Added psh parameter to the remaining global functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/expand.c

    r1201 r1202  
    288288        *p = '\0';
    289289        if (*(startp+1) == '\0') {
    290                 if ((home = lookupvar("HOME")) == NULL)
     290                if ((home = lookupvar(psh, "HOME")) == NULL)
    291291                        goto lose;
    292292        } else {
     
    477477                ckfree(in.buf);
    478478        if (in.jp)
    479                 back_exitstatus = waitforjob(in.jp);
     479                back_exitstatus = waitforjob(psh, in.jp);
    480480        if (quoted == 0)
    481481                recordregion(startloc, dest - stackblock(psh), 0);
     
    512512        switch (subtype) {
    513513        case VSASSIGN:
    514                 setvar(str, startp, 0);
     514                setvar(psh, str, startp, 0);
    515515                amount = startp - expdest;
    516516                STADJUST(psh, amount, expdest);
     
    639639                val = NULL;
    640640        } else {
    641                 val = lookupvar(var);
     641                val = lookupvar(psh, var);
    642642                if (val == NULL || ((varflags & VSNUL) && val[0] == '\0')) {
    643643                        val = NULL;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette