I didn't want to derail this
thread, and I have some questions about
FindGlobals concerning
Lua 5.2 and
NppExec
- Why does this cmd script give an empty output with Lua 5.2? But it still seems to work for Lua 5.1
cmd Code:
luac52 -l -p MyFile.lua | lua52 globals.lua MyFile.lua
- Why doesn't NppExec support the pipe char | ? Or do I need to escape it or something in NppExec?
This works fine in the Windows command line ...
cmd Code:
luac51 -l -p MyFile.lua | lua51 globals.lua MyFile.lua
... but this won't work in NppExec ...
nppexec Code:
luac51 -l -p "$(FULL_CURRENT_PATH)" | lua51 "D:\FindGlobals\globals.lua" "$(FULL_CURRENT_PATH)"
... and the NppExec console gives the following error:
Code:
luac51 -l -p "D:\World of Warcraft\Interface\AddOns\ScrollingChatText\ScrollingChatText.lua" | lua51 "D:\FindGlobals\globals.lua" "D:\World of Warcraft\Interface\AddOns\ScrollingChatText\ScrollingChatText.lua"
Process started >>>
luac51: cannot open |: Invalid argument
<<< Process finished.
Notes:
- Shortened the cmd directory paths for readability
- lua-5.2.1_Win64_bin and lua5_1_4_Win64_bin paths added to Windows environmental variables