* io.c (pipe_open): need to set cmd if argc == 0 (win32).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4727632f01
commit
7b45f99288
@ -1,3 +1,7 @@
|
|||||||
|
Tue Nov 2 14:54:02 2004 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* io.c (pipe_open): need to set cmd if argc == 0 (win32).
|
||||||
|
|
||||||
Tue Nov 2 01:20:09 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Tue Nov 2 01:20:09 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* io.c (pipe_open): IO.popen should take array as 1st argument for
|
* io.c (pipe_open): IO.popen should take array as 1st argument for
|
||||||
|
3
io.c
3
io.c
@ -2852,6 +2852,9 @@ pipe_open(argc, argv, mode)
|
|||||||
rb_w32_join_argv(cmd, args);
|
rb_w32_join_argv(cmd, args);
|
||||||
exename = RSTRING(prog)->ptr;
|
exename = RSTRING(prog)->ptr;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
cmd = StringValueCStr(prog);
|
||||||
|
}
|
||||||
while ((pid = rb_w32_pipe_exec(cmd, exename, openmode, &fpr, &fpw)) == -1) {
|
while ((pid = rb_w32_pipe_exec(cmd, exename, openmode, &fpr, &fpw)) == -1) {
|
||||||
/* exec failed */
|
/* exec failed */
|
||||||
switch (errno) {
|
switch (errno) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user