gpm icon indicating copy to clipboard operation
gpm copied to clipboard

Path names are not escaped

Open oweidner opened this issue 10 years ago • 1 comments
trafficstars

If the path to gpm's working directory contains white spaces, I see the following errors:

>> Setting github.com/mattn/go-sqlite3 to version 
/usr/local/bin/gpm: line 66: cd: /Users/codewerft/Codewerft/Kunden/03: No such file or directory
/usr/local/bin/gpm: line 66: cd: /Users/codewerft/Codewerft/Kunden/03: No such file or directory

The working directory in the case above was /Users/codewerft/Codewerft/Kunden/03 - XYZ/Entwicklung/reactor.backend.

oweidner avatar Mar 04 '15 20:03 oweidner

Huh, we were careful to escape paths early on to avoid this, but it seems somewhere along the way we refactored the cd step and forgot about it.

I'll fix it and make a release soon. :)

pote avatar Mar 05 '15 13:03 pote