Changeset 1201 for trunk/src/kash/exec.c
- Timestamp:
- Oct 7, 2007, 1:57:35 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/exec.c
r1200 r1201 218 218 exraise(psh, EXSHELLPROC); 219 219 } 220 initshellproc( );221 setinputfile( cmd, 0);220 initshellproc(psh); 221 setinputfile(psh, cmd, 0); 222 222 commandname = arg0 = savestr(argv[0]); 223 223 #ifdef EXEC_HASH_BANG_SCRIPT 224 pgetc( ); pungetc(); /* fill up input buffer */224 pgetc(psh); pungetc(psh); /* fill up input buffer */ 225 225 p = parsenextc; 226 226 if (parsenleft > 2 && p[0] == '#' && p[1] == '!') { … … 703 703 delete_cmd_entry(); 704 704 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)); 706 706 entry->cmdtype = CMDUNKNOWN; 707 707 return;
Note:
See TracChangeset
for help on using the changeset viewer.