Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4772
Location: Pensacola, FL, USA

PostPosted: Sun Nov 25, 2007 8:35 am   
 
It was over here:

http://forums.zuggsoft.com/forums/viewtopic.php?t=28933
_________________
Discord: Shalimarwildcat
Reply with quote
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: 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! Smile
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: 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. Smile
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net