EMILUA(3em)
π EMILUA (3em)
okay so real talk, bestie β this is a page from the Emilua reference (manual section 3em), and it's short but it's mighty. Sit down, hydrate, and let's get into it π«Ά
β¨ NAME β¨
Emilua β it's a Lua execution engine. that's the whole vibe. that's the assignment. π
π¦ SYNOPSIS π¦
here's the whole thing, character for character, don't come for me:
local fs = require "filesystem"
fs.current_working_directory() -> fs.path (1)
fs.current_working_directory(p: fs.path|file_descriptor) (2)
and the little numbered footnotes, because of course:
- Get the current working directory.
- Set the current working directory.
likeβ¦ call it with nothing and it tells you where you are. call it with a path or a file_descriptor and it moves you. two moods, one function, we love a versatile icon π
πΈ DESCRIPTION πΈ
so basically: this gets or sets the current working directory for the calling process. that's it. that's the tea ββ¨
lowkey though, there's a catch and you need to hear it:
Note: Only the master VM is allowed to change the current working directory.
read that again, bestie. only the master VM. so if you're some lil side VM trying to chdir your way through life β no. absolutely not. the master VM has main character energy here and everyone else is just living in it ππ
getting the directory? go off, everyone can do that. setting it? master VM only, no exceptions, periodt.
that's the whole page, you ate it, you understood it, i'm so proud of you fr fr π
β this little beauty is from Emilua version 0.12.1-nixpkgs1, dated 1980-01-01 β yeah the date is a whole mood, don't ask π
see you in the next one, mwah π¦π
π¦ where this page comes from
- nixos 26.05: emilua 0.12.1
- nixpkgs unstable: emilua 0.12.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms