summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--process.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5127e2e05..7a6e772bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* ext/tk/tkutil.c (cbsubst_init): fix memory leak
diff --git a/process.c b/process.c
index 620513c8f..677fdb2dc 100644
--- a/process.c
+++ b/process.c
@@ -1033,11 +1033,10 @@ rb_proc_exec(str)
if (*p == '\n') nl = p;
}
if (!*p) break;
- if (nl) goto via_shell;
+ if (nl) s = nl;
}
if (*s != ' ' && !ISALPHA(*s) && strchr("*?{}[]<>()~&|\\$;'`\"\n",*s)) {
int status;
- via_shell:
#if defined(MSDOS)
before_exec();
status = system(str);