|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue Dec 04, 2007 10:26 pm
[2.14] Funny local variable bugs |
Enter at the command line
It gets sent to the mud.
Enter at the command line
Pops up a parsing error of invalid local variable. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Dec 04, 2007 10:41 pm |
This is because the command line is trying to parse your string argument to #EXEC, which is asking to evaluate $var, which doesn't exist. If you want #EXEC itself to handle the $var, then you need to put it into quotes:
#EXEC "$var=""abc"""
So this is working correctly. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue Dec 04, 2007 11:06 pm |
I guess I should be drinking more coffee and less beer.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|