| skipped 163 lines |
164 | 164 | | if has_key(s:versions, a:bin) |
165 | 165 | | return s:versions[a:bin] |
166 | 166 | | end |
167 | | - | let command = (&shell == 'powershell' ? '&' : '') . shellescape(a:bin) . ' --version --no-height' |
| 167 | + | let command = (&shell =~ 'powershell' ? '&' : '') . shellescape(a:bin) . ' --version --no-height' |
168 | 168 | | let output = systemlist(command) |
169 | 169 | | if v:shell_error || empty(output) |
170 | 170 | | return '' |
| skipped 891 lines |