View Single Post
09-15-12, 04:16 AM   #1
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
FindGlobals, Lua 5.2, NppExec and pipe char

I didn't want to derail this thread, and I have some questions about FindGlobals concerning Lua 5.2 and NppExec
  1. 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:
    1. luac52 -l -p MyFile.lua | lua52 globals.lua MyFile.lua

  2. 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:
    1. luac51 -l -p MyFile.lua | lua51 globals.lua MyFile.lua

    ... but this won't work in NppExec ...
    nppexec Code:
    1. 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
  Reply With Quote