Shell path resolution, alias management, and argument parsing helpers.
- Repository:
opencomputers - System:
openos - Type:
library
OpenComputers/src\main\resources\assets\opencomputers\loot\openos\lib\core\full_shell.lua
local shell = require("shell")- Description: Iterate the alias table for the current process.
shell.aliases()- Description: Run a command string through the configured shell entry point and return the child result.
- Parameters:
commandenv...
shell.execute(nil, nil, nil)- Description: Return the current
PATHenvironment variable.
shell.getPath()- Description: Replace the current
PATHenvironment variable. - Parameters:
value
shell.setPath(nil)- OpenOS exposes a small bootstrap shell API first, then delays additional helpers such as command execution and
PATHaccess until the full module is loaded.