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,6 +1,5 @@
local component = require("component")
local fs = require("filesystem")
local shell = require("shell")
local fs = require("openos.filesystem")
local shell = require("openos.shell")
local args = shell.parse(...)
if #args == 0 then
@@ -28,7 +27,7 @@ if fs.isDirectory(linkpath) then
linkpath = fs.concat(linkpath, fs.name(target))
end
local result, reason = fs.link(target_name, linkpath)
local result, reason = fs.link(target, linkpath)
if not result then
io.stderr:write(reason..'\n')
return 1