#2939 closed defect (fixed)
OMC Doesn't handle spaces in path
Reported by: | 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 , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 by , 9 years ago
Milestone: | Future → 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 by , 7 years ago
Milestone: | pre1.9.4 → 1.9.4 |
---|
Removing the pre1.9.4 milestone in favor of 1.9.4.
fixed in r24213 (embrace path name with quotation marks '\"')