Changeset 1202 for trunk/src/kash/exec.c


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/exec.c

    r1201 r1202  
    229229                }
    230230#endif
    231                 setparam(argv + 1);
     231                setparam(psh, argv + 1);
    232232                exraise(psh, EXSHELLPROC);
    233233        }
     
    437437
    438438        verbose = 0;
    439         while ((c = nextopt("rv")) != '\0') {
     439        while ((c = nextopt(psh, "rv")) != '\0') {
    440440                if (c == 'r') {
    441441                        clearcmdentry(0);
     
    500500                        struct procstat ps;
    501501                        INTOFF;
    502                         commandtext(&ps, cmdp->param.func);
     502                        commandtext(psh, &ps, cmdp->param.func);
    503503                        INTON;
    504504                        out1str(psh, "() { ");
     
    665665                                goto loop;
    666666                        stalloc(psh, strlen(fullname) + 1);
    667                         readcmdfile(fullname);
     667                        readcmdfile(psh, fullname);
    668668                        if ((cmdp = cmdlookup(name, 0)) == NULL ||
    669669                            cmdp->cmdtype != CMDFUNCTION)
     
    10851085        int p_flag = 0;
    10861086
    1087         while ((c = nextopt("vVp")) != 0) {
     1087        while ((c = nextopt(psh, "vVp")) != 0) {
    10881088                switch (c) {
    10891089                case 'v': v_flag = 1; break;
Note: See TracChangeset for help on using the changeset viewer.