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: Henning Kiel
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 by Henning Kiel, 10 years ago

Owner: changed from somebody to Henning Kiel
Status: newassigned

comment:2 by Henning Kiel, 10 years ago

Resolution: fixed
Status: assignedclosed

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

comment:3 by Dietmar Winkler, 9 years ago

Milestone: Futurepre1.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 by Martin Sjölund, 7 years ago

Milestone: pre1.9.41.9.4

Removing the pre1.9.4 milestone in favor of 1.9.4.

Note: See TracTickets for help on using tickets.