-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Description
On Mac and Linux (haven't checked Windows) the running from command line fails due to spaces in arguments. For example:
beast "test 1.xml"(space in path)beast -D myRealArray="1.0 2.0 3.0 4.0" test.xml(gaps in array provided to RealParameter in the XML that takes $(myRealArray) as value)
I could not find a solution trying to escape the gaps, double quote, etc. Comma separated values are processed also don't work for RealParameter array init. The second example can of course be solved by having a json file and using -Df option instead.
Possible fix:
I think the issue is passing all arguments in single string, using $* at the end of
beast2/release/Linux/jrebin/beast
Line 81 in ff4d7ec
| "$JAVA" -Dlauncher.wait.for.exit=true -Xss256m -Xmx8g -Djava.library.path="$LD_LIBRARY_PATH" -Duser.language=en -cp "$BEAST_LIB/launcher.jar" beast.pkgmgmt.launcher.BeastLauncher $* |
This could be avoided using "$@" instead. For me it seems to work well, but not sure if there are any edge cases where this would not be a good idea?
Metadata
Metadata
Assignees
Labels
No labels