Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#2939 closed defect (fixed)

OMC Doesn't handle spaces in path

Reported by: Adam Dershowitz <dersh@…> Owned by: hkiel
Priority: high Milestone: 1.9.4
Component: *unknown* Version: trunk
Keywords: Cc:

Description

I have verified this on both Mac and Linux.

This script is the trivial case:
test.mos
loadModel(Modelica);
simulate(Modelica.Blocks.Examples.Filter);

If you put that script into a directory that has a space in it, then
$omc test.mos
compiles, but then doesn't run the simulation.
If I run it in /home/openmodelica/tmp/ it is fine. But, if I run it in /home/openmodelica/tmp/tmp 2/ then I get this error:

messages = "Simulation execution failed for model: Modelica.Blocks.Examples.Filter

/bin/sh: 1: /home/openmodelica/tmp/tmp: not found
",

So, the call to the executable seems to not be handling the path string properly.

Change History (4)

comment:1 Changed 10 years ago by hkiel

  • Owner changed from somebody to hkiel
  • Status changed from new to assigned

comment:2 Changed 10 years ago by hkiel

  • Resolution set to fixed
  • Status changed from assigned to closed

fixed in r24213 (embrace path name with quotation marks '\"')

comment:3 Changed 9 years ago by dietmarw

  • Milestone changed from Future to pre1.9.4

It doesn't make sense to keep closed ticket in the "Future" milestone that were simply forgotten to assign to the correct milestone in the past.

comment:4 Changed 7 years ago by sjoelund.se

  • Milestone changed from pre1.9.4 to 1.9.4

Removing the pre1.9.4 milestone in favor of 1.9.4.

Note: See TracTickets for help on using tickets.