* process.c (rb_proc_exec): label cannot precede variable declarations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3fb0d33b19
commit
c0a2f6effe
@ -1,3 +1,7 @@
|
|||||||
|
Wed Sep 1 19:28:37 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* process.c (rb_proc_exec): label cannot precede variable declarations.
|
||||||
|
|
||||||
Tue Aug 31 18:20:49 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
Tue Aug 31 18:20:49 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||||
|
|
||||||
* ext/tk/tkutil.c (cbsubst_init): fix memory leak
|
* ext/tk/tkutil.c (cbsubst_init): fix memory leak
|
||||||
|
@ -1033,11 +1033,10 @@ rb_proc_exec(str)
|
|||||||
if (*p == '\n') nl = p;
|
if (*p == '\n') nl = p;
|
||||||
}
|
}
|
||||||
if (!*p) break;
|
if (!*p) break;
|
||||||
if (nl) goto via_shell;
|
if (nl) s = nl;
|
||||||
}
|
}
|
||||||
if (*s != ' ' && !ISALPHA(*s) && strchr("*?{}[]<>()~&|\\$;'`\"\n",*s)) {
|
if (*s != ' ' && !ISALPHA(*s) && strchr("*?{}[]<>()~&|\\$;'`\"\n",*s)) {
|
||||||
int status;
|
int status;
|
||||||
via_shell:
|
|
||||||
#if defined(MSDOS)
|
#if defined(MSDOS)
|
||||||
before_exec();
|
before_exec();
|
||||||
status = system(str);
|
status = system(str);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user