aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2009-04-23 00:26:07 +1000
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2009-04-23 04:44:46 +1000
commit580765e16aca68132babc09a02b4ea6c220c1988 (patch)
tree9ca6ea68145b108064c6a4c97899bb1ade075428 /shell/ash.c
parente0ef52d2fabdb4772aaa87a417d841fe58d04e0d (diff)
downloadbusybox-w32-580765e16aca68132babc09a02b4ea6c220c1988.tar.gz
busybox-w32-580765e16aca68132babc09a02b4ea6c220c1988.tar.bz2
busybox-w32-580765e16aca68132babc09a02b4ea6c220c1988.zip
shell/ash: replace shellexec() with shellspawn()
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 284f49303..7c97e72e2 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -8453,6 +8453,10 @@ evalcommand(union node *cmd, int flags)
8453 /* Execute the command. */ 8453 /* Execute the command. */
8454 switch (cmdentry.cmdtype) { 8454 switch (cmdentry.cmdtype) {
8455 default: 8455 default:
8456#ifdef __MINGW32__
8457 shellspawn((const char**)argv, path, cmdentry.u.index, varlist.list);
8458 break;
8459#else
8456 /* Fork off a child process if necessary. */ 8460 /* Fork off a child process if necessary. */
8457 if (!(flags & EV_EXIT) || trap[0]) { 8461 if (!(flags & EV_EXIT) || trap[0]) {
8458 INT_OFF; 8462 INT_OFF;
@@ -8467,6 +8471,7 @@ evalcommand(union node *cmd, int flags)
8467 listsetvar(varlist.list, VEXPORT|VSTACK); 8471 listsetvar(varlist.list, VEXPORT|VSTACK);
8468 shellexec(argv, path, cmdentry.u.index); 8472 shellexec(argv, path, cmdentry.u.index);
8469 /* NOTREACHED */ 8473 /* NOTREACHED */
8474#endif
8470 8475
8471 case CMDBUILTIN: 8476 case CMDBUILTIN:
8472 cmdenviron = varlist.list; 8477 cmdenviron = varlist.list;