| ... | @@ -2268,12 +2268,6 @@ pub fn selfExePath(out_buffer: []u8) SelfExePathError![]u8 { | ... | @@ -2268,12 +2268,6 @@ pub fn selfExePath(out_buffer: []u8) SelfExePathError![]u8 { |
| 2268 | } | 2268 | } |
| 2269 | } | 2269 | } |
| 2270 | | 2270 | |
| 2271 | if (os.getenv("_")) |sh_exefile| { | | |
| 2272 | // sh (or bash) sets "_" environment variable | | |
| 2273 | mem.copy(u8, out_buffer, sh_exefile); | | |
| 2274 | return out_buffer[0..sh_exefile.len]; | | |
| 2275 | } | | |
| 2276 | | | |
| 2277 | // sorry, we don't find it | 2271 | // sorry, we don't find it |
| 2278 | return error.FileNotFound; | 2272 | return error.FileNotFound; |
| 2279 | }, | 2273 | }, |