(file: string)
| 81 | } |
| 82 | |
| 83 | function resolve(file: string) { |
| 84 | const shell = full(file) |
| 85 | if (rooted(shell)) { |
| 86 | if (Filesystem.stat(shell)?.isFile()) return shell |
| 87 | return |
| 88 | } |
| 89 | return which(shell) ?? undefined |
| 90 | } |
| 91 | |
| 92 | function win() { |
| 93 | return Array.from( |