'love ..' fails

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

'love ..' fails

Post by BlackBulletIV »

When I run

Code: Select all

love ..
from a sub-folder of my game it gives the "No code to run" error. The parent folder is quite obviously valid because

Code: Select all

cd .. && love .
works fine.

Why doesn't LOVE support the use of '..', but does support '.'?

Note that these also give the same result:

Code: Select all

love ../
love ../.. # sub-sub-folder :P
Iskai
Prole
Posts: 4
Joined: Mon Apr 04, 2011 9:18 pm

Re: 'love ..' fails

Post by Iskai »

Which operating system?
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: 'love ..' fails

Post by bartbes »

I think it has something to do with .. breaking out of the save dir...
User avatar
sharpobject
Prole
Posts: 44
Joined: Fri Mar 18, 2011 2:32 pm
Location: California

Re: 'love ..' fails

Post by sharpobject »

Iskai wrote:Which operating system?
This happens for me on OS X 10.6.6
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: 'love ..' fails

Post by BlackBulletIV »

bartbes wrote:I think it has something to do with .. breaking out of the save dir...
Ah, so LOVE doesn't check whether the '..' is breaking out, it just sees '..' and thinks it's dangerous.
sharpobject wrote:
Iskai wrote:Which operating system?
This happens for me on OS X 10.6.6
Yep, that's my OS.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: 'love ..' fails

Post by Robin »

Isn't this related to the problem with "love ."?

love .. doesn't work on Linux either. I think it's cross-platform. ;)
Help us help you: attach a .love.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: 'love ..' fails

Post by BlackBulletIV »

Robin wrote:Isn't this related to the problem with "love ."?
What problem with 'love .'?
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: 'love ..' fails

Post by Robin »

I think this is the one. It's been long fixed, though.
Help us help you: attach a .love.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: 'love ..' fails

Post by BlackBulletIV »

Ah ok.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 7 guests