[1.0] Mac: wrong handling of command line argument with space --- fixed in 1.1.0

Bug #1187339 reported by redwine
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

Bug Description

On Mac, I wrote only one line in test.sikuli as following:
print sys.argv[1]

and then:
launch it from command line:
pathToSikuli-script -r pathToTest.sikuli -- "hello world"
PS: I used "--args" in sikuli r930 and "--" in sikuli x 1.0 final

I was expecting to print "hello world" only from sys.argv[1], but only get "hello"

the same script on Windows could print "hello world" which is I expected.

I tried "hello\ world", "\'hello\\ world\'".. and so on, all don't work as I expected.
Thanks in advance for any ideas.

The version of Sikuli I used is r930 and the newest Sikuli X 1.0, also I tried Beta999.
Mac OS X 64bit

Tags: scriptrun
Revision history for this message
RaiMan (raimund-hocke) wrote : Re: [1.0] Mac: wrong handling of command line argument with space

back from vacation I will check it asap

summary: - Wrong behavior when sikuli handling an argument with space on Mac OS X
+ [1.0] Mac: wrong handling of command line argument with space
Changed in sikuli:
status: New → In Progress
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
RaiMan (raimund-hocke)
tags: added: scriptrun
RaiMan (raimund-hocke)
Changed in sikuli:
status: In Progress → Fix Committed
RaiMan (raimund-hocke)
Changed in sikuli:
importance: High → Critical
summary: - [1.0] Mac: wrong handling of command line argument with space
+ [1.0] Mac: wrong handling of command line argument with space --- fixed
+ in 1.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.