- Timestamp:
- Apr 9, 2007, 11:14:07 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/essentials/sys-apps/gawk/io.c
r3076 r3080 1831 1831 1832 1832 execl("/bin/sh", "sh", "-c", str, NULL); 1833 #ifdef __EMX__ 1834 execlp("sh.exe", "sh", "-c", str, NULL); 1835 #endif 1833 1836 _exit(errno == ENOENT ? 127 : 126); 1834 1837 … … 1934 1937 /* stderr does NOT get dup'ed onto child's stdout */ 1935 1938 pid = spawnl(P_NOWAIT, "/bin/sh", "sh", "-c", str, NULL); 1939 # if 1 /* yea, like everyone has /bin/sh on OS/2. */ 1940 if (pid < 0) 1941 pid = spawnlp(P_NOWAIT, "sh.exe", "sh", "-c", str, NULL); 1942 # endif 1936 1943 1937 1944 /* restore stdin and stdout */ … … 2105 2112 os_close_on_exec(p[0], cmd, "pipe", "from"); /* pipe output: input of the parent process */ 2106 2113 os_close_on_exec(save_stdout, cmd, "pipe", "from"); /* saved stdout of the parent process */ 2107 2114 2108 2115 pid = spawnl(P_NOWAIT, "/bin/sh", "sh", "-c", cmd, NULL); 2116 # if 1 /* yea, like everyone has /bin/sh on OS/2. */ 2117 if (pid < 0) 2118 pid = spawnlp(P_NOWAIT, "sh.exe", "sh", "-c", cmd, NULL); 2119 # endif 2120 2109 2121 2110 2122 /* restore stdout */
Note:
See TracChangeset
for help on using the changeset viewer.