Closed pr-apes closed 2 years ago
Can you create a simple filter such as the following to show the variables?
runtime = require("runtime")
for key, value in pairs(runtime.variables) do
print(key,string.format("%q",value))
end
os.exit(0)
My results are the following:
>sp --filter a.lua -v cfn="\a\b"
cfn "\\a\\b"
>sp --filter a.lua -v cfn="\a\b\c"
cfn "\\a\\b\\c"
The first value for cfn
variable would output yes
and the second value would output no
.
I wonder whether you need other data for this.
Many thanks for your help.
OK, thanks, this will be fixed in the next version.
Many thanks for your help.
@pgundlach,
having this layout:
The following invocation
sp --dummy -v cfn="\a\b\c"
outputsno
, butsp --dummy -v cfn="\a\b"
outputsyes
.This may be the underlying cause of #409. I’m afraid that backslashes are essential for complete paths in Windows (this is what I’m trying to pass as variable [through a batch file]).
Many thanks for your help.