openOS command line programs

This commit is contained in:
kepler155c@gmail.com
2019-04-07 10:10:30 -04:00
parent 5f2f33f1f2
commit 8f2c97d269
20 changed files with 163 additions and 280 deletions

View File

@@ -1,4 +1,4 @@
local shell = require("shell")
local shell = require("openos.shell")
local args = shell.parse(...)
if #args == 0 then
@@ -7,8 +7,8 @@ if #args == 0 then
end
for i = 1, #args do
local result, reason = shell.resolve(args[i], "lua")
local result, reason = shell.resolveProgram(args[i])
if not result then
result = shell.getAlias(args[i])
if result then