atg / chocolat-public

Public bug tracker for the private chocolat project
http://chocolatapp.com
180 stars 4 forks source link

Run does not work when file names contain spaces #1468

Open douglashill opened 10 years ago

douglashill commented 10 years ago

Actions > Run and similar commands pass file names to the shell without quoting or escaping, so for source files with spaces in their name this action does not work as expected.

To reproduce:

  1. Create a source code file with spaces in its name such as “Amazing file.py”.
  2. Open the file in Chocolat
  3. Actions > Run

Expected result: File to be executed in Terminal.

Actual result: A “No such file or directory” error or possibly running of an incorrect file (“Amazing” in the example above).

Chocolat 2.1.1 OS X 10.8.5

locks commented 10 years ago

What are you doing, putting whitespaces in your filenames?! :tongue: Thanks for the neat bug report.

Could you make the appropriate PR in the choc-support repository? Would be much appreciated.