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


Ignore:
Timestamp:
Oct 7, 2007, 1:57:35 AM (18 years ago)
Author:
bird
Message:

input.c

File:
1 edited

Legend:

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

    r1200 r1201  
    218218                        exraise(psh, EXSHELLPROC);
    219219                }
    220                 initshellproc();
    221                 setinputfile(cmd, 0);
     220                initshellproc(psh);
     221                setinputfile(psh, cmd, 0);
    222222                commandname = arg0 = savestr(argv[0]);
    223223#ifdef EXEC_HASH_BANG_SCRIPT
    224                 pgetc(); pungetc();             /* fill up input buffer */
     224                pgetc(psh); pungetc(psh);               /* fill up input buffer */
    225225                p = parsenextc;
    226226                if (parsenleft > 2 && p[0] == '#' && p[1] == '!') {
     
    703703                delete_cmd_entry();
    704704        if (act & DO_ERR)
    705                 outfmt(out2, "%s: %s\n", name, errmsg(psh, e, E_EXEC));
     705                outfmt(psh->out2, "%s: %s\n", name, errmsg(psh, e, E_EXEC));
    706706        entry->cmdtype = CMDUNKNOWN;
    707707        return;
Note: See TracChangeset for help on using the changeset viewer.