Project

General

Profile

Bug #9435

Updated by nobu (Nobuyoshi Nakada) almost 6 years ago

if ENV['PATH'] include double quotes, Kernel.system cann't find it.

windows OS, open a cmd window

``` `
set PATH="C:\Program Files\7-Zip";%PATH%
7z -h # can run it

pry
system '7z -h' # can't cann't find
``` `

and, if command include double quotes, system can't cann't find too.

```

`
system '"C:\Program Files\7-Zip\7z" -h' # ok
system '"C:\Program Files\7-Zip"\7z -h' # can't cann't find
system '"C:\Program Files\7-Zip\"7z -h' # can't cann't find
```
`

Back