* spawn.cc (spawn_guts): Use actual program argument passed in for argv[0] as

originally suggested by Kazuhiro Fujieda <fujieda@jaist.ac.jp>.
This commit is contained in:
Christopher Faylor
2000-09-19 13:48:52 +00:00
parent 6e604fb15d
commit b963175618
2 changed files with 7 additions and 1 deletions

View File

@ -473,7 +473,7 @@ spawn_guts (HANDLE hToken, const char * prog_arg, const char *const *argv,
/* Replace argv[0] with the full path to the script if this is the
first time through the loop. */
newargv.replace0_maybe (real_path);
newargv.replace0_maybe (prog_arg);
/* pointers:
* pgm interpreter name