Commit b040e8e
committed
mingw: explicitly specify with which cmd to prefix the cmdline
The main idea of this patch is that even if we have to look up the
absolute path of the script, if only the basename was specified as
argv[0], then we should use that basename on the command line, too, not
the absolute path.
This patch will also help with the upcoming patch where we automatically
substitute "sh ..." by "busybox sh ..." if "sh" is not in the PATH but
"busybox" is: we will do that by substituting the actual executable, but
still keep prepending "sh" to the command line.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent a960df7 commit b040e8e
1 file changed
+10
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1856 | 1856 | | |
1857 | 1857 | | |
1858 | 1858 | | |
1859 | | - | |
1860 | | - | |
| 1859 | + | |
| 1860 | + | |
1861 | 1861 | | |
1862 | 1862 | | |
1863 | 1863 | | |
| |||
1948 | 1948 | | |
1949 | 1949 | | |
1950 | 1950 | | |
1951 | | - | |
| 1951 | + | |
1952 | 1952 | | |
1953 | | - | |
| 1953 | + | |
1954 | 1954 | | |
1955 | 1955 | | |
1956 | 1956 | | |
| |||
2109 | 2109 | | |
2110 | 2110 | | |
2111 | 2111 | | |
2112 | | - | |
| 2112 | + | |
| 2113 | + | |
2113 | 2114 | | |
2114 | 2115 | | |
2115 | 2116 | | |
| |||
2137 | 2138 | | |
2138 | 2139 | | |
2139 | 2140 | | |
2140 | | - | |
| 2141 | + | |
2141 | 2142 | | |
2142 | 2143 | | |
2143 | 2144 | | |
2144 | 2145 | | |
2145 | 2146 | | |
2146 | 2147 | | |
2147 | | - | |
| 2148 | + | |
2148 | 2149 | | |
2149 | 2150 | | |
2150 | 2151 | | |
| |||
2172 | 2173 | | |
2173 | 2174 | | |
2174 | 2175 | | |
2175 | | - | |
| 2176 | + | |
2176 | 2177 | | |
2177 | 2178 | | |
2178 | 2179 | | |
| |||
2196 | 2197 | | |
2197 | 2198 | | |
2198 | 2199 | | |
2199 | | - | |
| 2200 | + | |
2200 | 2201 | | |
2201 | 2202 | | |
2202 | 2203 | | |
| |||
0 commit comments