mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
bef7bb5b76
The startup bash script lacked quotes in some places, causing it to interpret part of the path to the splash image as the main class and fail to start: arduino: line 29: [: /home/a/Arduino: binary operator expected Error: Could not find or load main class IDE.lib.splash.png For the -splash option, simply adding quotes was not sufficient. If no splash screen was to be used (so when $SPLASH was empty), using "$SPLASH" would result in an empty argument being passed to java, which was then interpreted by java as the name of the base class. To allow spaces to occur in the -splash option, but also allow it to be omitted entirely, options to java are now passed through the $JAVA_OPTIONS array. By using the special "${JAVA_OPTIONS[@]}" syntax, each element in the array is expanded into a single argument, even when spaces are present inside (this is identical to what happens with "$@"). This fixes #3950