2008-08-31 09:08:24 +00:00
|
|
|
; Hey, here's some test code
|
|
|
|
set name Correl
|
2008-08-31 17:00:39 +00:00
|
|
|
%first = Correl
|
2009-04-17 02:45:22 +00:00
|
|
|
%middle = Joseph
|
2008-08-31 17:00:39 +00:00
|
|
|
%name = %first $&
|
2009-04-17 02:45:22 +00:00
|
|
|
%middle Roush
|
2008-08-31 09:08:24 +00:00
|
|
|
echo Hello, %name!
|
|
|
|
alias dostuff {
|
|
|
|
; Not very useful, but good for testing the parser!
|
|
|
|
var %b = 42
|
|
|
|
%b = $calc(%b * 3)
|
|
|
|
return %b;
|
|
|
|
}
|
|
|
|
alias -l dosomethingelse {
|
|
|
|
; Useless local alias!
|
|
|
|
echo -s Busy doing nothing
|
|
|
|
}
|
2009-04-17 02:45:22 +00:00
|
|
|
dostuff that nobody will see
|
|
|
|
dosomethingelse entirely
|
|
|
|
donothing because this alias doesn't exist
|