View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000668 | OpenFOAM | Bug | public | 2012-10-24 20:37 | 2012-10-27 13:21 |
Reporter | Assigned To | henry | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Linux | OS | Debian | OS Version | Sid |
Summary | 0000668: runApplication does not pass on vectors correctly | ||||
Description | When I run the following from the command line (bash): . $WM_PROJECT_DIR/bin/tools/RunFunctions runApplication surfaceTransformPoints -translate "(0 0 1)" file1.stl file2.stl I get an error in log.surfaceTransformPoints: --> FOAM FATAL ERROR: Wrong number of arguments, expected 2 found 4 FOAM exiting However, running: surfaceTransformPoints -translate "(0 0 1)" file1.stl file2.stl runs fine. Somehow the runApplication script does not pass on the vector correctly. | ||||
Steps To Reproduce | See Description | ||||
Tags | No tags attached. | ||||
|
I found this issue sometime ago as well and ended up ignoring it because I couldn't find a fix for it... Nonetheless, today I think I found it: http://stackoverflow.com/questions/4824590/propagate-all-arguments-in-a-bash-shell-script Basically, edit the file "$WM_PROJECT_DIR/bin/tools/RunFunctions" and replace the occurrences of: $* for: "$@" And it should work next time the script is sourced again! I also found a good explanation on this subject ($* vs $@) here: http://wiki.bash-hackers.org/scripting/posparams#mass_usage |
|
Worked perfectly. Thanks! |
|
Thanks for the report, fix and useful reference. Resolved by commit 949ec0dcff28d2e0f44aa62a28f3e328d65bffad |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-10-24 20:37 |
|
New Issue | |
2012-10-24 21:58 | wyldckat | Note Added: 0001743 | |
2012-10-25 20:19 |
|
Note Added: 0001744 | |
2012-10-27 13:21 | henry | Note Added: 0001749 | |
2012-10-27 13:21 | henry | Status | new => resolved |
2012-10-27 13:21 | henry | Resolution | open => fixed |
2012-10-27 13:21 | henry | Assigned To | => henry |