wow
This commit is contained in:
20
demos/test.luash
Normal file
20
demos/test.luash
Normal 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"
|
||||
Reference in New Issue
Block a user