[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: Egor Skriptunoff <egor.skriptunoff@...>
- Date: Tue, 8 May 2012 19:08:18 +0300
Impressing results!
One more problem should be solved. User can enter command line
manually (hello one two three) or can simply double click on the file
and full filespec will be placed into command line
("C:\path\hello.bat"). Both cases should be properly handled.
::Lua:: --[[
if exist %0.bat lua52.exe %0.bat %* && exit /b
lua52.exe %0 %* && exit /b
]]
print 'This is Lua script'
On 5/8/12, steve donovan <steve.j.donovan@gmail.com> wrote:
> On Tue, May 8, 2012 at 2:46 PM, T T <t34www@googlemail.com> wrote:
>> This is not necessary, with Lua 5.2 you can (ab)use labels to avoid
>> printing the first line:
>
> Man, that is a very cool hack - finally we get shebang for Windows!
>
> steve d.
>
>