projects
/
platform
/
upstream
/
make.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4e66c6
)
(exec_command): Correctly use ARGV[0] for script name when running shell
author
Roland McGrath
<roland@redhat.com>
Mon, 7 Aug 1995 19:39:37 +0000
(19:39 +0000)
committer
Roland McGrath
<roland@redhat.com>
Mon, 7 Aug 1995 19:39:37 +0000
(19:39 +0000)
directly.
job.c
patch
|
blob
|
history
diff --git
a/job.c
b/job.c
index
7bb336c
..
daefc5c
100644
(file)
--- a/
job.c
+++ b/
job.c
@@
-1114,7
+1114,7
@@
exec_command (argv, envp)
new_argv = (char **) alloca ((1 + argc + 1) * sizeof (char *));
new_argv[0] = shell;
- new_argv[1] =
program
;
+ new_argv[1] =
argv[0]
;
while (argc > 0)
{
new_argv[1 + argc] = argv[argc];