Duplicate "stdin" #40

Merged
ghost merged 1 commits from develop-1.8 into develop-1.8 2020-07-01 00:40:32 -04:00

View File

@@ -4,7 +4,10 @@ local fs = require("shellex.filesystem")
local args = shell.parse(...)
local ec = 0
if #args == 0 then
args = {"-"}
while true do
local input = read()
print(input)
end
end
for i = 1, #args do
@@ -28,4 +31,4 @@ for i = 1, #args do
end
end
return ec
return ec