mirror of
https://github.com/danbulant/rush
synced 2026-05-21 21:38:39 +00:00
39 lines
No EOL
418 B
Text
39 lines
No EOL
418 B
Text
|
|
echo test
|
|
|
|
echo single; echo line
|
|
|
|
echo test > cat
|
|
|
|
grep echo < simple.rush
|
|
|
|
let test = val
|
|
echo var $test
|
|
let test = $test
|
|
echo var2 ${test}
|
|
echo last exit code $?
|
|
|
|
if true
|
|
echo condition true
|
|
end
|
|
|
|
if false
|
|
echo condition false
|
|
end
|
|
|
|
if true
|
|
echo condition true
|
|
else
|
|
echo else
|
|
end
|
|
|
|
if false
|
|
echo condition false
|
|
else if true
|
|
echo condition else true
|
|
end
|
|
|
|
while true
|
|
echo loop
|
|
break
|
|
end |