|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu Nov 09, 2006 11:25 pm
[1.13] User-defined functions eat following spaces. |
Define a function as follows:
#function testfunc($param) {$param}
Doesn't matter what the function contains, I've tried it with %1, %-1, even completely empty. Now type on the command line:
#echo @testfunc(hello) test test test
Instead of expected output "hello test test test" you instead get "hellotesttesttest". This only happens after the function. If you were to input this:
#echo test test test @testfunc(hello) test test test
you would receive "test test test hellotesttesttest". It also only applies to the current line.
This bug is most annoying because it even eats spaces in commands. If I were to try to define a variable like this for example:
#var @testfunc(testvar) testvalue
I would get the error "Variable testfunctestvalue not defined". |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Nov 10, 2006 2:21 am |
Added to bug list.
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|