[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A Lua script and a Bash script in one file
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 9 May 2012 08:55:57 +0200
On Tue, May 8, 2012 at 8:10 PM, Egor Skriptunoff
<egor.skriptunoff@gmail.com> wrote:
> Neither %~f0 nor "%~f0" works correctly if filespec contains spaces.
Ah, but we can always quote the argument - this version passes all
tests (works from paths-with-spaces, correct errorlevel)
::lua::--[[
@lua52.exe "%~f0" %* & @exit /b %errorlevel%
]]
print 'hello dolly'
for i,a in ipairs(arg) do print(i,a) end
os.exit(2)
steve d.
- References:
- A Lua script and a Bash script in one file, Rena
- Re: A Lua script and a Bash script in one file, Egor Skriptunoff
- Re: A Lua script and a Bash script in one file, Michael Wolf
- Re: A Lua script and a Bash script in one file, Michael Wolf
- Re: A Lua script and a Bash script in one file, T T
- Re: A Lua script and a Bash script in one file, steve donovan
- Re: A Lua script and a Bash script in one file, Egor Skriptunoff
- Re: A Lua script and a Bash script in one file, Daurnimator
- Re: A Lua script and a Bash script in one file, Egor Skriptunoff
- Re: A Lua script and a Bash script in one file, steve donovan
- Re: A Lua script and a Bash script in one file, Egor Skriptunoff