We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d89b55 commit 71bae7fCopy full SHA for 71bae7f
z.cmd
@@ -1,10 +1,8 @@
1
@echo off
2
setlocal EnableDelayedExpansion
3
4
-set "HomeDir=%~dp0"
5
-set "PathSave=%PATH%"
6
set "LuaExe=lua"
7
-set "LuaScript=%HomeDir%z.lua"
+set "LuaScript=%~dp0z.lua"
8
set "MatchType=-n"
9
set "StrictSub=-n"
10
set "RunMode=-n"
z.lua
@@ -2721,8 +2721,6 @@ function z_windows_init(opts)
2721
else
2722
print('@echo off')
2723
print('setlocal EnableDelayedExpansion')
2724
- print('set "HomeDir=%~dp0"') -- So that Lua can find the z.lua file.
2725
- print('set "PathSave=%PATH%"')
2726
print('set "LuaExe=' .. os.interpreter() .. '"')
2727
print('set "LuaScript=' .. os.scriptname() .. '"')
2728
print(script_init_cmd)
0 commit comments