Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Startup script fails on linux when parent directory contains a space character [imported] #994

Closed
Labels
OS: LinuxSpecific to the Linux version of the Arduino IDE
@cmaglie

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?

  1. Unpack arduino-1.0.1 to a directory with a space in its name. (ie, /home/matt/Arduino Class/arduino-1.0.1)
  2. Attempt to run the arduino launcher script from the install directory. (ie, cd /home/matt/Arduino\ Class/arduino-1.0.1; ./arduino)
  3. 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 -- $(readlink -f -- "${0}") )"
with:
APPDIR="$(dirname -- '$(readlink -f -- "${0}")' )"

I've attached a patch to implement this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS: LinuxSpecific to the Linux version of the Arduino IDE

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /