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

Added psh parameter to the remaining global functions.

File:
1 edited

Legend:

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

    r1199 r1202  
    105105        rflag = 0;
    106106        prompt = NULL;
    107         while ((i = nextopt("p:r")) != '\0') {
     107        while ((i = nextopt(psh, "p:r")) != '\0') {
    108108                if (i == 'p')
    109109                        prompt = optionarg;
     
    120120                error(psh, "arg count");
    121121
    122         if ((ifs = bltinlookup("IFS", 1)) == NULL)
     122        if ((ifs = bltinlookup(psh, "IFS", 1)) == NULL)
    123123                ifs = " \t\n";
    124124
     
    186186
    187187                STACKSTRNUL(psh, p);
    188                 setvar(*ap, stackblock(psh), 0);
     188                setvar(psh, *ap, stackblock(psh), 0);
    189189                ap++;
    190190                STARTSTACKSTR(psh, p);
     
    203203                        break;
    204204        }
    205         setvar(*ap, stackblock(psh), 0);
     205        setvar(psh, *ap, stackblock(psh), 0);
    206206
    207207        /* Set any remaining args to "" */
    208208        while (*++ap != NULL)
    209                 setvar(*ap, nullstr, 0);
     209                setvar(psh, *ap, nullstr, 0);
    210210        return status;
    211211}
     
    221221        int symbolic_mode = 0;
    222222
    223         while ((i = nextopt("S")) != '\0') {
     223        while ((i = nextopt(psh, "S")) != '\0') {
    224224                symbolic_mode = 1;
    225225        }
     
    366366
    367367        what = 'f';
    368         while ((optc = nextopt("HSabtfdsmcnpl")) != '\0')
     368        while ((optc = nextopt(psh, "HSabtfdsmcnpl")) != '\0')
    369369                switch (optc) {
    370370                case 'H':
Note: See TracChangeset for help on using the changeset viewer.