forgot to commit openos

This commit is contained in:
2026-04-01 11:04:22 +02:00
parent 9291d81d41
commit b0afd0529e
179 changed files with 13952 additions and 0 deletions

14
data/openos/bin/pwd.lua Normal file
View File

@@ -0,0 +1,14 @@
local shell = require("shell")
local fs = require("filesystem")
local _,op = shell.parse(...)
local path, why = shell.getWorkingDirectory(), ""
if op.P then
path, why = fs.realPath(path)
end
if not path then
io.stderr:write(string.format("error retrieving current directory: %s", why))
os.exit(1)
end
io.write(path, "\n")