Critical Bug:
Problem Description:
The $sketch_file variable is passed unquoted to arduino-cli compile and arduino-cli upload commands within the aci_project/bin/aci.sh script. In shell scripting, unquoted variables with spaces undergo "word splitting," causing the command to misinterpret the single path as multiple arguments.
Impact:
- Compilation and upload operations fail if the sketch file or any parent directory in its path includes spaces.
- Leads to immediate frustration and a broken workflow for users in common environments.
Steps to Reproduce:
- Create a new directory with a space in its name (e.g.,
~/Arduino Projects/).
- Create a new sketch inside this directory (e.g.,
~/Arduino Projects/MyBlink/MyBlink.ino).
- Use
aci_project/bin/aci.sh to select this sketch.
- Attempt to "Compile Code" or "Upload Code".
- Expected: The sketch compiles/uploads successfully.
- Actual: The
arduino-cli command fails with errors related to file not found or invalid arguments because the path is incorrectly parsed.
Critical Bug:
Problem Description:
The
$sketch_filevariable is passed unquoted toarduino-cli compileandarduino-cli uploadcommands within theaci_project/bin/aci.shscript. In shell scripting, unquoted variables with spaces undergo "word splitting," causing the command to misinterpret the single path as multiple arguments.Impact:
Steps to Reproduce:
~/Arduino Projects/).~/Arduino Projects/MyBlink/MyBlink.ino).aci_project/bin/aci.shto select this sketch.arduino-clicommand fails with errors related to file not found or invalid arguments because the path is incorrectly parsed.