What is $YEAR supposed to do? If it's a builtin variable to be expanded on the commandline, I am not aware of any such thing (not before 8.02 either). Do you confuse it with $TODAY maybe?
Hmm, sorry I make mistake. It was $TODAY.
But I have another question - It is possible to use squirrel "date()" function in C::B (or other from Squirrel Standard Library)?
I tried print(date()) in script console but it gives me error:
Welcome to the script console!
> print(date());
AN ERROR HAS OCCURED [the index 'date' does not exist]
CALLSTACK
*FUNCTION [main()] ScriptConsole line [1]
LOCALS
[this] TABLE
AN ERROR HAS OCCURED [the index 'date' does not exist]
CALLSTACK
*FUNCTION [main()] ScriptConsole line [1]
LOCALS
[this] TABLE