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

    r1201 r1202  
    125125                                el_err = tracefile;
    126126#endif
    127                         term = lookupvar("TERM");
     127                        term = lookupvar(psh, "TERM");
    128128                        if (term)
    129129                                setenv("TERM", term, 1);
     
    322322                if (sflg == 0) {
    323323                        if (editor == NULL &&
    324                             (editor = bltinlookup("FCEDIT", 1)) == NULL &&
    325                             (editor = bltinlookup("EDITOR", 1)) == NULL)
     324                            (editor = bltinlookup(psh, "FCEDIT", 1)) == NULL &&
     325                            (editor = bltinlookup(psh, "EDITOR", 1)) == NULL)
    326326                                editor = DEFEDITOR;
    327327                        if (editor[0] == '-' && editor[1] == '\0') {
     
    444444                evalstring(psh, editcmd, 0);    /* XXX - should use no JC command */
    445445                INTON;
    446                 readcmdfile(editfile);  /* XXX - should read back - quick tst */
     446                readcmdfile(psh, editfile);     /* XXX - should read back - quick tst */
    447447                unlink(editfile);
    448448        }
Note: See TracChangeset for help on using the changeset viewer.