 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Nov 25, 2007 12:48 am
[2.13] #SUB with MXP adding quotes. |
Run this:
#trig {(*).} {#sub {<send 'cheese %1|cake %1' 'cheese|cake'>%1</send>}}
#say Oh dear.
and gasp in amazement as a quote appears from nowhere. I seem to remember something similar being reported before, so forgive me if it's already been reported. |
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4772 Location: Pensacola, FL, USA
|
|
_________________ Discord: Shalimarwildcat |
|
|
 |
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Sun Nov 25, 2007 2:15 pm |
I think the topic Fang mentioned about is here: http://forums.zuggsoft.com/forums/viewtopic.php?t=28245
There said that the problem was fixed in 2.04, but seems this bug is back again.
BTW, even not all of the sample scripts with <send> tag from CMUD help work. Look here: http://forums.zuggsoft.com/modules/mx_kb/kb.php?page=3&mode=doc&k=2860
and try to execute 2 samples from there
Code: |
#MXP This is a <send "hello|command1|command2" "help me|First command|Second command">test</send>
#MXP There is some <send "buy bread|examine bread|steal bread" "buy|examine|steal">bread</send> here.
|
Feel the difference!  |
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Nov 25, 2007 8:31 pm |
Those examples are wrong - you need to escape the quotes or use apostrophes instead. Unescaped quotes won't work. I'll fix that.
Also, fyi, you can use [[helpfilename]] to link a help file, or [[helpfilename]link text]. The names are in the top-right corner. |
|
|
 |
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Sun Nov 25, 2007 9:09 pm |
Fang Xianfu wrote: |
Those examples are wrong |
May be. But first of them works and the second not works. Why?
Quote: |
Also, fyi, you can use [[helpfilename]] to link a help file, or [[helpfilename]link text]. The names are in the top-right corner. |
Thanks, I'll test this next time I need this. Hope I'll not forget it.  |
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Nov 25, 2007 9:39 pm |
The first one works because there's no space in the command part of your send tag. I guess CMUD parses it as the first part being the command and everything else being the label.
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Nov 26, 2007 5:36 pm |
I'll put your original example back on the bug list to see what happened to cause this error again.
|
|
|
 |
|
|