diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-07-28 09:26:53 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-07-28 09:26:53 +0000 |
commit | 16adedaa6d6ceb8e3f21e33dc6653aed3ffa6932 (patch) | |
tree | d1c104d8b5e197b22830a2c37f84327de76586b3 /process.c | |
parent | 7dcd244615f172994ca4af37108af7ff744d0998 (diff) |
990728
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -456,7 +456,7 @@ proc_spawn(sv) if (*s != ' ' && !ISALPHA(*s) && strchr("*?{}[]<>()~&|\\$;'`\"\n",*s)) { char *shell = dln_find_exe("sh", 0); before_exec(); - state = shell ? spawnl(P_WAIT, shell, "sh", "-c", str, (char *) NULL) : system(str) ; + state = shell?spawnl(P_WAIT,shell,"sh","-c",str,(char*)NULL):system(str); after_exec(); return state; } @@ -469,7 +469,7 @@ proc_spawn(sv) *a++ = t; *a = NULL; } - return argv[0] ? proc_spawn_v(argv, 0) : -1 ; + return argv[0] ? proc_spawn_v(argv, 0) : -1; } #endif /* __human68k__ */ @@ -662,7 +662,7 @@ rb_f_system(argc, argv) state = proc_spawn_n(argc, argv, prog); } rb_last_status = state == -1 ? INT2FIX(127) : INT2FIX(state); - return state == 0 ? Qtrue : Qfalse ; + return state == 0 ? Qtrue : Qfalse; #else #if defined(USE_CWGUSI) rb_notimplement(); |