summaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-01 10:28:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-01 10:28:45 +0000
commit886df13d4b5476024ed7b543310d5f9028c578e7 (patch)
treecb0b701125dcba60ad836e61af8ca2fc315d9264 /process.c
parent6cadc341fee91dd5a344e82b13318e1a5fb97afb (diff)
downloadruby-886df13d4b5476024ed7b543310d5f9028c578e7.tar.gz
ruby-886df13d4b5476024ed7b543310d5f9028c578e7.tar.xz
ruby-886df13d4b5476024ed7b543310d5f9028c578e7.zip
* process.c (rb_proc_exec): label cannot precede variable declarations.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c3
1 files changed, 1 insertions, 2 deletions
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);