|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Tue Dec 04, 2007 2:51 am
[2.13] Using the :window: messes with the ! |
Ok, on the mud I play 'quit' was replaced with 'quit!'
If I am on one window, and I do this :win2:quit! the output to win2 is 'quit !'
It should NOT be adding a space between the word and the exclamation point.
I would guess that this is also in 2.14, can someone test? I FUBARed my 2.14a earlier :) and I'm not going to reinstall tonight. |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Dec 04, 2007 3:01 am |
The ! character is a special character used for command history recall. As with *any* special character in CMUD, you need to put " quotes around the command to send it to the MUD verbatim. I might be able to fix it so that the ! is ignored if it's not the first character in the command, but this is a general issue that applies to a lot of different special characters and you need to get used to quoting special characters in CMUD because the compiler is much more sensitive to correct syntax compared to zMUD.
|
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Tue Dec 04, 2007 11:51 am |
Gotcha. I was just confused why it would only do it when sending commands to a non-active window (hence why I consider it a bug). It works fine in the active window.
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Dec 04, 2007 5:24 pm |
The active window is using a "smart" command line feature. It scans your command to see if it looks like a proper script and if it sees the ! character not at the beginning of the line then it sends the text to the MUD verbatim without parsing it as a script. But when using the window: syntax, this is going through the full zScript compiler and parser (because it's a script), and that is pickier about the syntax.
|
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Tue Dec 04, 2007 5:33 pm |
Ok, that makes sense.
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
|
|