ready for setup, test script

This commit is contained in:
Tangent / Rose / Nebula Rosa 2024-01-13 01:35:29 -07:00
parent cbb3c2161f
commit 3e2bfbf829
2 changed files with 16 additions and 0 deletions

View File

@ -1,2 +1,7 @@
# .lua-files # .lua-files
It's like dotfiles, but no, it's just Lua scripts I find useful. It's like dotfiles, but no, it's just Lua scripts I find useful.
## Installation
1. Put this folder somewhere.
2. Add that somewhere to your path. (On Windows, search for Environment Variables (it's "part of" Control Panel) and use the UI to add them to System variables.)
3. (On Windows) Add `.LUA` to PATHEXT.

11
print-arguments.lua Normal file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env luajit
for key, value in pairs(arg) do
print(key, value)
-- -n to -1 is FIRST the interpreter path and THEN variables passed to it in order
-- 0 is the path to the file being executed
-- 1+ are arguments.
-- powershell handles quotes, cmd does not even pass arguments
end
-- os.execute("sleep 5")