This commit is contained in:
2025-08-29 00:18:21 +01:00
commit b750a9b71e
16 changed files with 1485 additions and 0 deletions

20
demos/test.luash Normal file
View File

@@ -0,0 +1,20 @@
-- Test environment variables
print("Current shell: " .. $SHELL)
-- Test environment variable assignment
$HELLO = "my variable"
print("HELLO = " .. $HELLO)
-- Test $VAR inside strings (should NOT be substituted)
print("This should print literally: $SHELL and $HOME")
-- Test $VAR outside strings (should be substituted)
print("Home directory: " .. $HOME)
-- Test shell commands
current_dir = `pwd`
print("Current directory: " .. current_dir)
-- Test interactive command
!echo "Running interactive command"