-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Description
This is Issue 994 moved from a Google Code project.
Added by 2012年07月29日T20:46:58.000Z by matt.min...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium, Milestone-1.0.2, Component-Build, OpSys-Linux
Original description
What steps will reproduce the problem?
- Unpack arduino-1.0.1 to a directory with a space in its name. (ie, /home/matt/Arduino Class/arduino-1.0.1)
- Attempt to run the arduino launcher script from the install directory. (ie, cd /home/matt/Arduino\ Class/arduino-1.0.1; ./arduino)
- Watch dirname complain about extra operands.
This behaviour occurs no matter how far removed the space-bearing parent directory is from the install directory.
What is the expected output? What do you see instead?
Arduino IDE should launch, but doesn't.
What version of the Arduino software are you using? On what operating
system? Which Arduino board are you using?
Arduino 1.0.1, Ubuntu Linux 12.04 (though I imagine this bug should be reproducible on any linux distribution), board doesn't matter - IDE doesn't get that far.
Please provide any additional information below.
This is an easy fix. In the arduino launcher script, replace:
APPDIR="$(dirname --
with:
APPDIR="$(dirname -- '$(readlink -f -- "${0}")' )"
I've attached a patch to implement this.