Closed jgranduel closed 8 years ago
Hi @jgranduel using the Windows command prompt (not the Windows powershell) the command that didn't work for you, worked for me:
C:\tmp>redis-cli -a sb --eval test.lua a , b
1) "a"
2) "b"
Is it possible that the comma causes the problem when the command is executed in powershell?
You are absolutely right! the same here. I should have tested!
So I had the idea of escaping the comma :
PS > redis-cli -a sb --eval test.lua a `, b
1) "a"
2) "b"
Strange syntax, but usable. Thanks
Hi,
I'm learning Redis Lua scripting with redis-3.0.501 on Win 7/Win 8.1. I want to get values from ARGV.
With Redis REPL, I get :
If I put "return {KEYS[1], ARGV[1]}" into a file, say test.lua
ARGV is nil.
But I can do the form:
Is it a real issue, or is my syntax wrong? Thanks in advance, jg